Skip to main content

ListDocs

Miàodú retrieves the list of documents.

Debug

You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples. Debug

Authorization information

The following table describes the authorization information for this API. You can use the Action element in RAM permission policy statements to grant RAM users or RAM roles the permission to call this API. For more information:
  • Operation: the specific permission.
  • Access level: the access level of each operation. Valid values: Write, Read, or List.
  • Resource type: the resource types that support authorization for the operation. For more information:
    • Required resource types are marked with a leading asterisk (*).
    • For operations that do not support resource-level authorization, All Resources is used.
  • Condition key: the condition keys defined by the cloud service itself.
  • Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of all dependent actions for the operation to succeed.
OperationAccess levelResource typeCondition keyDependent action
aimiaobi:ListDocslist
*All Resources
*
    None
None

Request parameters

NameTypeRequiredDescriptionExample value
WorkspaceIdstringYes

Alibaba Cloud Model Studio workspace ID. For information about how to obtain it, see How to use workspaces.

llm-2setzb9x4ewsd
DocNamestringNo

Document name

Enterprise 2022 Annual Report
DocTypestringNo

Document type

pdf
SkipintegerNo

The number of records to skip, used for paging

10
MaxResultsintegerNo

The maximum number of results returned

20
NextTokenstringNo

The token for the next page

52a33dc83779f63641e16f5146cd7125
StatusesarrayNo

Document status list

integerNo

Status value

0
CategoryIdstringNo

The directory where the document is located

default

Response parameters

NameTypeDescriptionExample value
object

Schema of Response

Codestring

The return code.

successful
Dataarray<object>

List of returned data results

Dataobject

Paging data

CreateTimelong

Creation time

2024-01-04 11:46:07
DocIdstring

Document ID

12345
DocNamestring

Document name

Title093
DocTypestring

Document type

pdf
Statusinteger

Status

0
StatusMessagestring

Status message

Import complete
CategoryIdstring

The directory where the document is located

default
HttpStatusCodeinteger

HTTP status code

200
MaxResultsinteger

The maximum number of results returned

10
Messagestring

The return message.

successful
NextTokenstring

The token for the next page

CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJANEQ4mYAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM4NzA3MjZjN2E2NDYyNzUzODMxMzY3ODM0NmIzNTZkNjc=
RequestIdstring

Request ID

1813ceee-7fe5-41b4-87e5-982a4d18cca5
Successboolean

Indicates whether the operation succeeded

true
TotalCountinteger

Total number of records

70

Examples

Success response JSON format
{
  "Code": "successful",
  "Data": [
    {
      "CreateTime": 0,
      "DocId": 12345,
      "DocName": "标题093",
      "DocType": "pdf",
      "Status": 0,
      "StatusMessage": "导入完成",
      "CategoryId": "default"
    }
  ],
  "HttpStatusCode": 200,
  "MaxResults": 10,
  "Message": "successful",
  "NextToken": "CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJANEQ4mYAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM4NzA3MjZjN2E2NDYyNzUzODMxMzY3ODM0NmIzNTZkNjc=",
  "RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
  "Success": true,
  "TotalCount": 70
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissionYou are not authorized to perform this action.Check the workspaceId assignment
Visit the Error Center to view more error codes.