Generates a compliance evaluation report based on a compliance package.
In this topic, the cp-a8a8626622af0082****
compliance package is used as an example.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GenerateCompliancePackReport |
The operation that you want to perform. Set the value to GenerateCompliancePackReport. |
CompliancePackId | String | Yes | cp-a8a8626622af0082**** |
The ID of the compliance package. For more information about how to obtain the ID of a compliance package, see ListCompliancePacks. |
ClientToken | String | No | AAAAAdDWBF2**** |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters. It cannot exceed 64 characters in length. |
For information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
CompliancePackId | String | cp-a8a8626622af0082**** |
The ID of the compliance package. |
RequestId | String | 6EC7AED1-172F-42AE-9C12-295BC2ADB751 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=GenerateCompliancePackReport
&CompliancePackId=cp-a8a8626622af0082****
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<GenerateCompliancePackReportResponse>
<CompliancePackId>cp-a8a8626622af0082****</CompliancePackId>
<RequestId>6EC7AED1-172F-42AE-9C12-295BC2ADB751</RequestId>
</GenerateCompliancePackReportResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"CompliancePackId" : "cp-a8a8626622af0082****",
"RequestId" : "6EC7AED1-172F-42AE-9C12-295BC2ADB751"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | CompliancePackReportCreating | The compliance pack report is being created. | The error message returned because the compliance evaluation report is being generated. |
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.