All Products
Search
Document Center

Cloud Config:ListPreManagedRules

Last Updated:Dec 12, 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

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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

The type of the resource.

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.

ManagedRuleobject
ResourceTypestring

The type of resource.

ACS::ECS::Instance
Descriptionstring

The description of the rule.

Example description
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.

ram-user-ak-used-expired-check
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": "Example description",
      "OptionalInputParameterDetails": {},
      "Identifier": "ecs-instance-deletion-protection-enabled",
      "ConfigRuleName": "ram-user-ak-used-expired-check",
      "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