GetDatasetVersion

Updated at:

Retrieves the details of a specified dataset version.

Operation description

Retrieves the details of a specified dataset version.

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.

Test

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 Action element 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 Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • 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

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:

  • DIRECTORY: Directory.

  • FILE: File.

Valid values:

  • DIRECTORY :

    Directory.

  • FILE :

    File.

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:

  • NAS: File Storage NAS.

  • CPFS: Cloud Parallel File Storage.

  • OSS: Object Storage Service (OSS).

Valid values:

  • NAS :

    File Storage NAS.

  • CPFS :

    Cloud Paralleled File System.

  • OSS :

    Object Storage Service (OSS).

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:

  • ENHANCE: Data augmentation.

  • ADDVERSION: Added version.

  • CLEANING: Data cleaning.

Valid values:

  • PAI_PUBLIC_DATASET :

    PAI_PUBLIC_DATASET

  • ITAG :

    ITAG

  • USER :

    USER

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: Read-only mount.

  • RW: Read/write mount.

RO

ImportInfo

string

The storage import configuration of the dataset. OSS, NAS, and CPFS are supported.

OSS

{ "region": "${region}",// The region ID "bucket": "${bucket}",// The bucket name "path": "${path}" // The file path }

NAS

CPFS

Block content

AI CPFS

Block content

{ "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.