Queries the details of a compliance package in an account group.

The sample request in this topic shows you how to query the details of 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 GetAggregateCompliancePack

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

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.

Response parameters

Parameter Type Example Description
RequestId String 6EC7AED1-172F-42AE-9C12-295BC2ADB751

The ID of the request.

CompliancePack Object

The details of the compliance package.

Status String ACTIVE

The status of the compliance package. Valid values:

  • ACTIVE: The compliance package is available for use.
  • CREATING: The compliance package is being created.
RiskLevel Integer 1

The risk level of the resources that are not compliant with the rules in the compliance package. Valid values:

  • 1: high risk level.
  • 2: medium risk level.
  • 3: low risk level.
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.

ConfigRules Array of ConfigRules

The details of the rule that is enabled in the compliance package.

ManagedRuleIdentifier String eip-bandwidth-limit

The identifier of the managed rule based on which the rule is created.

ConfigRuleName String eip-bandwidth-limit

The name of the managed rule.

ConfigRuleId String cr-a260626622af0005****

The ID of the rule.

ConfigRuleParameters Array of ConfigRuleParameters

The settings of the input parameter for the rule.

Required Boolean true

Indicates whether the input parameter is required. Valid values:

  • true
  • false
ParameterName String bandwidth

The name of the input parameter.

ParameterValue String 10

The expected value of the input parameter.

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.

Examples

Sample requests

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

Sample success responses

XML format

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

<GetAggregateCompliancePackResponse>
	<RequestId>11D1B5BB-68CB-42BD-8D4D-9F51C4C3E7B1</RequestId>
	<CompliancePack>
		<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>
		<ConfigRules>
			<ConfigRuleId>cr-a260626622af0005****</ConfigRuleId>
			<ConfigRuleName>eip-bandwidth-limit</ConfigRuleName>
			<ManagedRuleIdentifier>eip-bandwidth-limit</ManagedRuleIdentifier>
			<ConfigRuleParameters>
				<ParameterValue>10</ParameterValue>
				<Required>true</Required>
				<ParameterName>bandwidth</ParameterName>
			</ConfigRuleParameters>
		</ConfigRules>
		<CompliancePackTemplateId>ct-5f26ff4e06a300c4****</CompliancePackTemplateId>
		<RiskLevel>1</RiskLevel>
		<CreateTimestamp>1624243657000</CreateTimestamp>
		<AggregatorId>ca-f632626622af0079****</AggregatorId>
	</CompliancePack>
</GetAggregateCompliancePackResponse>

JSON format

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

{
  "RequestId" : "11D1B5BB-68CB-42BD-8D4D-9F51C4C3E7B1",
  "CompliancePack" : {
    "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.",
    "ConfigRules" : [ {
      "ConfigRuleId" : "cr-a260626622af0005****",
      "ConfigRuleName": "eip-bandwidth-limit",
      "ManagedRuleIdentifier" : "eip-bandwidth-limit",
      "ConfigRuleParameters" : [ {
        "ParameterValue" : "10",
        "Required" : true,
        "ParameterName" : "bandwidth"
      } ]
    } ],
    "CompliancePackTemplateId" : "ct-5f26ff4e06a300c4****",
    "RiskLevel" : 1,
    "CreateTimestamp" : 1624243657000,
    "AggregatorId" : "ca-f632626622af0079****"
  }
}

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.