Deletes the specified tags of a customer master key (CMK) or secret.

Request format

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

Debugging

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 UntagResource

The operation that you want to perform.

Set the value to UntagResource.

TagKeys String Yes ["key1"]

One or more tag keys. You do not need to specify tag values.

Format: string array

Length of the string in the array: 1 to 128 (unit: bytes)

KeyId String No 08c33a6f-4e0a-4a1b-a3fa-7ddfa1d4

The globally unique identifier of the CMK whose tags you want to delete.

Note Set either this parameter or SecretName.
SecretName String No MyDbCreds

The name of the secret whose tags you want to delete.

Note Set either SecretName or KeyId.

Response parameters

Parameter Type Example Description
RequestId String 4162a6af-bc99-40b3-a552-89dcc8aaf7c8

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?KeyId=08c33a6f-4e0a-4a1b-a3fa-7ddfa1d4
&TagKeys=["key1"]
&<Common request parameters>

Sample success responses

XML format

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

JSON format

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

Error codes

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