You can call this operation to delete the specified tags of a CMK.

Request format

KeyId="string"&TagKeys=["tagkey1","tagkey2"] 

Request parameters

Parameter Type Required? Example Description
KeyId String Yes external key id The GUID of the key.
TagsKeys JSON Yes ["tagkey1","tagkey2"] One or more tag keys. Only the tag keys are required, and tag values are not required. Format: string array. Each string in the array must be 1 to 128 characters in length.

Sample requests

https://kms.cn-hangzhou.aliyuncs.com/?Action=UntagResource
&KeyId=<external key id>
&TagKeys=<tagkeys> 
&<Common request parameters>

Response parameters

Parameter Type Example Description
RequestId String 4162a6af-bc99-40b3-a552-89dcc8aaf7c8 The request ID.

Sample responses

JSON format

{
    "RequestId": "4162a6af-bc99-40b3-a552-89dcc8aaf7c8"
}

XML format

<KMS>
  <RequestId>4162a6af-bc99-40b3-a552-89dcc8aaf7c8</RequestId>
</KMS>