ListHsms
This is documentation for AWS CloudHSM Classic. For
more information, see AWS CloudHSM
Classic FAQs
For information about the current version of AWS
CloudHSM, see AWS CloudHSM
Retrieves the identifiers of all of the HSMs provisioned for the current customer.
This operation supports pagination with the use of the NextToken
member.
If more results are available, the NextToken
member of the response contains a
token that you pass in the next call to ListHsms
to retrieve the next set of
items.
Request Syntax
{
"NextToken": "string
"
}
Request Parameters
The request accepts the following data in JSON format.
- NextToken
-
The
NextToken
value from a previous call toListHsms
. Pass null if this is the first call.Type: String
Pattern:
[a-zA-Z0-9+/]*
Required: No
Response Syntax
{
"HsmList": [ "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.
Errors
For information about the errors that are common to all actions, see Common Errors.
- CloudHsmInternalException
-
Indicates that an internal error occurred.
HTTP Status Code: 500
- CloudHsmServiceException
-
Indicates that an exception occurred in the AWS CloudHSM service.
HTTP Status Code: 400
- InvalidRequestException
-
Indicates that one or more of the request parameters are not valid.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: