huawei-cloud-api-definitions-RAM 0.1.20240116

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":{"parameters":{"ResourceShareId":{"description":"资源共享实例的ID。","in":"path","name":"resource_share_id","required":true,"schema":{"maxLength":36,"minLength":0,"pattern":"^[\\w-]+$","type":"string"}},"SecurityTokenHeader":{"description":"用户Token","in":"header","name":"X-Auth-Token","required":false,"schema":{"maxLength":2048,"minLength":0,"readOnly":true,"type":"string"}}},"schemas":{"ResourceShare":{"description":"描述RAM中的资源共享。","properties":{"allow_external_principals":{"description":"资源共享实例是否支持共享给组织外账号。","type":"boolean"},"created_at":{"description":"创建资源共享实例的时间。","format":"date-time","type":"string"},"description":{"description":"资源共享实例的描述。","maxLength":1024,"minLength":1,"type":"string"},"id":{"description":"资源共享实例的ID。","maxLength":36,"minLength":0,"type":"string"},"name":{"description":"资源共享实例的名称。","maxLength":128,"minLength":0,"type":"string"},"owning_account_id":{"description":"资源共享实例的所有者ID。","maxLength":36,"minLength":0,"type":"string"},"status":{"description":"资源共享实例的状态。","maxLength":36,"minLength":0,"type":"string"},"tags":{"description":"资源共享实例的标签列表。","items":{"$ref":"#/components/schemas/Tag"},"maxItems":100,"minItems":0,"type":"array"},"updated_at":{"description":"最后一次更新资源共享实例的时间。","format":"date-time","type":"string"}},"required":["id","name","description","owning_account_id","status","created_at","updated_at"],"type":"object"},"ResourceShareResp":{"description":"The response of the resource share related operations.","properties":{"resource_share":{"$ref":"#/components/schemas/ResourceShare"}},"required":["resource_share"],"type":"object"},"Tag":{"description":"自定义键值对。","properties":{"key":{"description":"标签\"键\"的标识符或名称。","maxLength":128,"minLength":1,"pattern":"^((?!\\s)(?!_sys_)[\\p{L}\\p{Z}\\p{N}_.:=+\\-@]*)(?<!\\s)$","type":"string"},"value":{"description":"标签\"键\"对应的\"值\"。您可以将标签的值设置为空字符串,但不能设置为null。","maxLength":255,"minLength":0,"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*)$","type":"string"}},"required":["key","value"],"type":"object"},"UpdateResourceShareReqBody":{"description":"The request body of the UpdateResourceShare operation.","properties":{"allow_external_principals":{"description":"资源共享实例是否支持共享给组织外账号。","type":"boolean"},"description":{"description":"资源共享实例的描述。","maxLength":256,"minLength":0,"pattern":"^(?!.*?(<|>)).*$","type":"string"},"name":{"description":"资源共享实例的名称。","maxLength":64,"minLength":1,"pattern":"[\\u4e00-\\u9fa5a-zA-Z0-9-_.]*","type":"string"}},"required":["name"],"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"a4962198b5cd4b19998df4c381657138","host":"ram.myhuaweicloud.com","id":"381e4f05020b43c98bd5ec94cc86d951","info_version":"v1","method":"put","name":"UpdateResourceShare","parameters":null,"paths":{"/v1/resource-shares/{resource_share_id}":{"put":{"description":"修改资源共享实例的特定属性。","operationId":"UpdateResourceShare","parameters":[{"$ref":"#/components/parameters/SecurityTokenHeader"},{"$ref":"#/components/parameters/ResourceShareId"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateResourceShareReqBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"resource_share":{"allow_external_principals":true,"created_at":"2023-01-30T11:29:17.578Z","description":"string","id":"string","name":"string","owning_account_id":"string","status":"string","tags":[{"key":"string","value":"string"}],"updated_at":"2023-01-30T11:29:17.578Z"}},"schema":{"$ref":"#/components/schemas/ResourceShareResp"}}},"description":"请求成功。"}},"security":[{"AccessKeyAuth":[]}],"summary":"更新资源共享实例","tags":["ResourceShare"],"x-is-registered":"Y","x-request-examples-1":{"description":"string","name":"string"},"x-request-examples-description-1":"修改资源共享实例的名称或描述信息。","x-request-examples-url-1":"PUT https://{hostname}/v1/resource-shares/{resource_share_id}","x-support-sdk":"Y"}}},"product_short":"RAM","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"更新资源共享实例","tags":"资源共享实例","uri":null,"version":"3.0.3"}