GetDatasetVersion
Retrieves the details of a specified dataset version.
Operation description
Retrieves the details of a specified dataset version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
paidataset:GetDatasetVersion |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/datasets/{DatasetId}/versions/{VersionName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DatasetId |
string |
Yes |
The dataset ID. For more information about how to obtain the dataset ID, see ListDatasets. |
d-lfd60v0p****ujtsdx |
| VersionName |
string |
Yes |
The version name. |
v1 |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
Id of the request |
C55DF3DA-F120-5E37-A374-F49365531701 |
| DatasetId |
string |
The primary ID of the resource. |
d-dkdbnnap0g7b6su4yg |
| VersionName |
string |
The dataset version. |
v1 |
| Property |
string |
The property of the dataset. Valid values:
Valid values:
|
DIRECTORY |
| GmtCreateTime |
string |
The creation time. The time is displayed in UTC and follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ss.sssZ format. |
2023-12-13T10:22:05.694Z |
| GmtModifiedTime |
string |
The last modification time. The time is displayed in UTC and follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ss.sssZ format. |
2023-12-13T10:22:05.694Z |
| DataSourceType |
string |
The data source type. Valid values:
Valid values:
|
OSS |
| Uri |
string |
The URI configuration example. |
oss://ai4d-br7hx9ngzelo2o6uip.oss-cn-shanghai.aliyuncs.com/365349/data-1157703270994901/datasets/aka108o/ |
| Labels |
array |
The resource tags. |
|
| Label |
The tag. |
||
| Options |
string |
The extended fields. |
{ "mountPath": "/mnt/data/" } |
| SourceType |
string |
The source type. Valid values:
Valid values:
|
USER |
| Description |
string |
The version description. |
This is a description of the dataset version. |
| SourceId |
string |
The source ID of the dataset. |
d-rbvg5wzljzjhc9ks92 |
| DataCount |
integer |
The data count. |
10000 |
| DataSize |
integer |
The dataset size. |
10000 |
| MountAccess |
string |
The permissions when the dataset is mounted. Valid values:
|
RO |
| 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 } |
| DatasetTaskRamRole |
string |
DatasetTaskRamRole |
acs:ram::1234567890123456:role/role-name |
| UserMetricsEndpoints |
array |
The list of user metric collection endpoints. |
[{"Port":0,"Path":""}] |
| UserMetricsEndpoint |
The user metric collection endpoint, including the port and path. |
{"Port":0,"Path":""} |
Examples
Success response
JSON format
{
"RequestId": "C55DF3DA-F120-5E37-A374-F49365531701",
"DatasetId": "d-dkdbnnap0g7b6su4yg",
"VersionName": "v1",
"Property": "DIRECTORY",
"GmtCreateTime": "2023-12-13T10:22:05.694Z",
"GmtModifiedTime": "2023-12-13T10:22:05.694Z",
"DataSourceType": "OSS",
"Uri": "oss://ai4d-br7hx9ngzelo2o6uip.oss-cn-shanghai.aliyuncs.com/365349/data-1157703270994901/datasets/aka108o/",
"Labels": [
{
"Key": "env",
"Value": "test"
}
],
"Options": "{\n \"mountPath\": \"/mnt/data/\"\n}",
"SourceType": "USER",
"Description": "This is a description of the dataset version.",
"SourceId": "d-rbvg5wzljzjhc9ks92",
"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}",
"DatasetTaskRamRole": "acs:ram::1234567890123456:role/role-name",
"UserMetricsEndpoints": [
{
"Port": 0,
"Path": ""
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.