Amazon Relational Database Service
API Reference (API Version 2012-04-23)
Print this pageEmail this pageGo to the ForumsView the PDFShare this page on TwitterShare this page on FacebookBookmark this page on DeliciousSubmit this page to RedditSubmit this page to DiggDid this page help you?  Yes  No   Tell us about it...

CreateDBSnapshot

Description

Creates a DBSnapshot. The source DBInstance must be in "available" state.

Request Parameters

For information about the common parameters that all actions use, see Common Query Parameters.

Name Description Required
DBInstanceIdentifier

The DB Instance identifier. This is the unique key that identifies a DB Instance. This parameter isn't case sensitive.

Constraints:

  • Must contain from 1 to 63 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Type: String

Yes
DBSnapshotIdentifier

The identifier for the DB Snapshot.

Constraints:

  • Cannot be null, empty, or blank
  • Must contain from 1 to 255 alphanumeric characters or hyphens
  • First character must be a letter
  • Cannot end with a hyphen or contain two consecutive hyphens

Example: my-snapshot-id

Type: String

Yes

Response Elements

The following elements come wrapped in a DBSnapshot structure.
NameDescription
AllocatedStorage

Specifies the allocated storage size in gigabytes (GB).

Type: Integer

AvailabilityZone

Specifies the name of the Availability Zone the DB Instance was located in at the time of the DB Snapshot.

Type: String

DBInstanceIdentifier

Specifies the the DBInstanceIdentifier of the DB Instance this DB Snapshot was created from.

Type: String

DBSnapshotIdentifier

Specifies the identifier for the DB Snapshot.

Type: String

Engine

Specifies the name of the database engine.

Type: String

EngineVersion

Specifies the version of the database engine.

Type: String

InstanceCreateTime

Specifies the time (UTC) when the snapshot was taken.

Type: DateTime

LicenseModel

License model information for the restored DB Instance.

Type: String

MasterUsername

Provides the master username for the DB Instance.

Type: String

Port

Specifies the port that the database engine was listening on at the time of the snapshot.

Type: Integer

SnapshotCreateTime

Provides the time (UTC) when the snapshot was taken.

Type: DateTime

SnapshotType

Provides the type of the DB Snapshot.

Type: String

Status

Specifies the status of this DB Snapshot.

Type: String

VpcId

Provides the Vpc Id associated with the DB Snapshot.

Type: String

Errors

For information about the common errors that all actions use, see Common Errors.

Error Description HTTP Status Code
DBInstanceNotFound

DBInstanceIdentifier does not refer to an existing DB Instance.

404
DBSnapshotAlreadyExists

DBSnapshotIdentifier is already used by an existing snapshot.

400
InvalidDBInstanceState

The specified DB Instance is not in the available state.

400
SnapshotQuotaExceeded

Request would result in user exceeding the allowed number of DB Snapshots.

400

Examples

Sample Request

https://rds.amazonaws.com/
    ?Action=CreateDBSnapshot
    &DBInstanceIdentifier=simcoprod01
    &DBSnapshotIdentifier=mydbsnapshot
    &Version=2012-04-23
    &SignatureVersion=2&SignatureMethod=HmacSHA256
    &Timestamp=2011-05-23T06%3A27%3A42.551Z
    &AWSAccessKeyId=<AWS Access Key ID>
    &Signature=<Signature>

Sample Response

<CreateDBSnapshotResponse xmlns="http://rds.amazonaws.com/doc/2012-04-23/">
  <CreateDBSnapshotResult>
    <DBSnapshot>
      <Port>3306</Port>
      <Engine>mysql</Engine>
      <Status>creating</Status>
      <AvailabilityZone>us-east-1a</AvailabilityZone>
      <LicenseModel>general-public-license</LicenseModel>
      <InstanceCreateTime>2011-05-23T06:06:43.110Z</InstanceCreateTime>
      <AllocatedStorage>10</AllocatedStorage>
      <DBInstanceIdentifier>simcoprod01</DBInstanceIdentifier>
      <EngineVersion>5.1.50</EngineVersion>
      <DBSnapshotIdentifier>mydbsnapshot</DBSnapshotIdentifier>
      <SnapshotType>manual</SnapshotType>
      <MasterUsername>master</MasterUsername>
    </DBSnapshot>
  </CreateDBSnapshotResult>
  <ResponseMetadata>
    <RequestId>c4181d1d-8505-11e0-90aa-eb648410240d</RequestId>
  </ResponseMetadata>
</CreateDBSnapshotResponse>