ListServices
Lists the names and codes for the AWS services integrated with Service Quotas.
Related Actions
Request Syntax
{
"MaxResults": number
,
"NextToken": "string
"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- MaxResults
-
Specifies the maximum number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value appropriate to the operation. If additional items exist beyond those included in the current response, the
NextToken
response element is present and has a value (is not null). Include that value as theNextToken
request parameter in the next call to the operation to get the next part of the results.Note
An API operation can return fewer results than the maximum even when there are more results available. You should check
NextToken
after every operation to ensure that you receive all of the results.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- NextToken
-
Specifies a value for receiving additional results after you receive a
NextToken
response in a previous request. ANextToken
response indicates that more output is available. Set this parameter to the value of the previous call'sNextToken
response to indicate where the output should continue from.Type: String
Length Constraints: Maximum length of 2048.
Pattern:
^[a-zA-Z0-9/+]*={0,2}$
Required: No
Response Syntax
{
"NextToken": "string",
"Services": [
{
"ServiceCode": "string",
"ServiceName": "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.
- NextToken
-
If present, indicates that more output is available than is included in the current response. Use this value in the
NextToken
request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextToken
response element comes back asnull
.Type: String
Length Constraints: Maximum length of 2048.
Pattern:
^[a-zA-Z0-9/+]*={0,2}$
- Services
-
The list of the AWS service names and service codes.
Type: Array of ServiceInfo objects
Errors
For information about the errors that are common to all actions, see Common Errors.
- AccessDeniedException
-
You do not have sufficient permission to perform this action.
HTTP Status Code: 400
- IllegalArgumentException
-
Invalid input was provided.
HTTP Status Code: 400
- InvalidPaginationTokenException
-
Invalid input was provided.
HTTP Status Code: 400
- ServiceException
-
Something went wrong.
HTTP Status Code: 500
- TooManyRequestsException
-
Due to throttling, the request was denied. Slow down the rate of request calls, or request an increase for this quota.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: