GetInstanceDetail
Queries the details of an instance.
Operation description
Queries the status information of a private CA instance that you purchased through the SSL Certificate Service console by using the ID of the private CA instance. The information includes the status of the CA instance, the number of certificates included, and the number of issued certificates.
Before you invoke this operation, you must purchase a private CA through the digital certificate management service console. For more information, see Purchase a private CA.
QPS limit
The QPS limit for a single user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Make API calls at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:GetInstanceDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
cas_dv-cn-123 |
The InstanceId is obtained from ListInstances after purchasing a certificate package through BSS. You must first complete the purchase in the Certificate Management Service console or through the BSS API. For instance IDs in the cas-upload-* format, you must call the UploadUserCertificate operation to upload the certificate and obtain the instance ID.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AutoReissue |
string |
Specifies whether automatic hosting is enabled. Valid values:
|
enable |
| AutoReissueFlag |
integer |
Indicates whether the current version includes automatic hosting. Valid values:
|
1 |
| AutoRenewalStatus |
string |
The auto-renewal status. Valid values:
|
enable |
| AverageWaitingTime |
string |
The average waiting time for issuing a certificate of this specification, in seconds. |
120 |
| Brand |
string |
The CA brand. Valid values: WoSign, CFCA, DigiCert, GeoTrust, GlobalSign, vTrus, and Alibaba. |
DigiCert |
| CertIdentifier |
string |
The global certificate ID. The format is Certificate ID + "-" + Site region ID. This ID is commonly used across various Alibaba Cloud services. For the China site, the format is Certificate ID + "-cn-hangzhou". For the international site, the format is Certificate ID + "-ap-southeast-1". For example, if the certificate ID is 123, the CertIdentifier for the China site is "123-cn-hangzhou", and for the international site, it is "123-ap-southeast-1". |
22783111-cn-hangzhou |
| CertificateId |
integer |
The ID of the certificate. |
1234567890 |
| CertificateName |
string |
The name of the instance. When a certificate is issued, this name is used as the default name of the certificate. |
123 |
| CertificateNotAfter |
integer |
The expiration time of the latest certificate. The value is a timestamp accurate to seconds. If no certificate is issued, this parameter is empty. |
1801324800000 |
| CertificateNotBefore |
integer |
The start time of the latest certificate. The value is a timestamp accurate to seconds. If no certificate is issued, this parameter is empty. |
1781568000000 |
| CertificateRevokeTime |
integer |
The revocation time of the latest certificate. The value is a timestamp accurate to seconds. |
1801324800000 |
| CertificateStatus |
string |
The status of the certificate. Valid values:
|
issued |
| CertificateType |
string |
The type of the certificate. Valid values: DV, OV, and EV. |
DV |
| City |
string |
The city where the company or organization of the user who purchased the certificate is located. This field is required when generating a CSR. Default value: Beijing. |
Beijing |
| CompanyId |
integer |
The ID of the company information. |
47305 |
| ContactIdList |
array |
The list of contact IDs. |
|
|
integer |
The ID of the contact. |
123 |
|
| CountryCode |
string |
The code of the country or region where the organization specified in the certificate is located. For example, CN indicates China, and US indicates the United States. This field is required when generating a CSR. Default value: CN. |
CN |
| Csr |
string |
The certificate signing request in PEM format. |
-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST----- |
| DeploymentResourceCount |
integer |
The number of deployed cloud service resources. |
30 |
| DeploymentUseCount |
integer |
The used quota for cloud server deployment. |
30 |
| DingGroupList |
array<object> |
The list of associated DingTalk groups for expert services. |
|
|
object |
The associated DingTalk group for expert services. |
||
| DingGroupInstanceId |
string |
The instance ID of the DingTalk group for expert services. |
123 |
| DingGroupName |
string |
The name of the DingTalk group for expert services. |
123 |
| DingGroupType |
string |
The type of the DingTalk group for expert services. Valid values:
|
remote |
| DingGroupUrl |
string |
The link to join the DingTalk group for expert services. |
https://123.com |
| Domain |
string |
The domain name bound to the certificate. |
example.com |
| DomainValidationList |
array<object> |
The list of domain names to be validated. |
|
|
object |
The domain name to be validated. |
||
| Cname |
string |
The CNAME record value for validation-free authorization. This value may be empty. |
123.com |
| CnameKey |
string |
The prefix for CNAME validation. |
abc |
| Domain |
string |
The domain name to be validated. |
example.com |
| RootDomain |
string |
The root domain name. |
example.com |
| ValidationKey |
string |
The host record. |
@ |
| ValidationType |
string |
The validation type. Valid values: TXT, HTTP, and CNAME. |
TXT |
| ValidationValue |
string |
The value of the host record for validation. |
123 |
| FullDomainCount |
integer |
The number of exact domain names. |
1 |
| GenerateCsrMethod |
string |
The method used to generate the CSR. Valid values:
|
online |
| InstanceEndTime |
integer |
The expiration time of the instance. The value is a timestamp accurate to seconds. If no certificate has been issued, this parameter is empty. |
1801324800000 |
| InstanceId |
string |
The ID of the instance. |
cas_dv-cn-123 |
| InstanceStartTime |
integer |
The start time of the instance. The value is a timestamp accurate to seconds. If no certificate has been issued, this parameter is empty. |
1801324800000 |
| InstanceType |
string |
The type of the instance. Valid values:
|
TEST |
| KeyAlgorithm |
string |
The algorithm of the certificate. Valid values:
|
RSA_2048 |
| MonitorExpandFlag |
integer |
Indicates whether the domain name monitoring quota can be expanded. Valid values:
|
1 |
| MonitorUseCount |
integer |
The used quota for domain name monitoring. |
10 |
| OrderEndTime |
integer |
The end time of the instance purchase. The value is a timestamp used to determine the purchase duration of the instance. |
1801324800000 |
| OrderProgress |
string |
The progress of the order. |
{ "orderProgress": [ { "certificateId": 12345, "certificateName": "example.com", "notBefore": 1727000000000, "notAfter": 1735000000000, "stages": [ { "name": "apply", "title": "apply", "status": "completed", "time": 1726990000000 }, { "name": "domainValidation", "title": "domainValidation", "status": "completed", "time": 1727000000000 }, { "name": "issue", "title": "issue", "status": "completed", "time": 1727000000000 } ] } ] } |
| OrderStartTime |
integer |
The start time of the instance purchase. The value is a timestamp accurate to seconds, used to determine the time limit for refunds. |
1801324800000 |
| PendingResult |
string |
The result returned by the CA during the last certificate operation. |
pending |
| Province |
string |
The province or region where the company is located. This field is required when generating a CSR. Default value: Beijing. |
Beijing |
| RequestId |
string |
The ID of the request. It is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot and locate issues. |
B2CE1D02-6D5E-56E5-A9BD-EE288255C7F9 |
| ResourceGroupId |
string |
The ID of the resource group. |
rg-aek****wia |
| Spec |
string |
The specifications of the purchased instance. |
ss.dv.t |
| Status |
string |
The instance status. Valid values:
|
inactive |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The list of tags. |
||
| TagKey |
string |
The key of the tag. |
test |
| TagValue |
string |
The value of the tag. |
test |
| TotalDeploymentCount |
integer |
The total quota for cloud server deployment. |
60 |
| TotalMonitorCount |
integer |
The total quota for domain name monitoring. |
80 |
| UpgradeStatus |
string |
The upgrade status of the instance. Valid values:
|
none |
| ValidationMethod |
string |
The validation method for the certificate application. Valid values:
|
DNS |
| VersionType |
string |
The version type. Valid values:
|
0 |
| WildcardDomainCount |
integer |
The number of wildcard domain names. |
0 |
Examples
Success response
JSON format
{
"AutoReissue": "enable",
"AutoReissueFlag": 1,
"AutoRenewalStatus": "enable",
"AverageWaitingTime": "120",
"Brand": "DigiCert",
"CertIdentifier": "22783111-cn-hangzhou",
"CertificateId": 1234567890,
"CertificateName": "123",
"CertificateNotAfter": 1801324800000,
"CertificateNotBefore": 1781568000000,
"CertificateRevokeTime": 1801324800000,
"CertificateStatus": "issued",
"CertificateType": "DV",
"City": "Beijing",
"CompanyId": 47305,
"ContactIdList": [
123
],
"CountryCode": "CN",
"Csr": "-----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST-----",
"DeploymentResourceCount": 30,
"DeploymentUseCount": 30,
"DingGroupList": [
{
"DingGroupInstanceId": "123",
"DingGroupName": "123",
"DingGroupType": "remote",
"DingGroupUrl": "https://123.com"
}
],
"Domain": "example.com",
"DomainValidationList": [
{
"Cname": "123.com",
"CnameKey": "abc",
"Domain": "example.com",
"RootDomain": "example.com",
"ValidationKey": "@",
"ValidationType": "TXT",
"ValidationValue": "123"
}
],
"FullDomainCount": 1,
"GenerateCsrMethod": "online",
"InstanceEndTime": 1801324800000,
"InstanceId": "cas_dv-cn-123",
"InstanceStartTime": 1801324800000,
"InstanceType": "TEST",
"KeyAlgorithm": "RSA_2048",
"MonitorExpandFlag": 1,
"MonitorUseCount": 10,
"OrderEndTime": 1801324800000,
"OrderProgress": "{\n \"orderProgress\": [\n {\n \"certificateId\": 12345,\n \"certificateName\": \"example.com\",\n \"notBefore\": 1727000000000,\n \"notAfter\": 1735000000000,\n \"stages\": [\n { \"name\": \"apply\", \"title\": \"apply\", \"status\": \"completed\", \"time\": 1726990000000 },\n { \"name\": \"domainValidation\", \"title\": \"domainValidation\", \"status\": \"completed\", \"time\": 1727000000000 },\n { \"name\": \"issue\", \"title\": \"issue\", \"status\": \"completed\", \"time\": 1727000000000 }\n ]\n }\n ]\n}",
"OrderStartTime": 1801324800000,
"PendingResult": "pending",
"Province": "Beijing",
"RequestId": "B2CE1D02-6D5E-56E5-A9BD-EE288255C7F9",
"ResourceGroupId": "rg-aek****wia",
"Spec": "ss.dv.t",
"Status": "inactive",
"Tags": [
{
"TagKey": "test",
"TagValue": "test"
}
],
"TotalDeploymentCount": 60,
"TotalMonitorCount": 80,
"UpgradeStatus": "none",
"ValidationMethod": "DNS",
"VersionType": "0",
"WildcardDomainCount": 0
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.