{"base_path":null,"components":{"parameters":{"SecurityTokenHeader":{"description":"如果正在使用临时安全凭据,则此header是必需的,该值是临时安全凭据的安全令牌(会话令牌)。","in":"header","name":"X-Security-Token","required":false,"schema":{"readOnly":true,"type":"string"}}},"schemas":{"DistinctSharedPrincipal":{"description":"描述共享的不同角色。","properties":{"id":{"description":"资源共享实例的创建者或使用者的账号ID或URN。","maxLength":1500,"minLength":0,"type":"string"},"updated_at":{"description":"最后一次更新资源共享实例的时间。","format":"date-time","type":"string"}},"type":"object"},"DistinctSharedPrincipalsResp":{"description":"The response of the SearchSharedPrincipals operation.","properties":{"distinct_shared_principals":{"description":"不同角色的信息列表。","items":{"$ref":"#/components/schemas/DistinctSharedPrincipal"},"maxItems":2000,"minItems":0,"type":"array"},"page_info":{"$ref":"#/components/schemas/PageInfo"}},"type":"object"},"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"},"SearchDistinctSharedPrincipalsReqBody":{"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_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"}}},"consumes":"","definitions":null,"description":null,"group_id":"a4962198b5cd4b19998df4c381657138","host":"ram.myhuaweicloud.com","id":"caf90cdb123748c582cef2ece5f55095","info_version":"v1","method":"post","name":"SearchDistinctPrincipals","parameters":null,"paths":{"/v1/shared-principals/search-distinct-principal":{"post":{"description":"检索您正在共享资源的不同使用者或共享给您的不同资源所有者。","operationId":"SearchDistinctPrincipals","parameters":[{"$ref":"#/components/parameters/SecurityTokenHeader"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchDistinctSharedPrincipalsReqBody"}}},"required":true},"responses":{"200":{"content":{"application/json":{"example":{"distinct_shared_principals":[{"id":"string","updated_at":"2022-09-19T02:33:45.205Z"}],"page_info":{"current_count":2000,"next_marker":"string","previous_marker":"string"}},"schema":{"$ref":"#/components/schemas/DistinctSharedPrincipalsResp"}}},"description":"请求成功。"}},"security":[{"AccessKeyAuth":[]}],"summary":"检索不同的资源使用者或者资源所有者","tags":["Principal"],"x-api-type":"open-api","x-is-registered":"Y","x-request-examples-1":{"limit":2000,"marker":"string","principals":["string"],"resource_owner":"self","resource_urn":"string"},"x-request-examples-description-1":"检索您正在共享资源的不同使用者或共享给您的不同资源所有者。","x-request-examples-url-1":"POST https://{endpoint}/v1/shared-principals/search-distinct-principal","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"}