HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //lib/python3/dist-packages/awscli/examples/rds/describe-db-snapshots.rst
**Example 1: To describe a DB snapshot for a DB instance**

The following ``describe-db-snapshots`` example retrieves the details of a DB snapshot for a DB instance. ::

    aws rds describe-db-snapshots \
        --db-snapshot-identifier mydbsnapshot

Output::

    {
        "DBSnapshots": [
            {
                "DBSnapshotIdentifier": "mydbsnapshot",
                "DBInstanceIdentifier": "mysqldb",
                "SnapshotCreateTime": "2018-02-08T22:28:08.598Z",
                "Engine": "mysql",
                "AllocatedStorage": 20,
                "Status": "available",
                "Port": 3306,
                "AvailabilityZone": "us-east-1f",
                "VpcId": "vpc-6594f31c",
                "InstanceCreateTime": "2018-02-08T22:24:55.973Z",
                "MasterUsername": "mysqladmin",
                "EngineVersion": "5.6.37",
                "LicenseModel": "general-public-license",
                "SnapshotType": "manual",
                "OptionGroupName": "default:mysql-5-6",
                "PercentProgress": 100,
                "StorageType": "gp2",
                "Encrypted": false,
                "DBSnapshotArn": "arn:aws:rds:us-east-1:123456789012:snapshot:mydbsnapshot",
                "IAMDatabaseAuthenticationEnabled": false,
                "ProcessorFeatures": [],
                "DbiResourceId": "db-AKIAIOSFODNN7EXAMPLE"
            }
        ]
    }

For more information, see `Creating a DB Snapshot <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateSnapshot.html>`__ in the *Amazon RDS User Guide*.

**Example 2: To find the number of manual snapshots taken**

The following ``describe-db-snapshots`` example uses the ``length`` operator in the ``--query`` option to return the number of manual snapshots that have been taken in a particular AWS Region. ::

    aws rds describe-db-snapshots \
        --snapshot-type manual \
        --query "length(*[].{DBSnapshots:SnapshotType})" \
        --region eu-central-1

Output::

    35

For more information, see `Creating a DB Snapshot <https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_CreateSnapshot.html>`__ in the *Amazon RDS User Guide*.