All Products
Search
Document Center

Cloud Config:ListRemediationTemplates

Last Updated:Apr 26, 2023

Queries the details of the official remediation template for a managed rule.

Operation Description

In this topic, the oss-bucket-public-write-prohibited managed rule is used as an example. The return result shows the details of the remediation template of the OOS type for the managed rule. OOS represents Operation Orchestration Service.

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:ListRemediationTemplatesList
  • Config
    acs:config:*:{#accountId}:*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
RemediationTypestringNo

The type of the remediation template. Valid value: OOS, which stands for Operation Orchestration Service.

OOS
ManagedRuleIdentifierstringYes

The identifier of the managed rule.

You can call the ListCompliancePackTemplates operation to obtain the managed rule identifier.

oss-bucket-public-write-prohibited

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

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

FC2C4750-7024-499C-A69F-763543D1CBE3
RemediationTemplatesarray

The details of the remediation template.

object
RemediationTypestring

The type of the remediation template. Valid value: OOS, which stands for Operation Orchestration Service.

OOS
TemplateIdentifierstring

The identifier of the remediation template.

ACS-OSS-PutBucketAcl
TemplateNamestring

The name of the remediation template.

TemplateDefinitionstring

The configuration of the remediation template.

Examples

Sample success responses

JSONformat

{
  "RequestId": "FC2C4750-7024-499C-A69F-763543D1CBE3",
  "RemediationTemplates": [
    {
      "RemediationType": "OOS",
      "TemplateIdentifier": "ACS-OSS-PutBucketAcl",
      "TemplateName": "",
      "TemplateDefinition": ""
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionYou are not authorized to perform this operation.You are not authorized to perform this operation.
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.

Change history

Change timeSummary of changesOperation
2023-04-13API Description Update,The error codes of the API operation change.,The input parameters of the API operation change.,The response structure of the API operation changes.
Change itemChange content
API DescriptionAPI Description Update
Error CodesThe error codes of the API operation change.
    delete Error Codes: 400
    delete Error Codes: 503
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: PageNumber
    Added Input Parameters: PageSize
Output ParametersThe response structure of the API operation changes.