Querying Details About a Dataset Version
Function
This API is used to query the details about a dataset version.
Debugging
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
URI
GET /v2/{project_id}/datasets/{dataset_id}/versions/{version_id}
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        dataset_id  | 
      
        Yes  | 
      
        String  | 
      
        Dataset ID.  | 
     
| 
        project_id  | 
      
        Yes  | 
      
        String  | 
      
        Project ID. For details about how to obtain a project ID, see Obtaining a Project ID and Name.  | 
     
| 
        version_id  | 
      
        Yes  | 
      
        String  | 
      
        Dataset version ID.  | 
     
Request Parameters
None
Response Parameters
Status code: 200
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        add_sample_count  | 
      
        Integer  | 
      
        Number of added samples.  | 
     
| 
        analysis_cache_path  | 
      
        String  | 
      
        Cache path for feature analysis.  | 
     
| 
        analysis_status  | 
      
        Integer  | 
      
        Status of a feature analysis task. Options: 
  | 
     
| 
        analysis_task_id  | 
      
        String  | 
      
        ID of a feature analysis task.  | 
     
| 
        annotated_sample_count  | 
      
        Integer  | 
      
        Number of samples with labeled versions.  | 
     
| 
        annotated_sub_sample_count  | 
      
        Integer  | 
      
        Number of labeled subsamples.  | 
     
| 
        clear_hard_property  | 
      
        Boolean  | 
      
        Whether to clear hard example properties during release. Options: 
  | 
     
| 
        code  | 
      
        String  | 
      
        Status code of a preprocessing task such as rotation and cropping.  | 
     
| 
        create_time  | 
      
        Long  | 
      
        Time when a version is created.  | 
     
| 
        crop  | 
      
        Boolean  | 
      
        Whether to crop the image. This field is valid only for the object detection dataset whose labeling box is in the rectangle shape. Options: 
  | 
     
| 
        crop_path  | 
      
        String  | 
      
        Path for storing cropped files.  | 
     
| 
        crop_rotate_cache_path  | 
      
        String  | 
      
        Temporary directory for executing the rotation and cropping task.  | 
     
| 
        data_analysis  | 
      
        Map<String,Object>  | 
      
        Feature analysis result in JSON format.  | 
     
| 
        data_path  | 
      
        String  | 
      
        Path for storing data.  | 
     
| 
        data_statistics  | 
      
        Map<String,Object>  | 
      
        Sample statistics on a dataset, including the statistics on sample metadata in JSON format.  | 
     
| 
        data_validate  | 
      
        Boolean  | 
      
        Whether data is validated by the validation algorithm before release. Options: 
  | 
     
| 
        deleted_sample_count  | 
      
        Integer  | 
      
        Number of deleted samples.  | 
     
| 
        deletion_stats  | 
      
        Map<String,Integer>  | 
      
        Deletion reason statistics.  | 
     
| 
        description  | 
      
        String  | 
      
        Description of a version.  | 
     
| 
        export_images  | 
      
        Boolean  | 
      
        Whether to export images to the version output directory during release. Options: 
  | 
     
| 
        extract_serial_number  | 
      
        Boolean  | 
      
        Whether to parse the subsample number during release. The field is valid for the healthcare dataset. Options: 
  | 
     
| 
        include_dataset_data  | 
      
        Boolean  | 
      
        Whether to include the source data of a dataset during release. Options: 
  | 
     
| 
        is_current  | 
      
        Boolean  | 
      
        Whether the current dataset version is used. Options: 
  | 
     
| 
        label_stats  | 
      
        Array of LabelStats objects  | 
      
        Label statistics list of a released version.  | 
     
| 
        label_type  | 
      
        String  | 
      
        Label type of a released version. Options: 
  | 
     
| 
        manifest_cache_input_path  | 
      
        String  | 
      
        Input path for the manifest file cache during version release.  | 
     
| 
        manifest_path  | 
      
        String  | 
      
        Path for storing the manifest file with the released version.  | 
     
| 
        message  | 
      
        String  | 
      
        Task information recorded during release (for example, error information).  | 
     
| 
        modified_sample_count  | 
      
        Integer  | 
      
        Number of modified samples.  | 
     
| 
        previous_annotated_sample_count  | 
      
        Integer  | 
      
        Number of labeled samples of parent versions.  | 
     
| 
        previous_total_sample_count  | 
      
        Integer  | 
      
        Total samples of parent versions.  | 
     
| 
        previous_version_id  | 
      
        String  | 
      
        Parent version ID  | 
     
| 
        processor_task_id  | 
      
        String  | 
      
        ID of a preprocessing task such as rotation and cropping.  | 
     
| 
        processor_task_status  | 
      
        Integer  | 
      
        Status of a preprocessing task such as rotation and cropping. The options are as follows: 
  | 
     
| 
        remove_sample_usage  | 
      
        Boolean  | 
      
        Whether to clear the existing usage information of a dataset during release. Options: 
  | 
     
| 
        rotate  | 
      
        Boolean  | 
      
        Whether to rotate the image. Options: 
  | 
     
| 
        rotate_path  | 
      
        String  | 
      
        Path for storing the rotated file.  | 
     
| 
        sample_state  | 
      
        String  | 
      
        Sample status. The options are as follows: 
  | 
     
| 
        start_processor_task  | 
      
        Boolean  | 
      
        Whether to start a data analysis task during release. Options: 
  | 
     
| 
        status  | 
      
        Integer  | 
      
        Status of a dataset version. Options: 
  | 
     
| 
        tags  | 
      
        Array of strings  | 
      
        Key identifier list of the dataset. The labeling type is used as the default label when the labeling task releases a version. For example, ["Image","Object detection"].  | 
     
