Queries the compliance packages in an account group.
In this topic, the ca-f632626622af0079****
account group is used as an example. The return result shows one compliance package
whose ID is cp-fdc8626622af00f9****
.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ListAggregateCompliancePacks |
The operation that you want to perform. Set the value to ListAggregateCompliancePacks. |
Status | String | No | ACTIVE |
The status of the one or more compliance packages to be queried. Valid values:
|
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. |
PageSize | Integer | No | 20 |
The number of entries to return on each page. Valid values: 1 to 100. Default value: 10. |
PageNumber | Integer | No | 1 |
The number of the page to return. Pages start from page 1. Default value: 1. |
For information about common request parameters, see Common parameters.
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | B5806142-3090-4F86-A84E-12B3FE52C1C4 |
The ID of the request. |
CompliancePacksResult | Object |
The information about the compliance packages. |
|
CompliancePacks | Array of CompliancePacks |
The details of the compliance package. |
|
Status | String | ACTIVE |
The status of the compliance package. Valid values:
|
RiskLevel | Integer | 1 |
The risk level of the resources that are not compliant with the managed rules in the compliance package. Valid values:
|
CompliancePackId | String | cp-fdc8626622af00f9**** |
The ID of the compliance package. |
Description | String | The compliance package continuously monitors your resources to check whether the resources are compliant with MLPS 2.0 Level 3. This allows you to perform self-service prechecks and handle resource non-compliance to pass the formal compliance evaluation with efficiency. |
The description of the compliance package. |
CompliancePackName | String | ClassifiedProtectionPreCheck |
The name of the compliance package. |
AccountId | Long | 100931896542**** |
The ID of the management account to which the compliance package belongs. |
AggregatorId | String | ca-f632626622af0079**** |
The ID of the account group. |
CompliancePackTemplateId | String | ct-5f26ff4e06a300c4**** |
The ID of the compliance package template. |
CreateTimestamp | Long | 1624243657000 |
The timestamp when the compliance package was created. Unit: milliseconds. |
PageSize | Integer | 10 |
The number of entries returned per page. |
PageNumber | Integer | 1 |
The page number of the returned page. |
TotalCount | Long | 1 |
The total number of compliance packages returned. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ListAggregateCompliancePacks
&Status=ACTIVE
&AggregatorId=ca-f632626622af0079****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ListAggregateCompliancePacksResponse>
<RequestId>B5806142-3090-4F86-A84E-12B3FE52C1C4</RequestId>
<CompliancePacksResult>
<TotalCount>1</TotalCount>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
<CompliancePacks>
<CompliancePackId>cp-fdc8626622af00f9****</CompliancePackId>
<Status>ACTIVE</Status>
<AccountId>100931896542****</AccountId>
<CompliancePackName>ClassifiedProtectionPreCheck</CompliancePackName>
<Description><ListAggregateCompliancePacksResponse>
<RequestId>B5806142-3090-4F86-A84E-12B3FE52C1C4</RequestId>
<CompliancePacksResult>
<TotalCount>1</TotalCount>
<PageSize>10</PageSize>
<PageNumber>1</PageNumber>
<CompliancePacks>
<CompliancePackId>cp-fdc8626622af00f9****</CompliancePackId>
<Status>ACTIVE</Status>
<AccountId>100931896542****</AccountId>
<CompliancePackName>ClassifiedProtectionPreCheck</CompliancePackName>
<Description>The compliance package continuously monitors your resources to check whether the resources are compliant with MLPS 2.0 Level 3. This allows you to perform self-service prechecks and handle resource non-compliance to pass the formal compliance evaluation with efficiency. </Description>
<CompliancePackTemplateId>ct-5f26ff4e06a300c4****</CompliancePackTemplateId>
<RiskLevel>1</RiskLevel>
<CreateTimestamp>1624243657000</CreateTimestamp>
<AggregatorId>ca-f632626622af0079****</AggregatorId>
</CompliancePacks>
</CompliancePacksResult>
</ListAggregateCompliancePacksResponse>. </Description>
<CompliancePackTemplateId>ct-5f26ff4e06a300c4****</CompliancePackTemplateId>
<RiskLevel>1</RiskLevel>
<CreateTimestamp>1624243657000</CreateTimestamp>
<AggregatorId>ca-f632626622af0079****</AggregatorId>
</CompliancePacks>
</CompliancePacksResult>
</ListAggregateCompliancePacksResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "B5806142-3090-4F86-A84E-12B3FE52C1C4",
"CompliancePacksResult" : {
"TotalCount" : 1,
"PageSize" : 10,
"PageNumber" : 1,
"CompliancePacks" : [ {
"CompliancePackId" : "cp-fdc8626622af00f9****",
"Status" : "ACTIVE",
"AccountId" : "100931896542****",
"CompliancePackName": "ClassifiedProtectionPreCheck",
"Description": "The compliance package continuously monitors your resources to check whether the resources are compliant with MLPS 2.0 Level 3. This allows you to perform self-service prechecks and handle resource non-compliance to pass the formal compliance evaluation with efficiency.",
"CompliancePackTemplateId" : "ct-5f26ff4e06a300c4****",
"RiskLevel" : 1,
"CreateTimestamp" : 1624243657000,
"AggregatorId" : "ca-f632626622af0079****"
} ]
}
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | NoPermission | You are not authorized to perform this operation. | The error message returned because you are not authorized to perform the specified operation. |
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. |
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.