View a markdown version of this page

DescribeDataGroups - Amazon Relational Database Service

DescribeDataGroups

Returns information about data groups.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

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 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

The following elements are returned by the service.

DataGroups.DataGroup.N

A list of data groups.

Type: Array of DataGroup 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

For information about the errors that are common to all actions, see Common Error Types.

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

For more information about using this API in one of the language-specific AWS SDKs, see the following: