{"base_path":"/","components":null,"consumes":"","definitions":{"ErrorRsp":{"description":"失败时返回的错误对象","properties":{"error_code":{"description":"错误码","maxLength":36,"minLength":8,"type":"string"},"error_msg":{"description":"错误描述","maxLength":512,"minLength":2,"type":"string"}},"required":["error_code","error_msg"]},"ModifyResourceLevelBody":{"description":"修改资源分级的body体","properties":{"apply_rule":{"description":"应用规则","example":"[{\"key\": \"A\", \"value\":\"a\"}]","maxLength":1024,"minLength":1,"type":"string"},"apply_type":{"description":"应用方式","example":1,"format":"int32","maximum":1,"minimum":0,"type":"integer"},"compliance_rule_id":{"description":"合规规则的id","example":"682fe7f470a2df0dea9dbed9","maxLength":24,"minLength":24,"type":"string"},"description":{"description":"资源分级描述。","example":"test","maxLength":1024,"minLength":1,"type":"string"},"resource_level":{"description":"资源等级","format":"int32","maximum":5,"minimum":1,"type":"integer"},"resource_level_name":{"description":"资源分级名称,只能是汉字、大小写字母、下划线、中划线、数字组成,且不能以数字或者中划线或者下划线开头","example":"金融一般","maxLength":32,"minLength":2,"pattern":"^[a-zA-Z\\u4e00-\\u9fa5][a-zA-Z0-9_\\-\\u4e00-\\u9fa5]*$","type":"string"}},"type":"object"}},"description":null,"group_id":"0cb6191c2c524d62be604224b207d979","host":"bcc.cn-north-4.myhuaweicloud.com","id":"25ef26aef5e446c3ad5658cc7ba7f3da","info_version":"v1","method":"put","name":"ModifyResourceLevel","parameters":{},"paths":{"/v1/{domain_id}/resource-levels/{level_id}":{"put":{"consumes":["application/json"],"description":"修改资源分级,修改资源等级的应用类型、应用规则、合规规则id时,可能会导致某些资源的归属等级发生变动,或资源的合规结果发生更改","operationId":"ModifyResourceLevel","parameters":[{"description":"账户ID","in":"path","maxLength":32,"minLength":32,"name":"domain_id","required":true,"type":"string"},{"description":"资源等级ID","in":"path","maxLength":24,"minLength":24,"name":"level_id","required":true,"type":"string"},{"description":"修改资源分级的body体","in":"body","name":"ModifyResourceLevelRequestBody","required":false,"schema":{"$ref":"#/definitions/ModifyResourceLevelBody"}}],"produces":["application/json"],"responses":{"204":{"description":""},"400":{"description":"请求错误","schema":{"$ref":"#/definitions/ErrorRsp"}},"401":{"description":"未提供认证信息或认证信息错误。","schema":{"$ref":"#/definitions/ErrorRsp"}},"403":{"description":"请求页面被禁止访问。","schema":{"$ref":"#/definitions/ErrorRsp"}},"404":{"description":"未找到资源。","schema":{"$ref":"#/definitions/ErrorRsp"}},"408":{"description":"请求超出了服务器的等待时间。","schema":{"$ref":"#/definitions/ErrorRsp"}},"429":{"description":"当前请求过多。","schema":{"$ref":"#/definitions/ErrorRsp"}},"500":{"description":"请求未完成,服务异常。","schema":{"$ref":"#/definitions/ErrorRsp"}},"503":{"description":"系统暂时不可用,请求受限。","schema":{"$ref":"#/definitions/ErrorRsp"}}},"summary":"修改资源分级","tags":["资源定级"],"x-api-type":"open-api","x-iam-auth-meta-anno":{"abacAction":"bcc::updateResourcesLevel","authContextInitializerName":"iamAuthSingleContextInitializer","authLevel":"NO_INSTANCE","model":"v5","needAbacCheck":true,"needAbacResourceCheck":false,"needApigwJwtAuthCheck":false,"needCbcCheck":false,"needRbacCheck":false,"needResourceTagCheck":false,"supportAllGrantedEps":false},"x-is-registered":"Y","x-method-annotations":["@CtsMeta(resourceType = \"ResourceLevel\", traceName = \"ModifyResourceLevel\", operationId = \"ModifyResourceLevel\", isReadOnly=false)"],"x-order":2,"x-support-sdk":"Y"}}},"product_short":"BCC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"修改资源分级","tags":"资源定级","uri":null,"version":"2.0"}