

# DescribeDataGroups

Returns information about data groups.

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

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

 ** DataGroupIdentifier **   
The data group to describe. If you specify this parameter, Amazon RDS returns only information about that data group. You can specify:  
+ The data group identifier.
+ The data group ARN.
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `(arn:aws[a-z\-]*:rds(-[a-z]*)?:[a-z0-9\-]*:[0-9]*:data-group:)?dg-[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`   
Required: No

 ** DBClusterIdentifier **   
The identifier of a DB cluster. If you specify this parameter, Amazon RDS returns only the data groups in that DB cluster.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 255.  
Pattern: `[A-Za-z][0-9A-Za-z-:._]*`   
Required: No

 **Filters.Filter.N**   
A filter that specifies one or more data groups to describe.  
Supported Filters:  
+  `datagroup-id` – Accepts data group identifiers. The results list only includes information about the data groups identified by these identifiers.
+  `datagroup-name` – Accepts data group names. The results list only includes information about the data groups with these names.
+  `db-cluster-id` – Accepts DB cluster identifiers and DB cluster Amazon Resource Names (ARNs). The results list only includes information about the data groups in the DB clusters identified by these ARNs or identifiers.
+  `target-db-cluster-id` – Accepts DB cluster identifiers and DB cluster ARNs. The results list only includes information about the data groups that are being moved to the DB clusters identified by these ARNs or identifiers.
+  `datagroup-status` – Accepts data group statuses. The results list only includes information about the data groups with these statuses.
Type: Array of [Filter](API_Filter.md) objects  
Required: No

 ** Marker **   
An optional pagination token provided by a previous `DescribeDataGroups` request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by `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 specified `MaxRecords` value, 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  
Required: No

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

The following elements are returned by the service.

 **DataGroups.DataGroup.N**   
A list of data groups.  
Type: Array of [DataGroup](API_DataGroup.md) objects

 ** Marker **   
A pagination token that can be used in a later `DescribeDataGroups` request.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 340.

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

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

 ** DataGroupNotFoundFault **   
Amazon RDS couldn't find the specified data group. Verify that the data group identifier is correct.  
HTTP Status Code: 404

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

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