huawei-cloud-api-definitions-BCC 0.1.20251025

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":"/","components":null,"consumes":"","definitions":{"CreateResourceLevelBody":{"description":"创建资源分级的body体","properties":{"apply_rule":{"description":"应用的规则, 标签的格式为\"[{\\\"key\\\": \\\"A\\\", \"value\\\":\\\"a\\\"}]\"","example":"[{\"key\": \"A\", \"value\":\"a\"}]","maxLength":2048,"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":256,"minLength":1,"type":"string"},"providers":{"description":"资源类型","example":"ecs","items":{"maxLength":16,"minLength":1,"type":"string"},"maxItems":10,"minItems":1,"type":"array","uniqueItems":true},"resource_level":{"description":"资源级别,创建时为5","example":2,"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"}},"required":["resource_level_name","providers","resource_level"],"type":"object"},"CreateResourceLevelRsp":{"description":"创建资源分级的返回体","properties":{"resource_level_id":{"description":"资源分级ID","maxLength":24,"minLength":24,"type":"string"}},"type":"object"},"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"]}},"description":null,"group_id":"0cb6191c2c524d62be604224b207d979","host":"bcc.cn-north-4.myhuaweicloud.com","id":"8ecf49e877a84d47ab21564766d2986d","info_version":"v1","method":"post","name":"CreateResourcesLevel","parameters":{},"paths":{"/v1/{domain_id}/resource-levels":{"post":{"consumes":["application/json"],"description":"新增资源分级","operationId":"CreateResourcesLevel","parameters":[{"description":"账号ID","in":"path","maxLength":36,"minLength":1,"name":"domain_id","required":true,"type":"string"},{"description":"创建资源分级的body体","in":"body","name":"CreateResourcesLevelRequestBody","required":true,"schema":{"$ref":"#/definitions/CreateResourceLevelBody"}}],"produces":["application/json"],"responses":{"200":{"description":"创建成功的返回体","examples":{"application/json":{"resource_level_id":"681b006230b4511a437d6fce"}},"schema":{"$ref":"#/definitions/CreateResourceLevelRsp"}},"400":{"description":"请求错误","schema":{"$ref":"#/definitions/ErrorRsp"}},"401":{"description":"未提供认证信息或认证信息错误。","schema":{"$ref":"#/definitions/ErrorRsp"}},"403":{"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::createResourcesLevel","authContextInitializerName":"iamAuthCreateContextInitializer","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 = \"CreateResourcesLevel\", operationId = \"CreateResourcesLevel\", isReadOnly=false)"],"x-order":1,"x-support-sdk":"Y"}}},"product_short":"BCC","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"新增资源分级","tags":"资源定级","uri":null,"version":"2.0"}