查询指定托管规则的修正模板详情。
目前该API接口已标记为弃用,推荐使用替代API:Config(2020-09-07) - ListRemediationTemplates。
接口说明
本文将提供一个示例,查询托管规则oss-bucket-public-write-prohibited的修正模板详情。返回结果显示修正类型OOS(运维编排)的模板详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
 调试
        
            调试
        
    
授权信息
| 操作 | 访问级别 | 资源类型 | 条件关键字 | 关联操作 | 
| config:ListRemediationTemplates | list | *全部资源 
 | 无 | 无 | 
请求参数
| 名称 | 类型 | 必填 | 描述 | 示例值 | 
| RemediationType | string | 否 | 修正类型。仅支持 OOS(运维编排)。 | OOS | 
| ManagedRuleIdentifier | string | 是 | 托管规则标识。 | oss-bucket-public-write-prohibited | 
关于公共请求参数的详情,请参见公共参数。
返回参数
| 名称 | 类型 | 描述 | 示例值 | 
| object | |||
| RemediationTemplates | array<object> | 修正模板列表。 | |
| object | |||
| RemediationType | string | 修正类型。仅支持 OOS(运维编排)。 | OOS | 
| TemplateDefinition | string | 修正模板定义。 | {\n \"Parameters\": {\n \"regionId\": {\n \"Type\": \"String\",\n \"Description\": \"The id of target region.\",\n \"AssociationProperty\": \"RegionId\",\n \"Default\": \"{regionId}\"\n },\n \"bucketName\": {\n \"Description\": {\n \"en\": \"The OSS bucket name.\",\n \"zh-cn\": \"OSS Bucket名称。\"\n },\n \"Type\": \"String\",\n \"Default\": \"{resourceId}\"\n },\n \"permissionName\": {\n \"Description\": {\n \"en\": \"The acl permission name.\",\n \"zh-cn\": \"ACL权限名称。\"\n },\n \"Type\": \"String\",\n \"Default\": \"private\",\n \"AllowedValues\": [\n \"public-read-write\",\n \"public-read\",\n \"private\"\n ]\n }\n }\n} | 
| TemplateIdentifier | string | 修正模板 ID。 | ACS-OSS-PutBucketAcl | 
| TemplateName | string | 修正模板名称。 | Set the ACL of an OSS bucket to private. | 
| RequestId | string | 请求 ID。 | FC2C4750-7024-499C-A69F-763543D1CBE3 | 
示例
正常返回示例
JSON格式
{
  "RemediationTemplates": [
    {
      "RemediationType": "OOS",
      "TemplateDefinition": "{\\n  \\\"Parameters\\\": {\\n    \\\"regionId\\\": {\\n      \\\"Type\\\": \\\"String\\\",\\n      \\\"Description\\\": \\\"The id of target region.\\\",\\n      \\\"AssociationProperty\\\": \\\"RegionId\\\",\\n      \\\"Default\\\": \\\"{regionId}\\\"\\n    },\\n    \\\"bucketName\\\": {\\n      \\\"Description\\\": {\\n        \\\"en\\\": \\\"The OSS bucket name.\\\",\\n        \\\"zh-cn\\\": \\\"OSS Bucket名称。\\\"\\n      },\\n      \\\"Type\\\": \\\"String\\\",\\n      \\\"Default\\\": \\\"{resourceId}\\\"\\n    },\\n    \\\"permissionName\\\": {\\n      \\\"Description\\\": {\\n        \\\"en\\\": \\\"The acl permission name.\\\",\\n        \\\"zh-cn\\\": \\\"ACL权限名称。\\\"\\n      },\\n      \\\"Type\\\": \\\"String\\\",\\n      \\\"Default\\\": \\\"private\\\",\\n      \\\"AllowedValues\\\": [\\n        \\\"public-read-write\\\",\\n        \\\"public-read\\\",\\n        \\\"private\\\"\\n      ]\\n    }\\n  }\\n}",
      "TemplateIdentifier": "ACS-OSS-PutBucketAcl",
      "TemplateName": "Set the ACL of an OSS bucket to private."
    }
  ],
  "RequestId": "FC2C4750-7024-499C-A69F-763543D1CBE3"
}错误码
| HTTP status code | 错误码 | 错误信息 | 描述 | 
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | 
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。