

# DescribeBranches

Describes branches. You can describe one branch, the branches of a DB cluster, or all of your branches in the AWS Region.

Results are paginated. If more results are available, the response includes a `Marker`. To get the next page, call `DescribeBranches` again with that `Marker`.

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

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

 ** BranchName **   
The branch to describe. If you specify it, the response includes only that branch.  
Specify either the Amazon Resource Name (ARN) of the branch, or the name of the branch together with `DBClusterIdentifier`.  
The following constraints apply to this parameter:  
+ A branch name must contain from 1 to 63 alphanumeric characters or hyphens, and start with a letter.
+ A branch ARN must be the ARN of a branch in your AWS account and AWS Region.
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Required: No

 ** DBClusterIdentifier **   
The name or Amazon Resource Name (ARN) of a root DB cluster. If you specify it, the response includes only branches of that DB cluster.  
Constraints: A DB cluster ARN must be the ARN of a DB cluster in your AWS account and AWS Region.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Required: No

 **Filters.Filter.N**   
A filter that specifies one or more branches to describe.  
Supported Filters:  
+  `root-db-cluster-identifier` – Accepts DB cluster names and DB cluster Amazon Resource Names (ARNs). The results list only includes branches of these DB clusters.
+  `source-branch` – Accepts branch names and branch ARNs. The results list only includes branches created from these branches.
+  `status` – Accepts branch statuses. The results list only includes branches with these statuses. For the valid values, see `Status` in `Branch`.
Each filter accepts up to 100 values.  
Type: Array of [Filter](API_Filter.md) objects  
Required: No

 ** Marker **   
An optional pagination token from a previous `DescribeBranches` response. If you specify it, the response includes only records beyond the marker, up to the value that you specify in `MaxRecords`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 340.  
Required: No

 ** MaxRecords **   
The maximum number of records to include in the response. If more records exist than the `MaxRecords` value that you specify, the response includes a pagination token called a marker that you can use to retrieve the remaining results.  
Default: 100  
Constraints: Minimum 20, maximum 100  
Type: Integer  
Valid Range: Minimum value of 20. Maximum value of 100.  
Required: No

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

The following elements are returned by the service.

 **Branches.Branch.N**   
A list of branches.  
Type: Array of [Branch](API_Branch.md) objects

 ** Marker **   
A pagination token. To get the next page of results, specify it as `Marker` in your next `DescribeBranches` request.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 340.

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

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

 ** BranchNotFound **   
The specified branch doesn't exist.  
HTTP Status Code: 404

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

## See Also
<a name="API_DescribeBranches_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/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for Python (Boto3)](https://docs.aws.amazon.com/goto/boto3/rds-2014-10-31/DescribeBranches) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/rds-2014-10-31/DescribeBranches) 