DescribeServerCertificates
Queries the server certificates in a specified region.
Operation description
To ensure security, only the fingerprint and name of the certificate are returned. The content of the certificate and the private key are not returned.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:DescribeServerCertificates |
list |
*ServerCertificate
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region of the Classic Load Balancer instance. You can invoke the DescribeRegions operation to query region IDs. Note
If the endpoint of the selected region is slb.aliyuncs.com, |
cn-hangzhou |
| ServerCertificateId |
string |
No |
The ID of the server certificate. |
12315790*******_166f8204689_1714763408_709981430 |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-atstuj3rtop**** |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
The list of tags. |
||
| Key |
string |
No |
The tag key of the resource. Valid values of N: 1 to 20. If you specify this parameter, it cannot be an empty string. The tag key can be up to 64 characters in length. It cannot start with |
test |
| Value |
string |
No |
The tag value of the resource. Valid values of N: 1 to 20. If you specify this parameter, it can be an empty string.
The tag value can be up to 128 characters in length. It cannot start with |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| ServerCertificates |
object |
||
| ServerCertificate |
array<object> |
The list of server certificates. |
|
|
array<object> |
|||
| CreateTimeStamp |
integer |
The timestamp when the server certificate was uploaded. |
1504147745000 |
| AliCloudCertificateName |
string |
The name of the server certificate in Alibaba Cloud Certificate Management Service. |
testcertkey |
| ExpireTime |
string |
The expiration time. The time is displayed in the |
2023-01-26T23:59:59Z |
| CreateTime |
string |
The time when the server certificate was uploaded. The time is displayed in the |
2021-08-31T02:49:05Z |
| ServerCertificateId |
string |
The ID of the server certificate. |
123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02 |
| ExpireTimeStamp |
integer |
The expiration timestamp. |
15041477450 |
| RegionId |
string |
The region of the server certificate. |
cn-hangzhou |
| ServerCertificateName |
string |
The name of the server certificate. |
slb |
| Fingerprint |
string |
The fingerprint of the server certificate. |
68:08:1a:f8:2c:97:69:a3:a1:e6:16:41:4b:ca:4f:5d:ee:a5:ef:0d |
| CommonName |
string |
The domain name, which corresponds to the |
www.example.com |
| ResourceGroupId |
string |
The ID of the enterprise resource group. |
rg-atstuj3rtop**** |
| IsAliCloudCertificate |
integer |
Indicates whether the certificate is from Alibaba Cloud Certificate Management Service. Valid values:
|
0 |
| AliCloudCertificateId |
string |
The ID of the server certificate in Alibaba Cloud Certificate Management Service. |
7309********_15d97e7709a_71445759hr_789289731 |
| Tags |
object |
||
| Tag |
array<object> |
The tags of the resource. |
|
|
object |
The tags of the resource. |
||
| TagValue |
string |
The tag value of the resource. |
1 |
| TagKey |
string |
The tag key of the resource. |
test |
| SubjectAlternativeNames |
object |
||
| SubjectAlternativeName |
array |
The list of alternative domain names of the certificate in array format, which corresponds to the |
|
|
string |
The list of alternative domain names of the certificate in array format, which corresponds to the |
["demo.aliyundoc.com","example.aliyundoc.com"] |
Examples
Success response
JSON format
{
"RequestId": "365F4154-92F6-4AE4-92F8-7FF34B540710",
"ServerCertificates": {
"ServerCertificate": [
{
"CreateTimeStamp": 1504147745000,
"AliCloudCertificateName": "testcertkey",
"ExpireTime": "2023-01-26T23:59:59Z",
"CreateTime": "2021-08-31T02:49:05Z",
"ServerCertificateId": "123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02",
"ExpireTimeStamp": 15041477450,
"RegionId": "cn-hangzhou",
"ServerCertificateName": "slb",
"Fingerprint": "68:08:1a:f8:2c:97:69:a3:a1:e6:16:41:4b:ca:4f:5d:ee:a5:ef:0d",
"CommonName": "www.example.com",
"ResourceGroupId": "rg-atstuj3rtop****",
"IsAliCloudCertificate": 0,
"AliCloudCertificateId": "7309********_15d97e7709a_71445759hr_789289731",
"Tags": {
"Tag": [
{
"TagValue": "1",
"TagKey": "test"
}
]
},
"SubjectAlternativeNames": {
"SubjectAlternativeName": [
"[\"demo.aliyundoc.com\",\"example.aliyundoc.com\"]"
]
}
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Abs.ServerCertificateIdAndResourceGroupId.MissMatch | ServerCertificateId or ResourceGroupId miss match. | The ServerCertificate ID or ResourceGroup ID parameter is missing. |
| 400 | LocationServiceTimeout | Location service connection timeout. Please try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.