| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Restores a DB Instance to an arbitrary point-in-time. Users can restore to any point in time before the latestRestorableTime for up to backupRetentionPeriod days. The target database is created from the source database with the same configuration as the original database except that the DB instance is created with the default DB security group.
For information about the common parameters that all actions use, see Common Parameters.
Indicates that minor version upgrades will be applied automatically to the DB Instance during the maintenance window.
Type: Boolean
Required: No
The EC2 Availability Zone that the database instance will be created in.
Default: A random, system-chosen Availability Zone.
Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.
Example: us-east-1a
Type: String
Required: No
The compute and memory capacity of the Amazon RDS DB instance.
Valid Values: db.t1.micro | db.m1.small | db.m1.medium | db.m1.large | db.m1.xlarge | db.m2.2xlarge | db.m2.4xlarge
Default: The same DBInstanceClass as the original DB Instance.
Type: String
Required: No
The database name for the restored DB Instance.
Note
This parameter is not used for the MySQL engine.
Type: String
Required: No
The DB subnet group name to use for the new instance.
Type: String
Required: No
The database engine to use for the new instance.
Default: The same as source
Constraint: Must be compatible with the engine of the source
Example: oracle-ee
Type: String
Required: No
The amount of Provisioned IOPS (input/output operations per second) to be initially allocated for the DB Instance.
Constraints: Must be an integer greater than 1000.
Type: Integer
Required: No
License model information for the restored DB Instance.
Default: Same as source.
Valid values: license-included | bring-your-own-license | general-public-license
Type: String
Required: No
Specifies if the DB Instance is a Multi-AZ deployment.
Constraint: You cannot specify the AvailabilityZone parameter if the MultiAZ parameter is set to true.
Type: Boolean
Required: No
The name of the option group to be used for the restored DB instance.
Permanent options, such as the TDE option for Oracle Advanced Security TDE, cannot be removed from an option group, and that option group cannot be removed from a DB instance once it is associated with a DB instance
Type: String
Required: No
The port number on which the database accepts connections.
Constraints: Value must be 1150-65535
Default: The same port as the original DB Instance.
Type: Integer
Required: No
Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.
Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.
If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.
Type: Boolean
Required: No
The date and time to restore from.
Valid Values: Value must be a UTC time
Constraints:
Example: 2009-09-07T23:45:00Z
Type: DateTime
Required: No
The identifier of the source DB Instance from which to restore.
Constraints:
Type: String
Required: Yes
The name of the new database instance to be created.
Constraints:
Type: String
Required: Yes
Specifies whether (true) or not (false) the
DB Instance is restored from the latest backup time.
Default: false
Constraints: Cannot be specified if RestoreTime parameter is provided.
Type: Boolean
Required: No
The following
elements are
returned in a DBInstance structure.
Specifies the allocated storage size specified in gigabytes.
Type: Integer
Indicates that minor version patches are applied automatically.
Type: Boolean
Specifies the name of the Availability Zone the DB Instance is located in.
Type: String
Specifies the number of days for which automatic DB Snapshots are retained.
Type: Integer
If present, specifies the name of the character set that this instance is associated with.
Type: String
Contains the name of the compute and memory capacity class of the DB Instance.
Type: String
Contains a user-supplied database identifier. This is the unique key that identifies a DB Instance.
Type: String
Specifies the current state of this database.
Type: String
The meaning of this parameter differs according to the database engine you use.
MySQL
Contains the name of the initial database of this instance that was provided at create time, if one was specified when the DB Instance was created. This same name is returned for the life of the DB Instance.
Type: String
Oracle
Contains the Oracle System ID (SID) of the created DB Instance.
Type: String
Provides the list of DB Parameter Groups applied to this DB Instance.
Type: DBParameterGroupStatus list
Provides List of DB Security Group elements containing only
DBSecurityGroup.Name and DBSecurityGroup.Status subelements.
Type: DBSecurityGroupMembership list
Provides the inforamtion of the subnet group associated with the DB instance, including the name, descrption and subnets in the subnet group.
Type: DBSubnetGroup
Specifies the connection endpoint.
Type: Endpoint
Provides the name of the database engine to be used for this DB Instance.
Type: String
Indicates the database engine version.
Type: String
Provides the date and time the DB Instance was created.
Type: DateTime
Specifies the Provisioned IOPS (I/O operations per second) value.
Type: Integer
Specifies the latest time to which a database can be restored with point-in-time restore.
Type: DateTime
License model information for this DB Instance.
Type: String
Contains the master username for the DB Instance.
Type: String
Specifies if the DB Instance is a Multi-AZ deployment.
Type: Boolean
Provides the list of option group memberships for this DB Instance.
Type: OptionGroupMembership list
Specifies that changes to the DB Instance are pending. This element is only included when changes are pending. Specific changes are identified by subelements.
Type: PendingModifiedValues
Specifies the daily time range during which automated backups are
created if automated backups are enabled, as determined
by the BackupRetentionPeriod.
Type: String
Specifies the weekly time range (in UTC) during which system maintenance can occur.
Type: String
Specifies the accessibility options for the DB Instance. A value of true specifies an Internet-facing instance with a publicly resolvable DNS name, which resolves to a public IP address. A value of false specifies an internal instance with a DNS name that resolves to a private IP address.
Default: The default behavior varies depending on whether a VPC has been requested or not. The following list shows the default behavior in each case.
If no DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be publicly accessible. If a specific DB subnet group has been specified as part of the request and the PubliclyAccessible value has not been set, the DB instance will be private.
Type: Boolean
Contains one or more identifiers of the Read Replicas associated with this DB Instance.
Type: String list
Contains the identifier of the source DB Instance if this DB Instance is a Read Replica.
Type: String
If present, specifies the name of the secondary Availability Zone for a DB instance with multi-AZ support.
Type: String
The status of a Read Replica. If the instance is not a for a read replica, this will be blank.
Type: DBInstanceStatusInfo list
Provides List of VPC security group elements that the DB Instance belongs to.
Type: VpcSecurityGroupMembership list
For information about the errors that are common to all actions, see Common Errors.
User already has a DB Instance with the given identifier.
HTTP Status Code: 400
DBInstanceIdentifier does not refer to an existing DB Instance.
HTTP Status Code: 404
Subnets in the DB subnet group should cover at least 2 availability zones unless there's'only 1 available zone.
HTTP Status Code: 400
DBSubnetGroupName does not refer to an existing DB Subnet Group.
HTTP Status Code: 400
Request would result in user exceeding the allowed number of DB Instances.
HTTP Status Code: 400
Specified DB Instance class is not available in the specified Availability Zone.
HTTP Status Code: 400
The specified DB Instance is not in the available state.
HTTP Status Code: 400
Cannot restore from vpc backup to non-vpc DB instance.
HTTP Status Code: 400
Request subnet is valid, or all subnets are not in common Vpc.
HTTP Status Code: 400
DB Subnet Group does not cover all availability zones after it is created because users' change.
HTTP Status Code: 400
The specified option group could not be found.
HTTP Status Code: 400
SourceDBInstanceIdentifier refers to a DB Instance with BackupRetentionPeriod equal to 0.
HTTP Status Code: 400
Provisioned IOPS not available in the specified Availability Zone.
HTTP Status Code: 400
Request would result in user exceeding the allowed amount of storage available across all DB Instances.
HTTP Status Code: 400
https://rds.amazon.com/ ?Action=RestoreDBInstanceToPointInTime &TargetDBInstanceIdentifier=restored-db &SourceDBInstanceIdentifier=simcoprod01 &UseLatestRestorableTime=true &Version=2013-05-15 &Timestamp=2011-05-23T07%3A06%3A02.313Z &SignatureVersion=2 &SignatureMethod=HmacSHA256 &AWSAccessKeyId=<AWS Access Key ID> &Signature=<Signature>
<RestoreDBInstanceToPointInTimeResponse xmlns="http://rds.amazonaws.com/doc/2013-05-15/">
<RestoreDBInstanceToPointInTimeResult>
<DBInstance>
<ReadReplicaDBInstanceIdentifiers/>
<Engine>mysql</Engine>
<PendingModifiedValues/>
<BackupRetentionPeriod>1</BackupRetentionPeriod>
<MultiAZ>false</MultiAZ>
<LicenseModel>general-public-license</LicenseModel>
<DBInstanceStatus>creating</DBInstanceStatus>
<EngineVersion>5.1.50</EngineVersion>
<DBInstanceIdentifier>restored-db</DBInstanceIdentifier>
<DBParameterGroups>
<DBParameterGroup>
<ParameterApplyStatus>in-sync</ParameterApplyStatus>
<DBParameterGroupName>default.mysql5.1</DBParameterGroupName>
</DBParameterGroup>
</DBParameterGroups>
<DBSecurityGroups>
<DBSecurityGroup>
<Status>active</Status>
<DBSecurityGroupName>default</DBSecurityGroupName>
</DBSecurityGroup>
</DBSecurityGroups>
<PreferredBackupWindow>00:00-00:30</PreferredBackupWindow>
<AutoMinorVersionUpgrade>true</AutoMinorVersionUpgrade>
<PreferredMaintenanceWindow>sat:07:30-sat:08:00</PreferredMaintenanceWindow>
<AllocatedStorage>10</AllocatedStorage>
<DBInstanceClass>db.m1.large</DBInstanceClass>
<MasterUsername>master</MasterUsername>
</DBInstance>
</RestoreDBInstanceToPointInTimeResult>
<ResponseMetadata>
<RequestId>1ef546bc-850b-11e0-90aa-eb648410240d</RequestId>
</ResponseMetadata>
</RestoreDBInstanceToPointInTimeResponse>