Queries the status of a private root or intermediate CA instance that you purchased in the Certificate Management Service console.
Operation description
Use this operation to query the status of a private CA instance by its ID. The status information includes the instance's status, the total number of certificates it can issue, and the number of certificates already issued.
Before you call this operation, purchase a private CA in the Certificate Management Service console. For more information, see Purchase a private CA.
QPS limits
This operation has a queries per second (QPS) limit of 10 for each user. If you exceed this limit, API calls are throttled, which can affect your business. Call this operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:GetCAInstanceStatus |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
No |
The ID of the private CA instance to query. Note
After you purchase a private CA instance in the Certificate Management Service console, you can go to the Private Certificates page and view the details of the instance to obtain its ID. |
cas-member-0hmi**** |
| Identifier |
string |
No |
The unique identifier of the client certificate or server-side certificate to query. Note
Call ListClientCertificate to query the unique identifiers of all client certificates and server-side certificates. |
160ae6bb538d538c70c01f81dcf2**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The object. |
||
| RequestId |
string |
The ID of the request. |
25589516-2A56-5159-AB88-4A1D9824E183 |
| InstanceStatusList |
array<object> |
The status details of the private CA instance. |
|
|
object |
The object. |
||
| CertTotalCount |
integer |
The number of certificates that the private CA instance can issue. If the private CA is a root CA (Type is ROOT), this parameter indicates the number of intermediate CA certificates that can be issued. If the private CA is an intermediate CA (Type is SUB_ROOT), this parameter indicates the total number of client certificates and server-side certificates that can be issued. |
10 |
| Status |
string |
The status of the private CA instance. Valid values:
|
USED |
| Type |
string |
The type of the private CA instance. Valid values:
|
ROOT |
| CertIssuedCount |
integer |
The number of certificates that the private CA instance has issued. |
1 |
| BeforeTime |
integer |
The issuance date of the private CA certificate. This value is a UNIX timestamp. Unit: milliseconds. Note
This parameter is returned only if Status is USED (the private CA instance is enabled) or REVOKE (the private CA instance is revoked). |
1635177600000 |
| Identifier |
string |
The unique identifier of the private CA certificate. Note
This parameter is returned only if Status is USED (the private CA instance is enabled) or REVOKE (the private CA instance is revoked). |
a7bb2dd212a2112128cd5cc9b753**** |
| AfterTime |
integer |
The expiration date of the private CA certificate. This value is a UNIX timestamp. Unit: milliseconds. Note
This parameter is returned only if Status is USED (the private CA instance is enabled) or REVOKE (the private CA instance is revoked). |
1792944000000 |
| InstanceId |
string |
The ID of the private CA instance. |
cas-member-0hmi**** |
| UseExpireTime |
integer |
The expiration date of the private CA instance. This value is a UNIX timestamp. Unit: milliseconds. Note
This parameter corresponds to the subscription duration that you selected for the Private Certificate Authority (PCA) service when you purchased the instance. |
1637251200000 |
Examples
Success response
JSON format
{
"RequestId": "25589516-2A56-5159-AB88-4A1D9824E183",
"InstanceStatusList": [
{
"CertTotalCount": 10,
"Status": "USED",
"Type": "ROOT",
"CertIssuedCount": 1,
"BeforeTime": 1635177600000,
"Identifier": "a7bb2dd212a2112128cd5cc9b753****",
"AfterTime": 1792944000000,
"InstanceId": "cas-member-0hmi****",
"UseExpireTime": 1637251200000
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.