Adding Tags to AWS Keys
Use the post /v1/cckm/aws/keys/{id}/add-tags
API to add tags to an AWS key. The tags must be specified in the following format:
CCKM allows the following characters in tag values:
Alphanumeric characters
Special characters ** _ . / = + - @ **
Syntax
Here, {id}
represents the key ID.
Request Parameters
Parameter | Type | Description |
---|---|---|
AUTHTOKEN | string | Authorization token. |
tags | array of JSONs | Additional information to be added to the key. CCKM allows the following characters in tag values: • Alphanumeric characters • Special characters ** _ . / = + - @ ** |
Example Request
Example Response
The sample output shows that the tag key and its value (TagKey": "key-new"
, "TagValue": "value-new"
) are added to the key (with ID baf58871-2503-4d13-a84a-339aeb8fdfaf
).
To know more about response parameters, refer to Response Parameters of Key Life Cycle Management APIs.
Response Codes
Response Code | Description |
---|---|
2xx | Success |
4xx | Client errors |
5xx | Server errors |
Refer to HTTP status codes for details.