

# ListOdbPeeringConnections
<a name="API_ListOdbPeeringConnections"></a>

Lists all ODB peering connections or those associated with a specific ODB network.

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

```
{
   "maxResults": number,
   "nextToken": "string",
   "odbNetworkId": "string"
}
```

## Request Parameters
<a name="API_ListOdbPeeringConnections_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.

 ** [maxResults](#API_ListOdbPeeringConnections_RequestSyntax) **   <a name="odb-ListOdbPeeringConnections-request-maxResults"></a>
The maximum number of ODB peering connections to return in the response.  
Default: `20`   
Constraints:  
+ Must be between 1 and 100.
Type: Integer  
Valid Range: Minimum value of 1. Maximum value of 1000.  
Required: No

 ** [nextToken](#API_ListOdbPeeringConnections_RequestSyntax) **   <a name="odb-ListOdbPeeringConnections-request-nextToken"></a>
The pagination token for the next page of ODB peering connections.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 8192.  
Required: No

 ** [odbNetworkId](#API_ListOdbPeeringConnections_RequestSyntax) **   <a name="odb-ListOdbPeeringConnections-request-odbNetworkId"></a>
The identifier of the ODB network to list peering connections for.  
If not specified, lists all ODB peering connections in the account.  
Type: String  
Length Constraints: Minimum length of 6. Maximum length of 2048.  
Pattern: `(arn:(?:aws|aws-cn|aws-us-gov|aws-iso-{0,1}[a-z]{0,1}):[a-z0-9-]+:[a-z0-9-]*:[0-9]+:[a-z0-9-]+/[a-zA-Z0-9_~.-]{6,64}|[a-zA-Z0-9_~.-]{6,64})`   
Required: No

## Response Syntax
<a name="API_ListOdbPeeringConnections_ResponseSyntax"></a>

```
{
   "nextToken": "string",
   "odbPeeringConnections": [ 
      { 
         "createdAt": "string",
         "displayName": "string",
         "odbNetworkArn": "string",
         "odbPeeringConnectionArn": "string",
         "odbPeeringConnectionId": "string",
         "odbPeeringConnectionType": "string",
         "peerNetworkArn": "string",
         "peerNetworkCidrs": [ "string" ],
         "percentProgress": number,
         "status": "string",
         "statusReason": "string"
      }
   ]
}
```

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

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

The following data is returned in JSON format by the service.

 ** [nextToken](#API_ListOdbPeeringConnections_ResponseSyntax) **   <a name="odb-ListOdbPeeringConnections-response-nextToken"></a>
The pagination token for the next page of ODB peering connections.  
Type: String

 ** [odbPeeringConnections](#API_ListOdbPeeringConnections_ResponseSyntax) **   <a name="odb-ListOdbPeeringConnections-response-odbPeeringConnections"></a>
The list of ODB peering connections.  
Type: Array of [OdbPeeringConnectionSummary](API_OdbPeeringConnectionSummary.md) objects

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

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

 ** AccessDeniedException **   
You don't have sufficient access to perform this action. Make sure you have the required permissions and try again.  
HTTP Status Code: 400

 ** InternalServerException **   
Occurs when there is an internal failure in the Oracle Database@AWS service. Wait and try again.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the request after an internal server error.
HTTP Status Code: 500

 ** ResourceNotFoundException **   
The operation tried to access a resource that doesn't exist. Make sure you provided the correct resource and try again.    
 ** resourceId **   
The identifier of the resource that was not found.  
 ** resourceType **   
The type of resource that was not found.
HTTP Status Code: 400

 ** ThrottlingException **   
The request was denied due to request throttling.    
 ** retryAfterSeconds **   
The number of seconds to wait before retrying the request after being throttled.
HTTP Status Code: 400

 ** ValidationException **   
The request has failed validation because it is missing required fields or has invalid inputs.    
 ** fieldList **   
A list of fields that failed validation.  
 ** reason **   
The reason why the validation failed.
HTTP Status Code: 400

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

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/odb-2024-08-20/ListOdbPeeringConnections) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/odb-2024-08-20/ListOdbPeeringConnections) 