Retrieves certificate details, excluding the certificate body and private key.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cert:GetCertificateDetail |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| CertificateId |
integer |
Yes |
The certificate ID. |
18594156 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| InstanceId |
string |
The ID of the instance. |
cas_dv-cn-123 |
| CommonName |
string |
The common name. |
www.example.com |
| RequestId |
string |
The ID of the request. |
5979d897-d69f-4fc9-87dd-f3bb73c40b80 |
| Algorithm |
string |
The certificate algorithm. Valid values:
|
RSA |
| Domain |
string |
The domain names that are bound to the certificate. Multiple domain names are separated by commas (,). |
aliyundoc.com,example.aliyundoc.com |
| CertificateId |
integer |
The certificate ID. |
22559621 |
| CertificateName |
string |
The certificate name. |
123 |
| CertIdentifier |
string |
The global ID of the certificate, which is used in various Alibaba Cloud services. The format of the ID is |
21912069-cn-hangzhou |
| CertificateSource |
string |
The source of the certificate. Valid values:
|
BUY |
| CertificateStatus |
string |
The status of the certificate. Valid values:
|
issued |
| NotBefore |
integer |
The beginning of the validity period of the certificate. |
17321613180000 |
| NotAfter |
integer |
The end of the validity period of the certificate. |
17326613180000 |
| CompanyId |
integer |
The ID of the company profile that is associated with the certificate application. This parameter is empty for DV certificates. |
44211 |
| ContactId |
integer |
The ID of the contact. |
304066 |
| KeySize |
integer |
The key size.
|
2048 |
| SubjectAlternativeNames |
array |
The subject alternative names (SANs) of the certificate. |
|
|
string |
An SAN. |
aliyundoc.com |
|
| Serial |
string |
The serial number of the certificate. |
123 |
| ExistPrivateKey |
boolean |
Indicates whether a private key is available. Valid values:
|
true |
| UsingProductList |
array |
The list of cloud services in which the certificate is deployed. |
|
|
string |
The cloud service. |
CDN |
|
| FingerPrint |
string |
The fingerprint of the public key. |
123 |
| CertificateChainList |
array<object> |
The information about the certificate chain. |
|
|
object |
The information about the certificate chain. |
||
| Issuer |
string |
The issuer of the certificate chain. |
Digicert |
| Subject |
string |
The common name of the certificate chain. |
Digicert |
| RemainDay |
integer |
The remaining validity period of the certificate chain. |
10 |
| NotBefore |
integer |
The beginning of the validity period. |
17321613180000 |
| NotAfter |
integer |
The end of the validity period. |
17326613180000 |
| Issuer |
string |
The issuer of the certificate. |
Digicert |
| Tags |
array<object> |
The list of tags. |
|
|
object |
The list of tags. |
||
| TagKey |
string |
The tag key of the instance. You can specify 1 to 20 tag keys. The value cannot be an empty string. The value can be up to 64 characters in length, cannot start with |
test |
| TagValue |
string |
The tag value. |
test |
Examples
Success response
JSON format
{
"InstanceId": "cas_dv-cn-123",
"CommonName": "www.example.com",
"RequestId": "5979d897-d69f-4fc9-87dd-f3bb73c40b80",
"Algorithm": "RSA",
"Domain": "aliyundoc.com,example.aliyundoc.com",
"CertificateId": 22559621,
"CertificateName": "123",
"CertIdentifier": "21912069-cn-hangzhou",
"CertificateSource": "BUY",
"CertificateStatus": "issued",
"NotBefore": 17321613180000,
"NotAfter": 17326613180000,
"CompanyId": 44211,
"ContactId": 304066,
"KeySize": 2048,
"SubjectAlternativeNames": [
"aliyundoc.com"
],
"Serial": "123",
"ExistPrivateKey": true,
"UsingProductList": [
"CDN"
],
"FingerPrint": "123",
"CertificateChainList": [
{
"Issuer": "Digicert",
"Subject": "Digicert",
"RemainDay": 10,
"NotBefore": 17321613180000,
"NotAfter": 17326613180000
}
],
"Issuer": "Digicert",
"Tags": [
{
"TagKey": "test",
"TagValue": "test"
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.