{"base_path":null,"components":{"parameters":{"SecurityTokenHeader":{"description":"用户Token","in":"header","name":"X-Auth-Token","required":false,"schema":{"readOnly":true,"type":"string"}}},"schemas":{"PageInfo":{"description":"分页详细信息。","properties":{"current_count":{"description":"页面数量。","format":"int32","maximum":2000,"minimum":1,"type":"integer"},"next_marker":{"description":"下一页的页面标识。","maxLength":64,"minLength":1,"pattern":"^\\d{1,}$","type":"string"},"previous_marker":{"description":"上一页的页面标识。","maxLength":64,"minLength":1,"pattern":"^\\d{1,}$","type":"string"}},"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"},"ResourceSharesResp":{"description":"The response of the SearchResourceShares operation.","properties":{"page_info":{"$ref":"#/components/schemas/PageInfo"},"resource_shares":{"description":"资源共享实例的详细信息列表。","items":{"$ref":"#/components/schemas/ResourceShare"},"maxItems":2000,"minItems":0,"type":"array"}},"required":["resource_shares"],"type":"object"},"SearchResourceSharesReqBody":{"description":"The request body of the SearchResourceShares operation.","properties":{"limit":{"default":50,"description":"分页页面的最大值。","format":"int32","maximum":2000,"minimum":1,"type":"integer"},"marker":{"description":"页面标记。","maxLength":64,"minLength":1,"pattern":"^\\d{1,}$","type":"string"},"name":{"description":"资源共享实例名称。","maxLength":64,"minLength":0,"type":"string"},"permission_id":{"description":"权限ID。","maxLength":36,"minLength":0,"pattern":"^[\\w-]+$","type":"string"},"resource_owner":{"description":"检索您创建的或共享给您的(self或者other-accounts)资源共享实例。","enum":["self","other-accounts"],"type":"string"},"resource_share_ids":{"description":"资源共享实例的ID列表。","items":{"maxLength":36,"minLength":0,"pattern":"^[\\w-]+$","type":"string"},"maxItems":100,"minItems":1,"type":"array"},"resource_share_status":{"description":"资源共享实例的状态。","maxLength":36,"minLength":0,"type":"string"},"tag_filters":{"description":"资源共享实例的标签。","items":{"$ref":"#/components/schemas/TagFilter"},"maxItems":20,"minItems":0,"type":"array"}},"required":["resource_owner"],"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"},"TagFilter":{"description":"根据标签筛选。","properties":{"key":{"description":"标签\"键\"的标识符或名称。","maxLength":128,"minLength":1,"pattern":"^((?!\\s)(?!_sys_)[\\p{L}\\p{Z}\\p{N}_.:=+\\-@]*)(?<!\\s)$","type":"string"},"values":{"description":"标签\"键\"对应的\"值\"列表。","items":{"maxLength":255,"minLength":0,"pattern":"^([\\p{L}\\p{Z}\\p{N}_.:\\/=+\\-@]*)$","type":"string"},"maxItems":20,"minItems":0,"type":"array"}},"required":["key"],"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"a4962198b5cd4b19998df4c381657138","host":"ram.myhuaweicloud.com","id":"cf965145fde1421fa1e609953764b03d","info_version":"v1","method":"post","name":"SearchResourceShares","parameters":null,"paths":{"/v1/resource-shares/search":{"post":{"description":"检索您创建的或者共享给您的资源共享实例详情。","operationId":"SearchResourceShares","parameters":[{"$ref":"#/components/parameters/SecurityTokenHeader"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResourceSharesReqBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"page_info":{"current_count":2000,"next_marker":"string","previous_marker":"string"},"resource_shares":[{"allow_external_principals":true,"created_at":"2023-01-06T08:24:55.638Z","description":"string","id":"string","name":"string","owning_account_id":"string","status":"string","tags":[{"key":"string","value":"string"}],"updated_at":"2023-01-06T08:24:55.638Z"}]},"schema":{"$ref":"#/components/schemas/ResourceSharesResp"}}},"description":"请求成功。"}},"security":[{"AccessKeyAuth":[]}],"summary":"检索资源共享实例","tags":["ResourceShare"],"x-is-registered":"Y","x-request-examples-1":{"limit":2000,"marker":"string","name":"string","permission_id":"string","resource_owner":"self","resource_share_ids":["string"],"resource_share_status":"string","tag_filters":[{"key":"string","values":["string"]}]},"x-request-examples-description-1":"检索您创建的资源共享实例详情。","x-request-examples-url-1":"POST https://{hostname}/v1/resource-shares/search","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"}