{"base_path":null,"components":{"parameters":{"accessToken":{"allowEmptyValue":false,"description":"创建令牌接口调用签发的访问令牌","in":"header","name":"access-token","required":true,"schema":{"maxLength":4096,"pattern":"^[a-zA-Z0-9-_\\.]{1,4096}$","type":"string"}}},"schemas":{"AgencyCredentials":{"description":"分配给用户的指定委托或信任委托的凭证","properties":{"access_key_id":{"description":"用于临时安全凭证的标识符","type":"string"},"expiration":{"description":"临时安全凭证到期的日期","format":"int64","type":"integer"},"secret_access_key":{"description":"用于对请求进行签名的密钥","type":"string"},"session_token":{"description":"用于临时凭证的令牌","type":"string"}},"type":"object"},"GetAgencyCredentialsResp":{"description":"Returns the STS short-term credentials for a given agency name that is assigned to the user.","properties":{"agency_credentials":{"$ref":"#/components/schemas/AgencyCredentials","description":"分配给用户的指定委托或信任委托的凭证"}},"type":"object"}}},"consumes":"","definitions":null,"description":null,"group_id":"66685d2e348348299f07fd75b84f22bf","host":"portal-identitycenter.myhuaweicloud.com","id":"d69b1b50472e417c9577fcbeaf0d975a","info_version":"v1","method":"get","name":"GetAgencyCredentials","parameters":null,"paths":{"/v1/credentials":{"get":{"description":"获取分配给用户的指定委托或信任委托的STS短期凭证","operationId":"GetAgencyCredentials","parameters":[{"$ref":"#/components/parameters/accessToken"},{"description":"目标账户的全局唯一标识符(ID)","in":"query","name":"target_account_id","required":true,"schema":{"pattern":"^[a-zA-Z0-9-]{1,64}$","type":"string"}},{"description":"委托或信任委托的统一资源名称(URN)","in":"query","name":"agency_urn","required":true,"schema":{"pattern":"^[A-Za-z0-9+/=\\-_]+:[A-Za-z0-9+/=\\-_*]{0,64}:[A-Za-z0-9+/=\\-_]{1,128}:[A-Za-z0-9+/=\\-_]{1,64}:[\\w-/*_.+:()#@?=&%,]{1,512}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"example":{"agency_credentials":{"access_key_id":"example-access-key-id","expiration":1684955360,"secret_access_key":"example-secret-access-key","session_token":"string"}},"schema":{"$ref":"#/components/schemas/GetAgencyCredentialsResp"}}},"description":"Successful"}},"summary":"获取委托凭证","tags":["Credential"],"x-apiexplorer-auth":false,"x-is-registered":"Y","x-request-examples-description-1":"获取委托凭证","x-request-examples-url-1":"GET https://{hostname}/v1/credentials","x-support-sdk":"Y"}}},"product_short":"IdentityCenterPortalAPI","region_id":"cn-north-4","schemes":["HTTPS"],"security_definitions":null,"summary":"获取委托凭证","tags":"凭证管理","uri":null,"version":"3.0.3"}