Queries the server certificates in a region.
Operation description
For security reasons, only the fingerprints and names of server certificates are returned. The content of server certificates and private keys is 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 where the CLB instance is deployed. You can call the DescribeRegions operation to query the most recent region list. Note
If the endpoint of the selected region is slb.aliyuncs.com, you must specify |
cn-hangzhou |
| ServerCertificateId |
string |
No |
The server certificate ID. |
12315790*******_166f8204689_1714763408_709981430 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-atstuj3rtop**** |
| Tag |
array<object> |
No |
The tags. |
|
|
object |
No |
The tags. |
||
| Key |
string |
No |
The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string. The tag key must be 1 to 64 characters in length and cannot start with |
test |
| Value |
string |
No |
The tag value of the resource. You can specify up to 20 tag values. The tag value cannot be an empty string. The tag value can be up to 128 characters in length and cannot start with |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| ServerCertificates |
object |
||
| ServerCertificate |
array<object> |
The server certificates. |
|
|
array<object> |
|||
| CreateTimeStamp |
integer |
The timestamp when the server certificate was uploaded. |
1504147745000 |
| AliCloudCertificateName |
string |
The name of the server certificate from Alibaba Cloud Certificate Management Service. |
testcertkey |
| ExpireTime |
string |
The time when the server certificate expires. |
2023-01-26T23:59:59Z |
| CreateTime |
string |
The time when the server certificate was uploaded. |
2021-08-31T02:49:05Z |
| ServerCertificateId |
string |
The server certificate ID. |
123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02 |
| ExpireTimeStamp |
integer |
The timestamp when the server certificate expires. |
15041477450 |
| RegionId |
string |
The region ID 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 of the server certificate. The domain name is specified in the |
www.example.com |
| ResourceGroupId |
string |
The resource group ID. |
rg-atstuj3rtop**** |
| IsAliCloudCertificate |
integer |
Indicates whether the server certificate is from Alibaba Cloud Certificate Management Service. Valid values:
|
0 |
| AliCloudCertificateId |
string |
The ID of the server certificate from Alibaba Cloud Certificate Management Service. |
7309********_15d97e7709a_71445759hr_789289731 |
| Tags |
object |
||
| Tag |
array<object> |
The tags. |
|
|
object |
The tag value. |
||
| TagValue |
string |
The tag value. |
1 |
| TagKey |
string |
The tag keys of the resource. |
test |
| SubjectAlternativeNames |
object |
||
| SubjectAlternativeName |
array |
The alternative domain names of the server certificate. The alternative domain names are specified in the Subject Alternative Name field of the server certificate. |
|
|
string |
The alternative domain names of the server certificate. The alternative domain names are specified in 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. | |
| 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.