ListCertificateAuthorityReplicas
Lists the replicas of a multi-Region private certificate authority (CA). Call this
operation in the Region of the primary CA, and specify the ARN of the primary CA. The
response does not include deleted replicas. We recommend using
pagination to ensure that the operation returns quickly and successfully. To retrieve
additional replicas, use the NextToken value from the response in a
subsequent request.
Request Syntax
{
"CertificateAuthorityArn": "string",
"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.
- CertificateAuthorityArn
-
The Amazon Resource Name (ARN) of the primary CA whose replicas you want to list. This must be of the form:
arn:aws:acm-pca:region:account:certificate-authority/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111Type: String
Length Constraints: Minimum length of 5. Maximum length of 200.
Pattern:
arn:[\w+=/,.@-]+:acm-pca:[\w+=/,.@-]*:[0-9]*:[\w+=,.@-]+(/[\w+=,.@-]+)*Required: Yes
- MaxResults
-
The maximum number of replicas to return on each page. If more replicas exist, the response includes a
NextTokenvalue that you can use in a subsequent request to retrieve them.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 1000.
Required: No
- NextToken
-
Use this parameter when paginating results in a subsequent request after you receive a response with truncated results. Set it to the value of the
NextTokenparameter from the response you just received.Type: String
Length Constraints: Minimum length of 1. Maximum length of 43739.
Required: No
Response Syntax
{
"NextToken": "string",
"Replicas": [
{
"Arn": "string",
"FailureReason": "string",
"Region": "string",
"Status": "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
-
When the list is truncated, the response includes this value. To retrieve the next page, pass it as the
NextTokenparameter in a subsequent request.Type: String
Length Constraints: Minimum length of 1. Maximum length of 43739.
- Replicas
-
Summary information about each replica of the primary CA.
Type: Array of Replica objects
Errors
For information about the errors that are common to all actions, see Common Error Types.
- InvalidArgsException
-
One or more of the specified arguments was not valid.
HTTP Status Code: 400
- InvalidArnException
-
The requested Amazon Resource Name (ARN) does not refer to an existing resource.
HTTP Status Code: 400
- InvalidNextTokenException
-
The token specified in the
NextTokenargument is not valid. Use the token returned from your previous call to ListCertificateAuthorities.HTTP Status Code: 400
- ResourceNotFoundException
-
A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot be found.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: