List Resource Servers
cognitoidentityprovider_list_resource_servers | R Documentation |
Given a user pool ID, returns all resource servers and their details¶
Description¶
Given a user pool ID, returns all resource servers and their details. For more information about resource servers, see Access control with resource servers.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
Usage¶
cognitoidentityprovider_list_resource_servers(UserPoolId, MaxResults,
NextToken)
Arguments¶
UserPoolId |
[required] The ID of the user pool where you want to list resource servers. |
MaxResults |
The maximum number of resource servers that you want Amazon Cognito to return in the response. |
NextToken |
This API operation returns a limited number of results. The pagination token is an identifier that you can present in an additional API request with the same parameters. When you include the pagination token, Amazon Cognito returns the next set of items after the current list. Subsequent requests return a new pagination token. By use of this token, you can paginate through the full list of items. |
Value¶
A list with the following syntax:
list(
ResourceServers = list(
list(
UserPoolId = "string",
Identifier = "string",
Name = "string",
Scopes = list(
list(
ScopeName = "string",
ScopeDescription = "string"
)
)
)
),
NextToken = "string"
)
Request syntax¶
svc$list_resource_servers(
UserPoolId = "string",
MaxResults = 123,
NextToken = "string"
)