

# UntagResource
<a name="API_UntagResource"></a>

This action removes a tag from an Amazon FSx resource.

## Request Syntax
<a name="API_UntagResource_RequestSyntax"></a>

```
{
   "ResourceARN": "string",
   "TagKeys": [ "string" ]
}
```

## Request Parameters
<a name="API_UntagResource_RequestParameters"></a>

For information about the parameters that are common to all actions, see [Common Parameters](CommonParameters.md).

The request accepts the following data in JSON format.

 ** [ResourceARN](#API_UntagResource_RequestSyntax) **   <a name="FSx-UntagResource-request-ResourceARN"></a>
The ARN of the Amazon FSx resource to untag.  
Type: String  
Length Constraints: Minimum length of 8. Maximum length of 512.  
Pattern: `^arn:(?=[^:]+:fsx:[^:]+:\d{12}:)((|(?=[a-z0-9-.]{1,63})(?!\d{1,3}(\.\d{1,3}){3})(?![^:]*-{2})(?![^:]*-\.)(?![^:]*\.-)[a-z0-9].*(?<!-)):){4}(?!/).{0,1024}$`   
Required: Yes

 ** [TagKeys](#API_UntagResource_RequestSyntax) **   <a name="FSx-UntagResource-request-TagKeys"></a>
A list of keys of tags on the resource to untag. In case the tag key doesn't exist, the call will still succeed to be idempotent.  
Type: Array of strings  
Array Members: Minimum number of 1 item. Maximum number of 50 items.  
Length Constraints: Minimum length of 1. Maximum length of 128.  
Pattern: `^([\p{L}\p{Z}\p{N}_.:/=+\-@]*)$`   
Required: Yes

## Response Elements
<a name="API_UntagResource_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

## Errors
<a name="API_UntagResource_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** BadRequest **   
A generic error indicating a failure with a client request.    
 ** Message **   
A detailed error message.
HTTP Status Code: 400

 ** InternalServerError **   
A generic error indicating a server-side failure.    
 ** Message **   
A detailed error message.
HTTP Status Code: 500

 ** NotServiceResourceError **   
The resource specified for the tagging operation is not a resource type owned by Amazon FSx. Use the API of the relevant service to perform the operation.     
 ** Message **   
A detailed error message.  
 ** ResourceARN **   
The Amazon Resource Name (ARN) of the non-Amazon FSx resource.
HTTP Status Code: 400

 ** ResourceDoesNotSupportTagging **   
The resource specified does not support tagging.     
 ** Message **   
A detailed error message.  
 ** ResourceARN **   
The Amazon Resource Name (ARN) of the resource that doesn't support tagging.
HTTP Status Code: 400

 ** ResourceNotFound **   
The resource specified by the Amazon Resource Name (ARN) can't be found.    
 ** Message **   
A detailed error message.  
 ** ResourceARN **   
The resource ARN of the resource that can't be found.
HTTP Status Code: 400

## See Also
<a name="API_UntagResource_SeeAlso"></a>

For more information about using this API in one of the language-specific Amazon SDKs, see the following:
+  [Amazon Command Line Interface V2](https://docs.amazonaws.cn/goto/cli2/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/fsx-2018-03-01/UntagResource) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/fsx-2018-03-01/UntagResource) 