

# ListTagsForResource, TagResource, UntagResource


## URI


`/tags/ResourceArn`

## HTTP methods


### GET


**Operation ID:** `ListTagsForResource`

Lists the tags for a resource.


**Path parameters**  

| Name | Type | Required | Description | 
| --- |--- |--- |--- |
| ResourceArn | String | True | The Amazon Resource Name (ARN) for the resource. | 


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | ListTagsForResourceResponse | 200 response - Success. | 
| 400 | ValidationException | 400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you used parameters together incorrectly. | 
| 404 | ResourceNotFoundException | 404 response - MalformedQueryString. The query string contains a syntax error or resource not found. | 
| 500 | InternalServerException | 500 response - InternalServiceError. Temporary service error. Retry the request. | 

### POST


**Operation ID:** `TagResource`

Adds a tag to a resource.


**Path parameters**  

| Name | Type | Required | Description | 
| --- |--- |--- |--- |
| ResourceArn | String | True | The Amazon Resource Name (ARN) for the resource. | 


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | TagResourceResponse | 200 response - Success. | 
| 400 | ValidationException | 400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you used parameters together incorrectly. | 
| 404 | ResourceNotFoundException | 404 response - MalformedQueryString. The query string contains a syntax error or resource not found. | 
| 500 | InternalServerException | 500 response - InternalServiceError. Temporary service error. Retry the request. | 

### DELETE


**Operation ID:** `UntagResource`

Removes a tag from a resource.


**Path parameters**  

| Name | Type | Required | Description | 
| --- |--- |--- |--- |
| ResourceArn | String | True | The Amazon Resource Name (ARN) for the resource. | 


**Query parameters**  

| Name | Type | Required | Description | 
| --- |--- |--- |--- |
| TagKeys | String | True | Keys for the tags to be removed. | 


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | UntagResourceResponse | 200 response - Success. | 
| 400 | ValidationException | 400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you used parameters together incorrectly. | 
| 404 | ResourceNotFoundException | 404 response - MalformedQueryString. The query string contains a syntax error or resource not found. | 
| 500 | InternalServerException | 500 response - InternalServiceError. Temporary service error. Retry the request. | 

### OPTIONS



**Path parameters**  

| Name | Type | Required | Description | 
| --- |--- |--- |--- |
| ResourceArn | String | True | The Amazon Resource Name (ARN) for the resource. | 


**Responses**  

| Status code | Response model | Description | 
| --- |--- |--- |
| 200 | None | Default response for CORS method. | 

## Schemas


### Request bodies


#### POST schema
POST

```
{
  "Tags": {
  }
}
```

### Response bodies


#### ListTagsForResourceResponse schema
ListTagsForResourceResponse

```
{
  "Tags": {
  }
}
```

#### TagResourceResponse schema
TagResourceResponse

```
{
}
```

#### UntagResourceResponse schema
UntagResourceResponse

```
{
}
```

#### ValidationException schema
ValidationException

```
{
  "message": "string"
}
```

#### ResourceNotFoundException schema
ResourceNotFoundException

```
{
  "message": "string"
}
```

#### InternalServerException schema
InternalServerException

```
{
  "message": "string"
}
```

## Properties


### InternalServerException


500 response - InternalServiceError. Temporary service error. Retry the request. 


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | True |  | 

### ListTagsForResourceResponse


The result of a successful `ListTagsForResource` request.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| Tags | object | False | The tags associated with the resource. | 

### ResourceNotFoundException


404 response - MalformedQueryString. The query string contains a syntax error or resource not found.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | True |  | 

### TagResourceRequest


Request to tag a resource.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| Tags | object | True | The tags associated with the resource. | 

### TagResourceResponse


The result of a successful `TagResource` request.

### UntagResourceResponse


The result of a successful `UntagResource` request.

### ValidationException


400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you might have used parameters together incorrectly.


| Property | Type | Required | Description | 
| --- |--- |--- |--- |
| message | string | True |  | 

## See also


For more information about using this API in one of the language-specific AWS SDKs and references, see the following:

### ListTagsForResource

+ [AWS Command Line Interface V2](/goto/cli2/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for .NET V4](/goto/DotNetSDKV4/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for C\$1\$1](/goto/SdkForCpp/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for Go v2](/goto/SdkForGoV2/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for Java V2](/goto/SdkForJavaV2/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for JavaScript V3](/goto/SdkForJavaScriptV3/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for Kotlin](/goto/SdkForKotlin/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for PHP V3](/goto/SdkForPHPV3/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for Python](/goto/boto3/route53-recovery-control-config-2020-11-02/ListTagsForResource)
+ [AWS SDK for Ruby V3](/goto/SdkForRubyV3/route53-recovery-control-config-2020-11-02/ListTagsForResource)

### TagResource

+ [AWS Command Line Interface V2](/goto/cli2/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for .NET V4](/goto/DotNetSDKV4/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for C\$1\$1](/goto/SdkForCpp/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for Go v2](/goto/SdkForGoV2/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for Java V2](/goto/SdkForJavaV2/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for JavaScript V3](/goto/SdkForJavaScriptV3/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for Kotlin](/goto/SdkForKotlin/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for PHP V3](/goto/SdkForPHPV3/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for Python](/goto/boto3/route53-recovery-control-config-2020-11-02/TagResource)
+ [AWS SDK for Ruby V3](/goto/SdkForRubyV3/route53-recovery-control-config-2020-11-02/TagResource)

### UntagResource

+ [AWS Command Line Interface V2](/goto/cli2/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for .NET V4](/goto/DotNetSDKV4/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for C\$1\$1](/goto/SdkForCpp/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for Go v2](/goto/SdkForGoV2/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for Java V2](/goto/SdkForJavaV2/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for JavaScript V3](/goto/SdkForJavaScriptV3/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for Kotlin](/goto/SdkForKotlin/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for PHP V3](/goto/SdkForPHPV3/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for Python](/goto/boto3/route53-recovery-control-config-2020-11-02/UntagResource)
+ [AWS SDK for Ruby V3](/goto/SdkForRubyV3/route53-recovery-control-config-2020-11-02/UntagResource)