Retrieves a dataset.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidataset:GetDataset |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/datasets/{DatasetId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DatasetId |
string |
Yes |
The ID of the dataset. For more information, see ListDatasets. |
d-rbvg5wz****c9ks92 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned result. |
||
| RequestId |
string |
The request ID. |
5A14FA81-DD4E-******-6343FE44B941 |
| DatasetId |
string |
The ID of the dataset. |
d-rbvg5wz****c9ks92 |
| Name |
string |
The name of the dataset. |
myName |
| Description |
string |
The description. |
用于标注的数据。 |
| GmtCreateTime |
string |
The time when the dataset was created. |
2021-01-30T12:51:33.028Z |
| GmtModifiedTime |
string |
The time when the dataset was last updated. |
2021-01-30T12:51:33.028Z |
| UserId |
string |
The ID of the user to whom the dataset belongs. |
2485765****023475 |
| OwnerId |
string |
The ID of the Alibaba Cloud account. |
1631044****3440 |
| Property |
string |
The property of the initial version v1 of the dataset. Valid values:
Valid values:
|
DIRECTORY |
| DataSourceType |
string |
The type of the data source. Valid values:
Valid values:
|
NAS |
| Uri |
string |
The URI of the initial version v1. Examples:
|
nas://09f****f2.cn-hangzhou/ |
| Labels |
array |
The list of labels. |
|
| Label |
The labels that are added to the dataset. |
{"Key": "env", "Value": "test"} |
|
| DataType |
string |
The data type of the dataset. Valid values:
Valid values:
|
COMMON |
| SourceType |
string |
The type of the data source for the initial version v1. Valid values:
|
USER |
| SourceId |
string |
The ID of the data source for the initial version v1.
|
jdnhf***fnrimv |
| WorkspaceId |
string |
The ID of the workspace to which the dataset belongs. |
478** |
| Options |
string |
The extended field of the initial version v1. The value is a JSON string. When DLC uses the dataset, you can configure the `mountPath` field to specify the default mount path for the dataset. |
{ "mountPath": "/mnt/data/" } |
| Accessibility |
string |
The visibility of the dataset in the workspace. Valid values:
Valid values:
|
PRIVATE |
| ProviderType |
string |
The type of the data source of the dataset. Valid values:
|
Ecs |
| Provider |
string |
The provider of the dataset. If the return value is "pai", the dataset is a public dataset on the PAI platform. |
pai |
| SourceDatasetId |
string |
The ID of the source dataset for the iTAG annotation set. |
d-rcdg3wxxxxxhc5jk87 |
| SourceDatasetVersion |
string |
The version of the source dataset for the annotated dataset. |
v2 |
| TagTemplateType |
string |
The annotation template of the iTAG annotated dataset. |
TextClassification |
| LatestVersion | DatasetVersion |
The latest version of the dataset. |
|
| MountAccess |
string |
The permissions on the dataset when it is mounted.
|
RW |
| MountAccessReadWriteRoleIdList |
array |
The list of workspace role names that have read and write permissions on the dataset. A role ID that starts with `PAI` is a basic role ID. A role ID that starts with `role-` is a custom role ID. If the list contains `*`, all roles have read and write permissions. |
|
|
string |
The ID of the workspace role. |
PAI.AlgoOperator |
|
| ImportInfo |
string |
The storage import configuration of the dataset. OSS, NAS, and CPFS are supported. |
{ "region": "cn-wulanchabu", "fileSystemId": "bmcpfs-xxxxxxxxxxx", "path": "/mnt", "mountTarget": "cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com", "isVpcMount": true } |
| Edition |
string |
The type of the dataset. Enumeration values:
|
BASIC |
| IsShared |
boolean |
Indicates whether the dataset is a shared dataset. Valid values:
|
false |
| SharedFrom | DatasetShareRelationship |
The source relationship of the shared dataset. This parameter is valid only when IsShared is true. |
|
| SharingConfig |
object |
The sharing configurations of the current dataset. |
|
| SharedTo |
array |
The sharing configuration relationships. |
|
| DatasetShareRelationship |
The sharing configuration relationship of the shared dataset. |
Examples
Success response
JSON format
{
"RequestId": "5A14FA81-DD4E-******-6343FE44B941",
"DatasetId": "d-rbvg5wz****c9ks92",
"Name": "myName",
"Description": "用于标注的数据。",
"GmtCreateTime": "2021-01-30T12:51:33.028Z",
"GmtModifiedTime": "2021-01-30T12:51:33.028Z",
"UserId": "2485765****023475",
"OwnerId": "1631044****3440",
"Property": "DIRECTORY",
"DataSourceType": "NAS",
"Uri": "nas://09f****f2.cn-hangzhou/",
"Labels": [
{
"Key": "env",
"Value": "test"
}
],
"DataType": "COMMON",
"SourceType": "USER",
"SourceId": "jdnhf***fnrimv",
"WorkspaceId": "478**",
"Options": "{\n \"mountPath\": \"/mnt/data/\"\n}",
"Accessibility": "PRIVATE",
"ProviderType": "Ecs",
"Provider": "pai",
"SourceDatasetId": "d-rcdg3wxxxxxhc5jk87\n",
"SourceDatasetVersion": "v2",
"TagTemplateType": "TextClassification",
"LatestVersion": {
"VersionName": "v1",
"GmtCreateTime": "2021-01-21T17:12:35.232Z",
"GmtModifiedTime": "2021-01-21T17:12:35.232Z",
"Property": "FILE",
"DataSourceType": "OSS",
"Uri": "OSS://xxx",
"Labels": [
{
"Key": "env",
"Value": "test"
}
],
"Options": "{\n \"mountPath\": \"/mnt/data/\"\n}",
"SourceType": "USER",
"Description": "base model v1",
"SourceId": "d-65mrsr5fub4u74lej3",
"DataCount": 10000,
"DataSize": 10000,
"MountAccess": "RO",
"ImportInfo": "{\n \"region\": \"cn-wulanchabu\",\n \"fileSystemId\": \"bmcpfs-xxxxxxxxxxx\",\n \"path\": \"/mnt\",\n \"mountTarget\": \"cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com\",\n \"isVpcMount\": true\n}"
},
"MountAccess": "RW",
"MountAccessReadWriteRoleIdList": [
"PAI.AlgoOperator"
],
"ImportInfo": "{\n \"region\": \"cn-wulanchabu\",\n \"fileSystemId\": \"bmcpfs-xxxxxxxxxxx\",\n \"path\": \"/mnt\",\n \"mountTarget\": \"cpfs-xxxxxxxxxxxx-vpc-gacs9f.cn-wulanchabu.cpfs.aliyuncs.com\",\n \"isVpcMount\": true\n}",
"Edition": "BASIC",
"IsShared": false,
"SharedFrom": {
"Status": "ACTIVE",
"SourceTenantId": "148***************115",
"SourceWorkspaceId": "33**19",
"TenantId": "153***************249",
"WorkspaceId": "42**2",
"AllowedMountAccessLevels": [
"RO"
],
"IsSecureMode": true,
"SharedAt": "2025-08-27T12:23:58Z",
"ExpiresAt": "2026-08-27T12:23:58Z"
},
"SharingConfig": {
"SharedTo": [
{
"Status": "ACTIVE",
"SourceTenantId": "148***************115",
"SourceWorkspaceId": "33**19",
"TenantId": "153***************249",
"WorkspaceId": "42**2",
"AllowedMountAccessLevels": [
"RO"
],
"IsSecureMode": true,
"SharedAt": "2025-08-27T12:23:58Z",
"ExpiresAt": "2026-08-27T12:23:58Z"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.