UntagResource
Removes tags from an AWS X-Ray group or sampling rule. You cannot edit or delete system
tags (those with an aws:
prefix).
Request Syntax
POST /UntagResource HTTP/1.1
Content-type: application/json
{
"ResourceARN": "string
",
"TagKeys": [ "string
" ]
}
URI Request Parameters
The request does not use any URI parameters.
Request Body
The request accepts the following data in JSON format.
- ResourceARN
-
The Amazon Resource Number (ARN) of an X-Ray group or sampling rule.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1011.
Required: Yes
- TagKeys
-
Keys for one or more tags that you want to remove from an X-Ray group or sampling rule.
Type: Array of strings
Array Members: Minimum number of 0 items. Maximum number of 200 items.
Length Constraints: Minimum length of 1. Maximum length of 128.
Required: Yes
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
- InvalidRequestException
-
The request is missing required parameters or has invalid parameters.
HTTP Status Code: 400
- ResourceNotFoundException
-
The resource was not found. Verify that the name or Amazon Resource Name (ARN) of the resource is correct.
HTTP Status Code: 404
- ThrottledException
-
The request exceeds the maximum number of requests per second.
HTTP Status Code: 429
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: