TagResource
GET /?Action=TagResource
Description
Adds one or more tags to a customer master key (CMK).
If a tag with the same key already exists for the CMK, the tag value is replaced.
For example with OSC CLI:
osc-cli okms TagResource \
--KeyId cmk-12345678 \
--Tags '[{"TagKey": "AAAA", "TagValue": "BBBB"}, {"TagKey": "CCCC", "TagValue": "DDDD"}]'
Body parameter
Required: false
Name: TagResourceRequest
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
KeyId |
The ID of the CMK. |
true |
string |
||
Tags |
One or more tags you want to add to the CMK. |
false |
string |
Responses
HTTP Code 200
HTTP Code | Description | Schema |
---|---|---|
200 |
TagResourceResult |
empty object |