

# DescribeDataGroupRestoreWindows

Returns the times to which you can restore a data group.

Specify `DataGroupIdentifier` to return the restore windows of a data group. To return only the restore window that contains a specific time, also specify `RestoreToTime`. Or specify `DBClusterAutomatedBackupsArn` and `RestoreToTime` to return the data groups that an automated backup contains at that time.

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

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

 ** DataGroupIdentifier **   
The data group to return restore windows for. 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

 ** DBClusterAutomatedBackupsArn **   
The Amazon Resource Name (ARN) of the automated backup of the DB cluster to return data group restore windows for.  
If you specify this parameter, you must also specify `RestoreToTime`.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 2048.  
Pattern: `arn:aws[a-z-]*:rds(-[a-z]+)?:[a-z0-9-]*:[0-9]*:cluster-auto-backup:.*`   
Required: No

 ** Marker **   
An optional pagination token provided by a previous `DescribeDataGroupRestoreWindows` 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

 ** RestoreToTime **   
The time to return restore windows for, in Universal Coordinated Time (UTC).  
If you specify `DataGroupIdentifier`, Amazon RDS returns the restore window of the data group that contains this time. If you specify `DBClusterAutomatedBackupsArn`, Amazon RDS returns the data groups that the automated backup contains at this time.  
Required if you specify `DBClusterAutomatedBackupsArn`.  
Type: Timestamp  
Required: No

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

The following elements are returned by the service.

 **DataGroupRestoreWindows.DataGroupRestoreWindow.N**   
A list of data group restore windows.  
Type: Array of [DataGroupRestoreWindow](API_DataGroupRestoreWindow.md) objects

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

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

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

 ** DataGroupRestoreWindowNotFoundFault **   
Amazon RDS didn't find a restore window for the specified data group or automated backup. If you specified `RestoreToTime`, no restore window contains that time.  
HTTP Status Code: 404

 ** DBClusterAutomatedBackupNotFoundFault **   
No automated backup for this DB cluster was found.  
HTTP Status Code: 404

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