Help Center/ ModelArts/ SDK Reference/ Data Management/ Managing Dataset Versions/ Querying Details About a Dataset Version
Updated on 2024-06-12 GMT+08:00

Querying Details About a Dataset Version

Obtain details about a dataset version based on the version ID.

dataset.get_version_info(version_id)

Sample Code

Obtain details about a dataset version.
from modelarts.session import Session
from modelarts.dataset import Dataset
session = Session()

dataset = Dataset(session, dataset_id)
version_info = dataset.get_version_info(version_id="cSPuXPgnYp7ObRs6LaR")
print(version_info) # Print details about the dataset version.

Parameters

Table 1 Request parameters

Parameter

Mandatory

Type

Description

version_id

Yes

String

Dataset version ID