Retrieve the data source document.
Try it now
Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.
RAM authorization
The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:
-
Action: The actions can be used in the
Actionelement of RAM permission policy statements to grant permissions to perform the operation. - API: The API that you can call to perform the action.
- Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.
-
Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
Resourceelement of the policy. - For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the
Resourceelement of the policy.
- For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the
- Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.
- Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
aimiaobi:GetDatasetDocument | get | *All Resource
| None | None |
Request syntax
Request parameters
Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| WorkspaceId | string | Yes | Unique identifier of your Alibaba Cloud Model Studio workspace. Get the workspace ID | xxxx |
| DatasetId | integer | No | Unique identifier of the dataset. | 1 |
| DatasetName | string | No | Name of the dataset. | Dataset name |
| DocUuid | string | No | Internal unique identifier of the document. | xxx |
| DocId | string | No | User-defined unique ID of the document. | xxx |
| IncludeFields | array | No | List of fields to include in the response. | |
string | No | Field names to include. For example, metadata. | metadata |
Response elements
Element | Type | Description | Example |
|---|---|---|---|
object | Response object. | ||
| Data | object | Business data. | |
| DocUuid | string | Unique ID of the document in the document system. | xxx |
| Url | string | URL of the article. | |
| Content | string | Content of the article. | Article content |
| Summary | string | Summary of the article. | Article summary |
| Title | string | Title of the document. | Document title |
| PubTime | string | Publication time in yyyy-MM-dd HH:mm:ss format. | 2024-05-14 08:54:33 |
| SourceFrom | string | Source of the document. | Source |
| DisableHandleMultimodalMedia | boolean | Whether this record is indexed in the multimodal index library. | true |
| DocId | string | User-side unique ID of the document. | xxx |
| Metadata | object | Dictionary information. | |
| Text | string | Metadata for the document dimension. | xx |
| VideoShots | array<object> | Video sharding information. | |
object | Video sharding information. | ||
| StartTime | integer | Start time of the video shard in milliseconds. | 1000 |
| EndTime | integer | End time of the video shard in milliseconds. | 2000 |
| Text | string | Content of the video shard. | xxx |
| AsrSentences | array<object> | ASR results. | |
object | ASR result. | ||
| StartTime | integer | Start time in milliseconds. | 1000 |
| EndTime | integer | End time in milliseconds. | 2000 |
| Text | string | ASR text content. | xxx |
| KeyValues | array<object> | ||
object | |||
| Key | string | xx | |
| Value | string | xx | |
| DocType | string | Document type. For example, video or image. | video |
| Status | integer | Document status. 100 means success. 0 means failure. 1 means indexing or queued. | 100 |
| CategoryUuid | string | xx | |
| Tags | array | ||
string | xx | ||
| Extend1 | string | xx | |
| Extend2 | string | xx | |
| Extend3 | string | xx | |
| RequestId | string | Unique identifier of the request. | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Indicates whether the operation succeeded. true means success. false means failure. | true |
| Code | string | Status code. | NoData |
| Message | string | Error message. | success |
| HttpStatusCode | integer | HTTP status code. | 200 |
Examples
Success response
JSON format