huawei-cloud-api-definitions-RAM 0.1.20240315

Huawei Cloud API definitions, generated from OpenAPI spec
Documentation
1
{"base_path":null,"components":{"parameters":{"SecurityTokenHeader":{"description":"用户Token","in":"header","name":"X-Auth-Token","required":false,"schema":{"readOnly":true,"type":"string"}}},"schemas":{"CreateResourceShareReqBody":{"description":"The request body of the CreateResourceShare operation.","properties":{"allow_external_principals":{"default":true,"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"},"permission_ids":{"description":"资源共享实例关联的RAM权限列表。一种资源类型只能关联一个RAM权限。如果您没有指定权限ID,RAM将自动为每个资源类型关联默认权限。","items":{"maxLength":36,"minLength":0,"pattern":"^[\\w-]+$","type":"string"},"maxItems":20,"minItems":0,"type":"array"},"principals":{"description":"资源共享实例关联的一个或多个资源使用者的列表。","items":{"maxLength":1500,"minLength":0,"pattern":"^[\\w-/*_.+:()#@?=&%]+","type":"string"},"maxItems":20,"minItems":0,"type":"array"},"resource_urns":{"description":"资源共享实例关联的一个或多个共享资源URN的列表。","items":{"maxLength":1500,"minLength":0,"pattern":"^[A-Za-z0-9+/=\\-_]+:[A-Za-z0-9+/=\\-_*]{0,255}:[A-Za-z0-9+/=\\-_]{1,64}:[A-Za-z0-9+/=\\-_]{1,64}:.+","type":"string"},"maxItems":20,"minItems":0,"type":"array"},"tags":{"description":"资源共享标签列表。","items":{"$ref":"#/components/schemas/Tag"},"maxItems":20,"minItems":0,"type":"array"}},"required":["name"],"type":"object"},"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"}}},"consumes":"","definitions":null,"description":null,"group_id":"a4962198b5cd4b19998df4c381657138","host":"ram.myhuaweicloud.com","id":"3ca581476afe4c1fbf98b752ff4712a5","info_version":"v1","method":"post","name":"CreateResourceShare","parameters":null,"paths":{"/v1/resource-shares":{"post":{"description":"创建一个资源共享实例。您可以指定需要共享的资源列表,资源使用者列表,以及授予资源使用者的权限列表。","operationId":"CreateResourceShare","parameters":[{"$ref":"#/components/parameters/SecurityTokenHeader"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResourceShareReqBody"}}},"required":true},"responses":{"201":{"content":{"application/json":{"example":{"resource_share":{"allow_external_principals":true,"created_at":"2022-09-27T03:14:08.883Z","description":"string","id":"string","name":"string","owning_account_id":"string","status":"string","tags":[{"key":"string","value":"string"}],"updated_at":"2022-09-27T03:14:08.883Z"}},"schema":{"$ref":"#/components/schemas/ResourceShareResp"}}},"description":"请求成功。"}},"security":[{"AccessKeyAuth":[]}],"summary":"创建资源共享实例","tags":["ResourceShare"],"x-is-registered":"Y","x-request-examples-1":{"description":"string","name":"string","permission_ids":["string"],"principals":["string"],"resource_urns":["string"],"tags":[{"key":"string","value":"string"}]},"x-request-examples-description-1":"创建一个资源共享实例,并指定需要共享的资源,资源使用者,授予资源使用者的权限,以及资源共享实例的标签。","x-request-examples-url-1":"POST https://{hostname}/v1/resource-shares","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"}