文件 AWS SDK AWS 範例 SDK 儲存庫中有更多可用的
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
DescribeTrustedAdvisorCheckSummaries
搭配 CLI 使用
下列程式碼範例示範如何使用 DescribeTrustedAdvisorCheckSummaries
。
- CLI
-
- AWS CLI
-
列出 AWS Trusted Advisor檢查的摘要
下列
describe-trusted-advisor-check-summaries
範例列出兩個 Trusted Advisor 檢查的結果:Amazon S3 儲存貯體許可和 IAM Use。aws support describe-trusted-advisor-check-summaries \ --check-ids
"Pfx0RwqBli"
"zXCkfM1nI3"
輸出:
{ "summaries": [ { "checkId": "Pfx0RwqBli", "timestamp": "2020-05-13T21:38:12Z", "status": "ok", "hasFlaggedResources": true, "resourcesSummary": { "resourcesProcessed": 44, "resourcesFlagged": 0, "resourcesIgnored": 0, "resourcesSuppressed": 0 }, "categorySpecificSummary": { "costOptimizing": { "estimatedMonthlySavings": 0.0, "estimatedPercentMonthlySavings": 0.0 } } }, { "checkId": "zXCkfM1nI3", "timestamp": "2020-05-13T21:38:05Z", "status": "ok", "hasFlaggedResources": true, "resourcesSummary": { "resourcesProcessed": 1, "resourcesFlagged": 0, "resourcesIgnored": 0, "resourcesSuppressed": 0 }, "categorySpecificSummary": { "costOptimizing": { "estimatedMonthlySavings": 0.0, "estimatedPercentMonthlySavings": 0.0 } } } ] }
如需詳細資訊,請參閱 AWS 支援使用者指南中的 AWS Trusted Advisor。
-
如需 API 詳細資訊,請參閱 AWS CLI 命令參考中的 DescribeTrustedAdvisorCheckSummaries
。
-
- PowerShell
-
- for PowerShell 工具
-
範例 1:傳回指定 Trusted Advisor 檢查的最新摘要。
Get-ASATrustedAdvisorCheckSummary -CheckId "checkid1"
範例 2:傳回指定 Trusted Advisor 檢查的最新摘要。
Get-ASATrustedAdvisorCheckSummary -CheckId @("checkid1", "checkid2")
-
如需 API 詳細資訊,請參閱 AWS Tools for PowerShell Cmdlet 參考中的 DescribeTrustedAdvisorCheckSummaries。
-
DescribeTrustedAdvisorCheckResult
DescribeTrustedAdvisorChecks