GetDataset
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 dataset ID. For information on how to obtain a dataset ID, see ListDatasets. |
d-rbvg5wz****c9ks92 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| RequestId |
string |
The request ID. |
5A14FA81-DD4E-******-6343FE44B941 |
| DatasetId |
string |
The dataset ID. |
d-rbvg5wz****c9ks92 |
| Name |
string |
The dataset name. |
myName |
| Description |
string |
The description of the dataset. |
用于标注的数据。 |
| 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 user ID of the dataset owner. |
2485765****023475 |
| OwnerId |
string |
The owner ID. |
1631044****3440 |
| Property |
string |
The property of the initial dataset version (v1). Valid values:
Valid values:
|
DIRECTORY |
| DataSourceType |
string |
The data source type. Valid values:
Valid values:
|
NAS |
| Uri |
string |
The URI of the initial dataset version (v1). The supported formats are as follows:
|
nas://09f****f2.cn-hangzhou/ |
| Labels |
array |
The labels attached to the dataset. |
|
| Label |
A key-value label. |
{"Key": "env", "Value": "test"} |
|
| DataType |
string |
The data type of the dataset. Valid values:
Valid values:
|
COMMON |
| SourceType |
string |
The source type of the initial dataset version (v1). Valid values:
|
USER |
| SourceId |
string |
The ID of the data source for the initial version (v1). The meaning of this parameter varies based on the
|
jdnhf***fnrimv |
| WorkspaceId |
string |
The ID of the workspace where the dataset is located. |
478** |
| Options |
string |
Extended properties for the initial dataset version (v1), in JSON string format. For example, when using the dataset in a DLC job, you can set the |
{ "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 provider. Valid values:
|
Ecs |
| Provider |
string |
The provider of the dataset. If the value is |
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 annotation set. |
v2 |
| TagTemplateType |
string |
The annotation template of the iTAG annotation set. |
TextClassification |
| LatestVersion | DatasetVersion |
The latest version of the dataset. |
|
| MountAccess |
string |
The mount permissions for the dataset. Valid values:
|
RW |
| MountAccessReadWriteRoleIdList |
array |
A list of workspace role IDs granted read/write permissions for the dataset. A role ID that starts with |
|
|
string |
A workspace role ID. |
PAI.AlgoOperator |
|
| ImportInfo |
string |
The storage import configuration of the dataset. Storage services such as 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 edition of the dataset. Valid values:
|
BASIC |
| IsShared |
boolean |
Indicates whether the dataset is a shared dataset. Valid values:
|
false |
| SharedFrom | DatasetShareRelationship |
The source from which the dataset was shared. This parameter is returned only if |
|
| SharingConfig |
object |
The sharing configuration for the dataset. |
|
| SharedTo |
array |
A list of relationships indicating to whom the dataset is shared. |
|
| DatasetShareRelationship |
A sharing relationship for the dataset. |
||
| AccessibleRoleIdList |
array |
A list of workspace role IDs that can view the dataset. This parameter takes effect only when |
|
|
string |
A workspace role ID. |
PAI.AlgoOperator |
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",
"IsSecureMode": true,
"SharedAt": "2025-08-27T12:23:58Z",
"ExpiresAt": "2026-08-27T12:23:58Z",
"AllowedMountAccessLevels": [
"RO"
],
"Extra": "{\"AllowExportModel\":false,\"AllowAccessDLCWebTerminal\":false,\"AllowAccessDLCFullLog\":false}"
},
"SharingConfig": {
"SharedTo": [
{
"Status": "ACTIVE",
"SourceTenantId": "148***************115",
"SourceWorkspaceId": "33**19",
"TenantId": "153***************249",
"WorkspaceId": "42**2",
"IsSecureMode": true,
"SharedAt": "2025-08-27T12:23:58Z",
"ExpiresAt": "2026-08-27T12:23:58Z",
"AllowedMountAccessLevels": [
"RO"
],
"Extra": "{\"AllowExportModel\":false,\"AllowAccessDLCWebTerminal\":false,\"AllowAccessDLCFullLog\":false}"
}
]
},
"AccessibleRoleIdList": [
"PAI.AlgoOperator"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.