amazon-web-services - 如何在不提供参数名称的情况下获取 AWS 账户使用的所有参数?
问题描述
当我需要获取存储AWS Secrets Manager
在 AWS 帐户中的所有机密时,我将其称为listSecrets
传递ListSecretsRequest
作为参数。
现在我正在寻找一种类似的方法AWS Systems Manager
来获取存储在 AWS 账户中的所有参数。我getParameterHistory
在 API文档中找到了一个方法,但描述看起来很混乱。Request 语法指出有一个必需 Name
的参数(您要查询的参数的名称)。但是我需要在不提供特定名称的情况下获取所有参数。
调用该方法时出现以下错误:AWSSimpleSystemsManagementException: 1 validation error detected: Value null at 'name' failed to satisfy constraint: Member must not be null (Service: AWSSimpleSystemsManagement; Status Code: 400; Error Code: ValidationException; Request ID: 0caa3be7-9d85-4671-9515-fdcc45c641d6)
同时 API 提供了一种getParameter
方法,允许Get information about a parameter by using the parameter name
.
AWS Secrets Manager
通过类似于AWS Secrets Manager
's 的方法获取AWS 账户使用的所有参数的正确方法是什么,listSecrets
而无需提供参数名称?
解决方案
调用describeParameters (describeParametersRequest)
推荐阅读
- gmail-api - Gmail API 不发送附件
- logging - 将 Serilog 配置转换为 appsettings.json 时遇到问题
- reactjs - 云图像不显示
- reactjs - React Firebase 根据时间戳值获取最新记录
- excel - 电源查询对小表发出数千次请求,刷新速度变慢
- android - 另一个应用程序的屏幕截图防护
- java - 根据java中的列名从excel中获取列值
- docusignapi - DocuSign - 为生产帐户切换帐户组
- c++ - 为什么物体的法线在相机移动时会改变颜色?
- angular - 在 Angular 9 e2e Protractor 测试中激活 Ng-ApiMock 模拟