[英]How can I retrieve the list of all databases in an AWS RDS DB instance via API?
[英]How can I get the name of the all snapshot of RDS DB instance created manually using the AWS CLI?
如何獲取使用 AWS CLI 手動創建的 RDS 數據庫實例的所有快照的名稱?
我正在使用以下命令
aws rds describe-db-cluster-snapshots \
--query "sort_by(DBSnapshotIdentifier, &SnapshotCreateTime)"
它給我錯誤
在 function sort_by() 中,值的無效類型:無,預期之一:['array'],收到:“null”
您使用的命令適用於數據庫集群而不是實例,您需要使用
描述數據庫快照
示例用法如下:
$ aws rds describe-db-snapshots --db-instance-identifier [rds-instance-arn] --region [aws-region]
aws-region:可以是:eu-central-1 或您正在使用的任何區域
rds-instance-arn:可以在 AWS 控制台中找到,也可以從以下命令的 output 中獲取:
$ aws rds describe-db-instances --region [aws-region]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.