Retrieves the evaluation report of a specified compliance package within a specified account group.
Operation description
Before calling this operation to download the evaluation report, call the GenerateAggregateCompliancePackReport operation to generate the latest evaluation report. For more information, see GenerateAggregateCompliancePackReport.
This topic provides an example on how to download the evaluation report of the compliance package cp-fdc8626622af00f9**** in the account group ca-f632626622af0079****.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:GetAggregateCompliancePackReport |
get |
*AggregateCompliancePack
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CompliancePackId |
string |
Yes |
The compliance package ID. For information about how to obtain the compliance package ID, see ListAggregateCompliancePacks. |
cp-fdc8626622af00f9**** |
| AggregatorId |
string |
Yes |
The account group ID. For information about how to obtain the account group ID, see ListAggregators. |
ca-f632626622af0079**** |
For more information about common request parameters, see Common parameters.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
0D234DAC-1ABD-42E8-9475-BE317857E29B |
| CompliancePackReport |
object |
The compliance package evaluation report. |
|
| ReportUrl |
string |
The download URL of the compliance package evaluation report. |
https://cloud-config-compliance-report.oss-cn-shanghai.aliyuncs.com/CompliancePackReports/100931896542****/cp-fdc8626622af00f9****/100931896542****-cp-fdc8626622af00f9****-report-202106221050.zip?Expires=162433****&OSSAccessKeyId=LTAIs86R8H59****&Signature=RqvJZtaxQ2HfqRcl0Ic2HG8oo**** |
| ReportStatus |
string |
The status of the compliance package evaluation report. Valid values:
|
COMPLETE |
| CompliancePackId |
string |
The compliance package ID. |
cp-fdc8626622af00f9**** |
| AccountId |
integer |
The ID of the management account to which the compliance package belongs. |
100931896542**** |
| ReportCreateTimestamp |
integer |
The timestamp when the compliance package evaluation report was created. Unit: milliseconds. |
1624330246640 |
Examples
Success response
JSON format
{
"RequestId": "0D234DAC-1ABD-42E8-9475-BE317857E29B",
"CompliancePackReport": {
"ReportUrl": "https://cloud-config-compliance-report.oss-cn-shanghai.aliyuncs.com/CompliancePackReports/100931896542****/cp-fdc8626622af00f9****/100931896542****-cp-fdc8626622af00f9****-report-202106221050.zip?Expires=162433****&OSSAccessKeyId=LTAIs86R8H59****&Signature=RqvJZtaxQ2HfqRcl0Ic2HG8oo****",
"ReportStatus": "COMPLETE",
"CompliancePackId": "cp-fdc8626622af00f9****",
"AccountId": 0,
"ReportCreateTimestamp": 1624330246640
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.AggregatorId.Value | The specified AggregatorId is invalid. | The specified aggregator ID does not exist or you are not authorized to use the aggregator. |
| 400 | Invalid.CompliancePackId.Value | The specified CompliancePackId does not exist. | The specified compliance pack ID does not exist. |
| 404 | AccountNotExisted | Your account does not exist. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | The request has failed due to a temporary failure of the server. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.