| 
        task_type  | 
      
        Integer  | 
      
        Labeling task type of the released version, which is the same as the dataset type.  | 
     
| 
        total_sample_count  | 
      
        Integer  | 
      
        Total number of version samples.  | 
     
| 
        total_sub_sample_count  | 
      
        Integer  | 
      
        Total number of subsamples generated from the parent samples.  | 
     
| 
        train_evaluate_sample_ratio  | 
      
        String  | 
      
        Split training and verification ratio during version release. The default value is 1.00, indicating that all released versions are training sets.  | 
     
| 
        update_time  | 
      
        Long  | 
      
        Time when a version is updated.  | 
     
| 
        version_format  | 
      
        String  | 
      
        Format of a dataset version. Options: 
  | 
     
| 
        version_id  | 
      
        String  | 
      
        Dataset version ID.  | 
     
| 
        version_name  | 
      
        String  | 
      
        Dataset version name.  | 
     
| 
        with_column_header  | 
      
        Boolean  | 
      
        Whether the first row in the released CSV file is a column name. This field is valid for the table dataset. Options: 
  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        attributes  | 
      
        Array of LabelAttribute objects  | 
      
        Multi-dimensional attribute of a label. For example, if the label is music, attributes such as style and artist may be included.  | 
     
| 
        count  | 
      
        Integer  | 
      
        Number of labels.  | 
     
| 
        name  | 
      
        String  | 
      
        Label name.  | 
     
| 
        property  | 
      
        LabelProperty object  | 
      
        Basic attribute key-value pair of a label, such as color and shortcut keys.  | 
     
| 
        sample_count  | 
      
        Integer  | 
      
        Number of samples containing the label.  | 
     
| 
        type  | 
      
        Integer  | 
      
        Label type. Options: 
  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        default_value  | 
      
        String  | 
      
        Default value of a label attribute.  | 
     
| 
        id  | 
      
        String  | 
      
        Label attribute ID. You can query the tag by invoking the tag list.  | 
     
| 
        name  | 
      
        String  | 
      
        Label attribute name. The value contains a maximum of 64 characters and cannot contain the character. <>=&"'.  | 
     
| 
        type  | 
      
        String  | 
      
        Label attribute type. Options: 
  | 
     
| 
        values  | 
      
        Array of LabelAttributeValue objects  | 
      
        List of label attribute values.  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        id  | 
      
        String  | 
      
        Label attribute value ID.  | 
     
| 
        value  | 
      
        String  | 
      
        Label attribute value.  | 
     
| 
        Parameter  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|
| 
        @modelarts:color  | 
      
        String  | 
      
        Default attribute: Label color, which is a hexadecimal code of the color. By default, this parameter is left blank. Example: #FFFFF0.  | 
     
| 
        @modelarts:default_shape  | 
      
        String  | 
      
        Default attribute: Default shape of an object detection label (dedicated attribute). By default, this parameter is left blank. Options: 
  | 
     
| 
        @modelarts:from_type  | 
      
        String  | 
      
        Default attribute: Type of the head entity in the triplet relationship label. This attribute must be specified when a relationship label is created. This parameter is used only for the text triplet dataset.  | 
     
| 
        @modelarts:rename_to  | 
      
        String  | 
      
        Default attribute: The new name of the label.  | 
     
| 
        @modelarts:shortcut  | 
      
        String  | 
      
        Default attribute: Label shortcut key. By default, this parameter is left blank. For example: D.  | 
     
| 
        @modelarts:to_type  | 
      
        String  | 
      
        Default attribute: Type of the tail entity in the triplet relationship label. This attribute must be specified when a relationship label is created. This parameter is used only for the text triplet dataset.  | 
     
Example Requests
Querying Details About a Dataset Version
GET https://{endpoint}/v2/{project_id}/datasets/{dataset_id}/versions/{version_id}
 Example Responses
Status code: 200
OK
{
  "version_id" : "eSOKEQaXhKzxN00WKoV",
  "version_name" : "V002",
  "version_format" : "Default",
  "previous_version_id" : "vlGvUqOcxxGPIB0ugeE",
  "status" : 1,
  "create_time" : 1605691027084,
  "total_sample_count" : 10,
  "annotated_sample_count" : 10,
  "total_sub_sample_count" : 0,
  "annotated_sub_sample_count" : 0,
  "manifest_path" : "/test-obs/classify/output/dataset-f9e8-gfghHSokody6AJigS5A/annotation/V002/V002.manifest",
  "data_path" : "/test-obs/classify/output/dataset-f9e8-gfghHSokody6AJigS5A/annotation/V002/data/",
  "is_current" : true,
  "analysis_status" : 3,
  "train_evaluate_sample_ratio" : "0.9999",
  "remove_sample_usage" : false,
  "export_images" : false,
  "description" : "",
  "label_stats" : [ {
    "name" : "Rabbits",
    "type" : 0,
    "property" : {
      "@modelarts:color" : "#3399ff"
    },
    "count" : 5,
    "sample_count" : 5
  }, {
    "name" : "Bees",
    "type" : 0,
    "property" : {
      "@modelarts:color" : "#3399ff"
    },
    "count" : 5,
    "sample_count" : 5
  } ],
  "label_type" : "single",
  "task_type" : 0,
  "extract_serial_number" : false
}
 Status Codes
| 
        Status Code  | 
      
        Description  | 
     
|---|---|
| 
        200  | 
      
        OK  | 
     
| 
        401  | 
      
        Unauthorized  | 
     
| 
        403  | 
      
        Forbidden  | 
     
| 
        404  | 
      
        Not Found  | 
     
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.