starsliao / TenSunS

🦄后羿 - TenSunS(原ConsulManager):基于Consul的运维平台:更优雅的Consul管理UI&多云与自建ECS/MySQL/Redis同步Prometheus/JumpServer&ECS/MySQL/Redis云监控指标采集&Blackbox站点监控维护&漏洞通知/资源到期余额告警&各类资源Grafana看板展示
https://StarsL.cn
Do What The F*ck You Want To Public License
1.33k stars 244 forks source link

DescribeDBInstancesAsCsv - 按CSV文件格式查询实例列表-方法已经被阿里云下线 #129

Closed yuanming1 closed 1 month ago

yuanming1 commented 1 month ago

image

ZZYhho commented 1 month ago

旧的接口被限制qps:一小时6次 image

ZZYhho commented 1 month ago

废弃的接口“DescribeDBInstancesAsCsvRequest”调用一次就可以获取所有实例及其规格(cpu、内存、存储) 这样改后 1、获取所有实例:DescribeDBInstances(所有实例,实力规格不含存储) 2、遍历所有实例ID: DescribeDBInstanceAttribute (实例详情里接口才有存储)

starsliao commented 1 month ago

废弃的接口“DescribeDBInstancesAsCsvRequest”调用一次就可以获取所有实例及其规格(cpu、内存、存储) 这样改后 1、获取所有实例:DescribeDBInstances(所有实例,实力规格不含存储) 2、遍历所有实例ID: DescribeDBInstanceAttribute (实例详情里接口才有存储)

是的,之前也是因为不想去遍历所有实例, 才选择使用DescribeDBInstancesAsCsvRequest这个接口. 后面我再优化下这块逻辑.