调用GetAggregateConfigRulesReport接口下载指定账号组内规则列表中所有规则的评估报告。
说明 调用本接口下载评估报告之前,您需要先调用GenerateAggregateConfigRulesReport接口生成最新评估报告。更多信息,请参见GenerateAggregateConfigRulesReport。
本文将提供一个示例,下载账号组ca-f632626622af0079****
内规则列表中所有规则的评估报告。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetAggregateConfigRulesReport |
要执行的操作,取值:GetAggregateConfigRulesReport。 |
AggregatorId | String | 是 | ca-f632626622af0079**** |
账号组ID。 关于如何获取账号组ID,请参见ListAggregators。 |
ReportId | String | 否 | crp-88176457e0d900c9**** |
评估报告ID。 |
关于公共请求参数的详情,请参见公共参数。
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | F0BCC7B2-D0E4-49B0-95D2-6689CFB08D31 |
请求ID。 |
ConfigRulesReport | Object |
规则列表中所有规则的评估报告。 |
|
ReportUrl | String | https://cloud-config-compliance-report.oss-cn-shanghai.aliyuncs.com/ConfigRuleReports/100931896542****/rules/100931896542****-rules-report-202106221125.zip?Expires=162433****&OSSAccessKeyId=LTAIs86R8H59****&Signature=yT8jn6ZQSX3dyCwVKL5EOJhGJ**** |
规则列表中所有规则的评估报告下载地址。 |
ReportStatus | String | CREATING |
规则列表中所有规则的评估报告状态。取值:
|
AccountId | Long | 100931896542**** |
规则归属的企业管理账号ID。 |
AggregatorId | String | ca-f632626622af0079**** |
账号组ID。 |
ReportCreateTimestamp | Long | 1624332329593 |
创建评估报告的时间戳。单位:毫秒。 |
ReportId | String | crp-88176457e0d900c9**** |
评估报告ID。 |
示例
请求示例
http(s)://[Endpoint]/?Action=GetAggregateConfigRulesReport
&AggregatorId=ca-f632626622af0079****
&<公共请求参数>
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<GetAggregateConfigRulesReportResponse>
<RequestId>F0BCC7B2-D0E4-49B0-95D2-6689CFB08D31</RequestId>
<ConfigRulesReport>
<ReportUrl>https://cloud-config-compliance-report.oss-cn-shanghai.aliyuncs.com/ConfigRuleReports/100931896542****/rules/100931896542****-rules-report-202106221125.zip?Expires=162433****&OSSAccessKeyId=LTAIs86R8H59****&Signature=yT8jn6ZQSX3dyCwVKL5EOJhGJ****</ReportUrl>
<ReportStatus>CREATING</ReportStatus>
<AggregatorId>ca-f632626622af0079****</AggregatorId>
<ReportCreateTimestamp>1624332329593</ReportCreateTimestamp>
<ReportId>crp-88176457e0d900c9****</ReportId>
</ConfigRulesReport>
</GetAggregateConfigRulesReportResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "F0BCC7B2-D0E4-49B0-95D2-6689CFB08D31",
"ConfigRulesReport" : {
"ReportUrl" : "https://cloud-config-compliance-report.oss-cn-shanghai.aliyuncs.com/ConfigRuleReports/100931896542****/rules/100931896542****-rules-report-202106221125.zip?Expires=162433****&OSSAccessKeyId=LTAIs86R8H59****&Signature=yT8jn6ZQSX3dyCwVKL5EOJhGJ****",
"ReportStatus" : "CREATING",
"AggregatorId" : "ca-f632626622af0079****",
"ReportCreateTimestamp" : 1624332329593,
"ReportId" : "crp-88176457e0d900c9****"
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | 账号组ID不存在或无权限使用该账号组。 |
404 | AccountNotExisted | Your account does not exist. | 您的账号不存在。 |
503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 服务不可用。 |
访问错误中心查看更多错误码。