

# RegisterDBProxyTargets
<a name="API_RegisterDBProxyTargets"></a>

Associate one or more `DBProxyTarget` data structures with a `DBProxyTargetGroup`.

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

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

 ** DBProxyName **   
The identifier of the `DBProxy` that is associated with the `DBProxyTargetGroup`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 63.  
Pattern: `[a-zA-Z](?:-?[a-zA-Z0-9]+)*`   
Required: Yes

 **DBClusterIdentifiers.member.N**   
One or more DB cluster identifiers.  
Type: Array of strings  
Required: No

 **DBInstanceIdentifiers.member.N**   
One or more DB instance identifiers.  
Type: Array of strings  
Required: No

 ** TargetGroupName **   
The identifier of the `DBProxyTargetGroup`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 63.  
Pattern: `[a-zA-Z](?:-?[a-zA-Z0-9]+)*`   
Required: No

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

The following element is returned by the service.

 **DBProxyTargets.member.N**   
One or more `DBProxyTarget` objects that are created when you register targets with a target group.  
Type: Array of [DBProxyTarget](API_DBProxyTarget.md) objects

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

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

 ** DBClusterNotFoundFault **   
 `DBClusterIdentifier` doesn't refer to an existing DB cluster.  
HTTP Status Code: 404

 ** DBInstanceNotFound **   
 `DBInstanceIdentifier` doesn't refer to an existing DB instance.  
HTTP Status Code: 404

 ** DBProxyNotFoundFault **   
The specified proxy name doesn't correspond to a proxy owned by your Amazon account in the specified Amazon Region.  
HTTP Status Code: 404

 ** DBProxyTargetAlreadyRegisteredFault **   
The proxy is already associated with the specified RDS DB instance or Aurora DB cluster.  
HTTP Status Code: 400

 ** DBProxyTargetGroupNotFoundFault **   
The specified target group isn't available for a proxy owned by your Amazon account in the specified Amazon Region.  
HTTP Status Code: 404

 ** InsufficientAvailableIPsInSubnetFault **   
The requested operation can't be performed because there aren't enough available IP addresses in the proxy's subnets. Add more CIDR blocks to the VPC or remove IP address that aren't required from the subnets.  
HTTP Status Code: 400

 ** InvalidDBClusterStateFault **   
The requested operation can't be performed while the cluster is in this state.  
HTTP Status Code: 400

 ** InvalidDBInstanceState **   
The DB instance isn't in a valid state.  
HTTP Status Code: 400

 ** InvalidDBProxyStateFault **   
The requested operation can't be performed while the proxy is in this state.  
HTTP Status Code: 400

## See Also
<a name="API_RegisterDBProxyTargets_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/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for .NET V4](https://docs.amazonaws.cn/goto/DotNetSDKV4/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for C\$1\$1](https://docs.amazonaws.cn/goto/SdkForCpp/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for Go v2](https://docs.amazonaws.cn/goto/SdkForGoV2/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for Java V2](https://docs.amazonaws.cn/goto/SdkForJavaV2/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for JavaScript V3](https://docs.amazonaws.cn/goto/SdkForJavaScriptV3/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for Kotlin](https://docs.amazonaws.cn/goto/SdkForKotlin/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for PHP V3](https://docs.amazonaws.cn/goto/SdkForPHPV3/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for Python](https://docs.amazonaws.cn/goto/boto3/rds-2014-10-31/RegisterDBProxyTargets) 
+  [Amazon SDK for Ruby V3](https://docs.amazonaws.cn/goto/SdkForRubyV3/rds-2014-10-31/RegisterDBProxyTargets) 