huawei-cloud-api-definitions-RAM 0.1.20240315

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":{"readOnly":true,"type":"string"}}},"schemas":{"AssociateResourceShareResp":{"properties":{"resource_share_associations":{"items":{"$ref":"#/components/schemas/ResourceShareAssociation"},"maxItems":2000,"minItems":0,"type":"array"}},"required":["resource_share_associations"],"type":"object"},"ResourceShareAssociation":{"description":"与资源共享实例关联的资源使用者或共享资源的详细信息。","properties":{"associated_entity":{"description":"绑定的实体。这可以是共享资源的URN、账号ID、组织根的URN或OU的URN之一。","maxLength":1500,"minLength":0,"type":"string"},"association_type":{"description":"绑定中包含的实体类型。","maxLength":36,"minLength":0,"type":"string"},"created_at":{"description":"绑定被创建的时间。","format":"date-time","type":"string"},"external":{"description":"标识资源使用者是否和共享的拥有者属于同一个组织","type":"boolean"},"resource_share_id":{"description":"资源共享实例的ID。","maxLength":36,"minLength":0,"type":"string"},"resource_share_name":{"description":"资源共享实例的名称。","maxLength":64,"minLength":0,"type":"string"},"status":{"description":"绑定的当前状态。","maxLength":36,"minLength":0,"type":"string"},"status_message":{"description":"绑定的当前状态的描述。","maxLength":65535,"minLength":0,"type":"string"},"updated_at":{"description":"最后一次更新绑定的时间。","format":"date-time","type":"string"}},"required":["associated_entity","association_type","created_at","updated_at","resource_share_id","resource_share_name","status"],"type":"object"},"ResourceShareAssociationReqBody":{"description":"The request body of AssociateResourceShare and DisassociateResourceShare operations.","properties":{"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"}},"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"a4962198b5cd4b19998df4c381657138","host":"ram.myhuaweicloud.com","id":"41358551bd8442be981b1016c44504fb","info_version":"v1","method":"post","name":"DisassociateResourceShare","parameters":null,"paths":{"/v1/resource-shares/{resource_share_id}/disassociate":{"post":{"description":"将指定的资源使用者或共享资源从指定的资源共享实例中移除。","operationId":"DisassociateResourceShare","parameters":[{"$ref":"#/components/parameters/SecurityTokenHeader"},{"$ref":"#/components/parameters/ResourceShareId"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResourceShareAssociationReqBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"resource_share_associations":[{"associated_entity":"string","association_type":"string","created_at":"2022-08-22T11:53:04.912Z","external":true,"resource_share_id":"string","resource_share_name":"string","status":"string","status_message":"string","updated_at":"2022-08-22T11:53:04.912Z"}]},"schema":{"$ref":"#/components/schemas/AssociateResourceShareResp"}}},"description":"请求成功。"}},"security":[{"AccessKeyAuth":[]}],"summary":"移除资源使用者和共享资源","tags":["ResourceShareAssociation"],"x-is-registered":"Y","x-request-examples-1":{"principals":["string"],"resource_urns":["string"]},"x-request-examples-description-1":"将指定的资源使用者或共享资源从指定的资源共享实例中移除。","x-request-examples-url-1":"POST https://{hostname}/v1/resource-shares/{resource_share_id}/disassociate","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"}