简体   繁体   English

AWS RDS SDK 从 AWS 控制台返回差异

[英]AWS RDS SDK returning difference from AWS Console

I am using AWS Nodejs SDK to get RDS snapshots by我正在使用 AWS Nodejs SDK 通过以下方式获取 RDS 快照

const snapshots = await rds.describeDBSnapshots().promise();

Its returning a different amount of snapshots from the AWS console with the same user.它从同一用户的 AWS 控制台返回不同数量的快照。 (Same access key / secret key) In the UI i can view all the snapshots but the function from SDK is not returning the same amount (相同的访问密钥/秘密密钥)在 UI 中我可以查看所有快照,但 SDK 中的函数未返回相同数量

Is it returning more or less?它返回更多还是更少? (my guess is less) - are you sure its not paginating the return values for you? (我的猜测较少) - 你确定它没有为你分页返回值吗?

I believe this call defaults to returning a max of 100 records if you don't specify, and if you have more than 100 would need to page thru the results with subsequent calls我相信如果您不指定,此调用默认返回最多 100 条记录,如果您有超过 100 条记录,则需要通过后续调用分页结果

There are two functions describing RDS snapshots, RDS instances and RDS clusters.描述RDS快照的函数有两个,RDS实例和RDS集群。

I was only using RDS instances to grab snapshots but the remaining were in the describe rds cluster snapshots function我只使用 RDS 实例来抓取快照,但其余的都在 describe rds cluster snapshots 函数中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM