配置审计 Config-更新合规规则:请求示例

时间:2023-11-01 16:16:57

请求示例

PUT https://{endpoint}/v1/resource-manager/domains/{domain_id}/policy-assignments/{policy_assignment_id}{  "name" : "allowed-images-by-id",  "description" : "The ECS resource is non-compliant if the image it used is not in the allowed list",  "parameters" : {    "listOfAllowedImages" : {      "value" : [ "ea0d6e0e-99c3-406d-a873-3bb45462b624" ]    }  },  "policy_filter" : {    "resource_provider" : "ecs",    "resource_type" : "cloudservers"  },  "policy_definition_id" : "5f3c8b9a9811a13739a32ed9"}
support.huaweicloud.com/api-rms/rms_04_0505.html