Queries the compliance evaluation report that is generated based on a compliance package in an account group.

Note Before you call this operation, you must call the GenerateAggregateCompliancePackReport operation to generate the latest compliance evaluation report based on a compliance package as required. For more information, see GenerateAggregateCompliancePackReport.

The sample request in this topic shows you how to query the compliance evaluation report that is generated based on the cp-fdc8626622af00f9**** compliance package in the ca-f632626622af0079**** account group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes GetAggregateCompliancePackReport

The operation that you want to perform. Set the value to GetAggregateCompliancePackReport.

CompliancePackId String Yes cp-fdc8626622af00f9****

The ID of the compliance package.

For more information about how to obtain the ID of a compliance package, see ListAggregateCompliancePacks.

AggregatorId String Yes ca-f632626622af0079****

The ID of the account group.

For more information about how to obtain the ID of an account group, see ListAggregators.

For information about common request parameters, see Common parameters.

Response parameters

Parameter Type Example Description
RequestId String 0D234DAC-1ABD-42E8-9475-BE317857E29B

The ID of the request.

CompliancePackReport Object

The information about the compliance evaluation report.

ReportUrl String 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****

The URL that is used to download the compliance evaluation report.

ReportStatus String COMPLETE

The status of the compliance evaluation report. Valid values:

  • NONE: The compliance evaluation report is not generated.
  • CREATING: The compliance evaluation report is being generated.
  • COMPLETED: The compliance evaluation report is generated.
CompliancePackId String cp-fdc8626622af00f9****

The ID of the compliance package.

AccountId Long 100931896542****

The ID of the management account to which the compliance package belongs.

ReportCreateTimestamp Long 1624330246640

The timestamp when the compliance evaluation report was generated. Unit: milliseconds.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetAggregateCompliancePackReport
&CompliancePackId=cp-fdc8626622af00f9****
&AggregatorId=ca-f632626622af0079****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<GetAggregateCompliancePackReportResponse>
	<RequestId>0D234DAC-1ABD-42E8-9475-BE317857E29B</RequestId>
	<CompliancePackReport>
		<CompliancePackId>cp-fdc8626622af00f9****</CompliancePackId>
		<AccountId>100931896542****</AccountId>
		<ReportUrl>https://cloud-config-compliance-report.oss-cn-shanghai.aliyuncs.com/CompliancePackReports/100931896542****/cp-fdc8626622af00f9****/100931896542****-cp-fdc8626622af00f9****-report-202106221050.zip?Expires=162433****&amp;OSSAccessKeyId=LTAIs86R8H59****&amp;Signature=RqvJZtaxQ2HfqRcl0Ic2HG8oo****</ReportUrl>
		<ReportStatus>COMPLETE</ReportStatus>
		<ReportCreateTimestamp>1624330246640</ReportCreateTimestamp>
	</CompliancePackReport>
</GetAggregateCompliancePackReportResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "0D234DAC-1ABD-42E8-9475-BE317857E29B",
  "CompliancePackReport" : {
    "CompliancePackId" : "cp-fdc8626622af00f9****",
    "AccountId" : "100931896542****",
    "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",
    "ReportCreateTimestamp" : 1624330246640
  }
}

Error codes

HTTP status code Error code Error message Description
400 Invalid.AggregatorId.Value The specified AggregatorId is invalid. The error message returned because the specified account group ID does not exist or you are not authorized to use the account group.
400 Invalid.CompliancePackId.Value The specified CompliancePackId does not exist. The error message returned because the specified compliance package ID does not exist.
404 AccountNotExisted Your account does not exist. The error message returned because your account does not exist.
503 ServiceUnavailable The request has failed due to a temporary failure of the server. The error message returned because the service is unavailable.

For a list of error codes, visit the API Error Center.