配置审计 Config-创建或更新组织合规规则:请求示例

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

请求示例

创建或更新组织合规规则。

PUT https://{endpoint}/v1/resource-manager/organizations/{organization_id}/policy-assignments{  "organization_policy_assignment_name" : "allowed-images-by-id",  "managed_policy_assignment_metadata" : {    "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" : "5fa265c0aa1e6afc05a0ff07"  }}
support.huaweicloud.com/api-rms/rms_04_0516.html