{"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"},"SearchSharedPrincipalsReqBody":{"description":"The request body of the SearchSharedPrincipals 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"},"principals":{"description":"指定资源使用者。","items":{"maxLength":1500,"pattern":"^[\\w-/*_.+:()#@?=&%]+","type":"string"},"maxItems":100,"minItems":0,"type":"array"},"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_urn":{"description":"指定资源的URN。","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"}},"required":["resource_owner"],"type":"object"},"SharedPrincipal":{"description":"描述资源共享管理的角色","properties":{"created_at":{"description":"资源使用者与资源共享实例关联的时间。","format":"date-time","type":"string"},"id":{"description":"资源使用者的账号ID或URN。","maxLength":1500,"minLength":0,"type":"string"},"resource_share_id":{"description":"资源使用者绑定的资源共享实例的ID。","maxLength":36,"minLength":0,"type":"string"},"updated_at":{"description":"最后一次更新资源共享实例的时间。","format":"date-time","type":"string"}},"type":"object"},"SharedPrincipalsResp":{"description":"The response of the SearchSharedPrincipals operation.","properties":{"page_info":{"$ref":"#/components/schemas/PageInfo"},"shared_principals":{"description":"资源使用者的详细信息列表。","items":{"$ref":"#/components/schemas/SharedPrincipal"},"maxItems":2000,"minItems":0,"type":"array"}},"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"a4962198b5cd4b19998df4c381657138","host":"ram.myhuaweicloud.com","id":"9bc8997844e74616ab5878beae405f3f","info_version":"v1","method":"post","name":"SearchSharedPrincipals","parameters":null,"paths":{"/v1/shared-principals/search":{"post":{"description":"检索共享资源的使用者。","operationId":"SearchSharedPrincipals","parameters":[{"$ref":"#/components/parameters/SecurityTokenHeader"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchSharedPrincipalsReqBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"page_info":{"current_count":2000,"next_marker":"string","previous_marker":"string"},"shared_principals":[{"created_at":"2022-09-19T02:33:13.496Z","id":"string","resource_share_id":"string","updated_at":"2022-09-19T02:33:13.496Z"}]},"schema":{"$ref":"#/components/schemas/SharedPrincipalsResp"}}},"description":"请求成功。"}},"security":[{"AccessKeyAuth":[]}],"summary":"检索资源使用者","tags":["Principal"],"x-is-registered":"Y","x-request-examples-1":{"limit":2000,"marker":"string","principals":["string"],"resource_owner":"self","resource_share_ids":["string"],"resource_urn":"string"},"x-request-examples-description-1":"检索共享资源的使用者。","x-request-examples-url-1":"POST https://{hostname}/v1/shared-principals/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"}