Tags
Represents the set of tags for an MSK resource. A tag is a key-value pair that you define for the cluster. Using tags is a simple yet powerful way to manage Amazon resources and organize data, including billing data.
URI
/v1/tags/
resourceArn
HTTP methods
DELETE
Operation ID: UntagResource
Removes the tags associated with the keys that are provided in the query.
Name | Type | Required | Description |
---|---|---|---|
resourceArn | String | True | The Amazon Resource Name (ARN) that uniquely identifies the resource that's associated with the tags. |
Name | Type | Required | Description |
---|---|---|---|
tagKeys | String | True | Tag keys must be unique for a given cluster. In addition, the following restrictions apply:
|
Status code | Response model | Description |
---|---|---|
204 | None | 204 response |
400 | Error | The request isn't valid because the input is incorrect. Correct your input and then submit it again. |
401 | Error | The request is not authorized. The provided credentials couldn't be validated. |
403 | Error | Access forbidden. Check your credentials and then retry your request. |
404 | Error | The resource could not be found due to incorrect input. Correct the input, then retry the request. |
429 | Error | 429 response |
500 | Error | There was an unexpected internal server error. Retrying your request might resolve the issue. |
503 | Error | 503 response |
GET
Operation ID: ListTagsForResource
Returns a list of the tags associated with the specified resource.
Name | Type | Required | Description |
---|---|---|---|
resourceArn | String | True | The Amazon Resource Name (ARN) that uniquely identifies the resource that's associated with the tags. |
Status code | Response model | Description |
---|---|---|
200 |
ListTagsForResourceResponse | Success response. |
400 | Error | The request isn't valid because the input is incorrect. Correct your input and then submit it again. |
401 | Error | The request is not authorized. The provided credentials couldn't be validated. |
403 | Error | Access forbidden. Check your credentials and then retry your request. |
404 | Error | The resource could not be found due to incorrect input. Correct the input, then retry the request. |
429 | Error | 429 response |
500 | Error | There was an unexpected internal server error. Retrying your request might resolve the issue. |
503 | Error | 503 response |
OPTIONS
Enable CORS by returning the correct headers.
Name | Type | Required | Description |
---|---|---|---|
resourceArn | String | True | The Amazon Resource Name (ARN) that uniquely identifies the resource that's associated with the tags. |
Status code | Response model | Description |
---|---|---|
200 | None | Default response for CORS method |
POST
Operation ID: TagResource
Adds tags to the specified MSK resource.
Name | Type | Required | Description |
---|---|---|---|
resourceArn | String | True | The Amazon Resource Name (ARN) that uniquely identifies the resource that's associated with the tags. |
Status code | Response model | Description |
---|---|---|
204 | None | 204 response |
400 | Error | The request isn't valid because the input is incorrect. Correct your input and then submit it again. |
401 | Error | The request is not authorized. The provided credentials couldn't be validated. |
403 | Error | Access forbidden. Check your credentials and then retry your request. |
404 | Error | The resource could not be found due to incorrect input. Correct the input, then retry the request. |
429 | Error | 429 response |
500 | Error | There was an unexpected internal server error. Retrying your request might resolve the issue. |
503 | Error | 503 response |
Schemas
Request bodies
{ "tags": { } }
Response bodies
{ "tags": { } }
{ "invalidParameter": "string", "message": "string" }
Properties
Error
Returns information about an error.
Property | Type | Required | Description |
---|---|---|---|
invalidParameter | string | False | The parameter that caused the error. |
message | string | False | The description of the error. |
ListTagsForResourceResponse
Response of listing tags for a resource.
Property | Type | Required | Description |
---|---|---|---|
tags | object | True | The key-value pair for the resource tag. |
TagResourceRequest
Tag a resource.
Property | Type | Required | Description |
---|---|---|---|
tags | object | True | The key-value pair for the resource tag. |
See also
For more information about using this API in one of the language-specific AWS SDKs and references, see the following: