All Products
Search
Document Center

Cloud Config:ListRemediations

Last Updated:Mar 08, 2023

Queries the remediation settings of one or more rules.

Operation Description

In this topic, the rule whose ID is cr-6b7c626622af00b4**** is used as an example.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociation operation
config:ListRemediationsList
  • Config
    acs:config:*:{#accountId}:*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ConfigRuleIdsstringYes

The ID of the rule. If you want to specify multiple IDs, separate them with commas (,).

You can call the ListConfigRules operation to obtain the rule ID.

cr-6b7c626622af00b4****

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

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

0146963A-20C0-4E75-B93A-7D622B5FD7C8
Remediationsarray

The remediation settings returned.

object
LastSuccessfulInvocationTypestring

The mode of the last successful execution of the remediation template. Valid values:

  • NON_EXECUTION: no execution.
  • AUTO_EXECUTION: automatic execution.
  • MANUAL_EXECUTION: manual execution.
  • NOT_CONFIG: not specified.
AUTO_EXECUTION
RemediationTemplateIdstring

The identifier of the remediation template.

ACS-OSS-PutBucketAcl
RemediationIdstring

The ID of the remediation setting.

crr-6b7c626622af0026****
RemediationSourceTypestring

The source of remediation. Valid values:

  • ALIYUN: official template.
  • CUSTOM: custom template.
  • NONE: none.
ALIYUN
RemediationTypestring

The type of remediation to perform. Valid values:

  • OOS: stands for Operation Orchestration Service and indicates official remediation.
  • FC: stands for Function Compute and indicates custom remediation.
OOS
LastSuccessfulInvocationIdstring

The ID of the last successful execution of the remediation template.

bd7629fb-cac8-42fe-bcb1-e362c5a6****
AccountIdlong

The ID of the Alibaba Cloud account involved.

100931896542****
InvokeTypestring

The execution mode of the remediation template. Valid values:

  • NON_EXECUTION: no execution.
  • AUTO_EXECUTION: automatic execution.
  • MANUAL_EXECUTION: manual execution.
  • NOT_CONFIG: not specified.
AUTO_EXECUTION
ConfigRuleIdstring

The ID of the rule.

cr-6b7c626622af00b4****
LastSuccessfulInvocationTimelong

The timestamp of the last successful execution of the remediation template Unit: milliseconds.

1625451393589
RemediationOriginParamsstring

The converted configuration of the remediation template. This parameter is returned only for an OOS remediation template.

{"bucketName": "{resourceId}", "regionId": "{regionId}", "permissionName": "private"}

Examples

Sample success responses

JSONformat

{
  "RequestId": "0146963A-20C0-4E75-B93A-7D622B5FD7C8",
  "Remediations": [
    {
      "LastSuccessfulInvocationType": "AUTO_EXECUTION",
      "RemediationTemplateId": "ACS-OSS-PutBucketAcl",
      "RemediationId": "crr-6b7c626622af0026****",
      "RemediationSourceType": "ALIYUN",
      "RemediationType": "OOS",
      "LastSuccessfulInvocationId": "bd7629fb-cac8-42fe-bcb1-e362c5a6****",
      "AccountId": 0,
      "InvokeType": "AUTO_EXECUTION",
      "ConfigRuleId": "cr-6b7c626622af00b4****",
      "LastSuccessfulInvocationTime": 1625451393589,
      "RemediationOriginParams": "{\"bucketName\": \"{resourceId}\", \"regionId\": \"{regionId}\", \"permissionName\": \"private\"}"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
404AccountNotExistedYour account does not exist.The specified account does not exist.
503ServiceUnavailableThe request has failed due to a temporary failure of the server.The request has failed due to a temporary failure of the server.

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