Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the administrator of the account. For more information, see Assign User Access in the IAM Identity Center User Guide. This operation returns a paginated response.
Request SyntaxGET /assignment/accounts?max_result=maxResults
&next_token=nextToken
HTTP/1.1
x-amz-sso_bearer_token: accessToken
URI Request Parameters
The request uses the following URI parameters.
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Required: Yes
This is the number of items clients can request per page.
Valid Range: Minimum value of 1. Maximum value of 100.
(Optional) When requesting subsequent pages, this is the page token from the previous response output.
The request does not have a request body.
Response SyntaxHTTP/1.1 200
Content-type: application/json
{
"accountList": [
{
"accountId": "string",
"accountName": "string",
"emailAddress": "string"
}
],
"nextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
A paginated response with the list of account information and the next token if more results are available.
Type: Array of AccountInfo objects
The page token client that is used to retrieve the list of accounts.
Type: String
For information about the errors that are common to all actions, see Common Errors.
Indicates that a problem occurred with the input to the request. For example, a required parameter might be missing or out of range.
HTTP Status Code: 400
The specified resource doesn't exist.
HTTP Status Code: 404
Indicates that the request is being made too frequently and is more than what the server can handle.
HTTP Status Code: 429
Indicates that the request is not authorized. This can happen due to an invalid access token in the request.
HTTP Status Code: 401
For more information about using this API in one of the language-specific AWS SDKs, see the following:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4