Queries all the tags bound to a data migration, data synchronization, or change tracking instance.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeTagKeys

The operation that you want to perform. Set the value to DescribeTagKeys.

Note You can query custom tags or system tags that are bound to a DTS instance by specifying the Category parameter. You can view only the tags that are returned.
PageSize Integer No 20

The number of tag keys to return each time for DTS instances that have multiple tags. Default value: 20.

PageNumber Integer No 1

The page number. The valid value ranges from 0 to the maximum value of the Interger data type. This parameter is used together with PageSize. Default value: 1.

ResourceType String No ALIYUN::DTS::INSTANCE

The resource type. Set the value to ALIYUN::DTS::INSTANCE.

ResourceId String No dtsl5o11f9029c****

The ID of the data migration, data synchronization, or change tracking instance. You can call the DescribeDtsJobs operation to query the instance ID.

Category String No Custom

The type of the tag. Valid values:

  • Custom indicates that the tag key is created by users.
  • System indicates that the tag key is created by the system.
Note By default, if the parameter is left empty, custom tags and system tags are returned.
RegionId String No cn-hangzhou

The region ID of the DTS instance. For more information, see List of supported regions.

Response parameters

Parameter Type Example Description
Category String Custom

The type of the tag.

PageNumber Integer 1

The start page of the returned pages.

PageSize Integer 20

The number of tags returned on each page.

RequestId String AD110813-9AD6-5F07-BFC8-4C841309****

The ID of the request.

TagKeys List ["a","x"]

The key of the tag.

TotalCount Integer 13

The total number of returned tag keys.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

    "pageNumber": 1,
    "tagKeys": [
    "totalRecordCount": 13,
    "pageRecordCount": 10,
    "requestId": "AD110813-9AD6-5F07-BFC8-4C841309****",
    "success": true,
    "httpStatusCode": 200

Error codes

HttpCode Error code Error message Description
400 InvalidParameter.Category The specified Category is invalid. Valid values are Custom and System. The error message returned because the value of the Category parameter is invalid. The value can be Custom or System.
400 InvalidParameter.ResourceType The ResourceType parameter is invalid. The error message returned because the value of the ResourceType parameter is invalid. Set the parameter to ALIYUN::DTS::INSTANCE.

For a list of error codes, visit the API Error Center.