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 Resourcesis 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.
| Operation | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
| aimiaobi:ListDocs | list | *All Resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| WorkspaceId | string | Yes | Alibaba Cloud Model Studio workspace ID. For information about how to obtain it, see How to use workspaces. | llm-2setzb9x4ewsd |
| DocName | string | No | Document name | Enterprise 2022 Annual Report |
| DocType | string | No | Document type | |
| Skip | integer | No | The number of records to skip, used for paging | 10 |
| MaxResults | integer | No | The maximum number of results returned | 20 |
| NextToken | string | No | The token for the next page | 52a33dc83779f63641e16f5146cd7125 |
| Statuses | array | No | Document status list | |
| integer | No | Status value | 0 | |
| CategoryId | string | No | The directory where the document is located | default |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| Code | string | The return code. | successful |
| Data | array<object> | List of returned data results | |
| Data | object | Paging data | |
| CreateTime | long | Creation time | 2024-01-04 11:46:07 |
| DocId | string | Document ID | 12345 |
| DocName | string | Document name | Title093 |
| DocType | string | Document type | |
| Status | integer | Status | 0 |
| StatusMessage | string | Status message | Import complete |
| CategoryId | string | The directory where the document is located | default |
| HttpStatusCode | integer | HTTP status code | 200 |
| MaxResults | integer | The maximum number of results returned | 10 |
| Message | string | The return message. | successful |
| NextToken | string | The token for the next page | CAESGgoSChAKDGNvbXBsZXRlVGltZRABCgQiAggAGAAiQAoJANEQ4mYAAAAACjMDLgAAADFTNzMyZDMwMzAzMDM4NzA3MjZjN2E2NDYyNzUzODMxMzY3ODM0NmIzNTZkNjc= |
| RequestId | string | Request ID | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Indicates whether the operation succeeded | true |
| TotalCount | integer | Total number of records | 70 |
Examples
Success response
JSON format
Error codes
| HTTP status code | Error code | Error message | Description |
|---|---|---|---|
| 403 | NoPermission | You are not authorized to perform this action. | Check the workspaceId assignment |