All Products
Search
Document Center

Cloud Config:ListPreManagedRules

Last Updated:Jul 02, 2024

Queries a list of evaluation rules supported by Cloud Config.

Operation description

For more information about how to define, execute, and integrate an evaluation rule, see Definition and execution of evaluation rules.

After you create an evaluation rule, a managed rule that has the same settings as the evaluation rule is created. After you create a resource, the managed rule can be used to continuously check the compliance of the resource.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
PageNumberlongNo

The number of the page to return.

Pages start from page 1. Default value: 1.

1
PageSizelongNo

The number of entries to return on each page.

Default value: 10.

1
ResourceTypesarrayNo

The type of the resource.

stringNo
ACS::ECS::Instance

For more information about common request parameters, see Common parameters.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

A2A9F1BE-0712-1B26-9899-D82F7DA8476C
ManagedRulesarray<object>

The evaluation rules.

object
ResourceTypestring

The type of resource.

ACS::ECS::Instance
Descriptionstring

The description of the rule.

OptionalInputParameterDetailsobject

The details of the optional input parameters of the rule.

{}
Identifierstring

The identifier of the rule.

ecs-instance-deletion-protection-enabled
ConfigRuleNamestring

The name of the rule.

HelpUrlsstring

The URL of the topic that describes how the evaluation rule remediates the incompliant configurations.

https://example.aliyundoc.com
CompulsoryInputParameterDetailsobject

The details of the required input parameters of the rule.

{}
PageNumberlong

The page number of the returned page.

1
PageSizelong

The number of entries returned per page.

1

Examples

Sample success responses

JSONformat

{
  "RequestId": "A2A9F1BE-0712-1B26-9899-D82F7DA8476C",
  "ManagedRules": [
    {
      "ResourceType": "ACS::ECS::Instance",
      "Description": "",
      "OptionalInputParameterDetails": {},
      "Identifier": "ecs-instance-deletion-protection-enabled",
      "ConfigRuleName": "",
      "HelpUrls": "https://example.aliyundoc.com",
      "CompulsoryInputParameterDetails": {}
    }
  ],
  "PageNumber": 1,
  "PageSize": 1
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
No change history