Unbinds tags from one or more data migration, data synchronization, or change tracking instances.

Note If a tag is unbound from an instance and is not bound to other instances, the tag is deleted.

Debugging

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

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesUntagResources

The operation that you want to perform. Set this parameter to UntagResources.

RegionIdStringYescn-hangzhou

The ID of the region where the data migration, data synchronization, or change tracking instance resides. For more information, see List of supported regions.

ResourceId.NRepeatListYesdtsntk10k6r12v****

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

Note N specifies the serial number of the instance. For example, ResourceId.0 specifies the ID of the first instance and ResourceId.1 specifies the ID of the second instance. You can unbind tags from 1 to 50 instances at a time.
ResourceTypeStringYesALIYUN::DTS::INSTANCE

The resource type. Valid value: ALIYUN::DTS::INSTANCE.

TagKey.NRepeatListNotestkey1

The tag key.

Note
  • N specifies the serial number of the tag. For example, TagKey.0 specifies the key of the first tag and TagKey.1 specifies the key of the second tag. You can unbind 1 to 20 tags at a time.
  • This parameter cannot be an empty string.
  • You must specify at least one of the All and TagKey.N parameters.
  • If you specify both the All parameter and the TagKey.N parameter, only the TagKey.N parameter takes effect.
AllBooleanNofalse

Specifies whether to unbind all tags from the specified instances. Valid values:

  • true: unbinds all tags from the specified instances.
  • false: To unbind only specific tags, you must specify the TagKey.N parameter.
Note
  • You must specify at least one of the All and TagKey.N parameters.
  • If you specify both the All parameter and the TagKey.N parameter, the All parameter does not take effect.

Response parameters

ParameterTypeExampleDescription
ErrCodeStringInternalError

The error code returned if the call failed.

ErrMessageStringThe request processing has failed due to some unknown error.

The error message returned if the call failed.

RequestIdStringED3A8FE0-EEFA-4416-BC42-34D61A52****

The ID of the request.

SuccessBooleantrue

Indicates whether the call was successful.

Examples

Sample requests

http(s)://dts.aliyuncs.com/?Action=UntagResources
&RegionId=cn-hangzhou
&ResourceId.1=dtsntk10k6r12v****
&ResourceType=ALIYUN::DTS::INSTANCE
&<Common request parameters>

Sample success responses

XML format

<UntagResourcesResponse>
      <RequestId>ED3A8FE0-EEFA-4416-BC42-34D61A52****</RequestId>
      <Success>true</Success>
</UntagResourcesResponse>

JSON format

{
    "RequestId": "ED3A8FE0-EEFA-4416-BC42-34D61A52****",
    "Success": true
}

Error codes

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