查询指定地域的服务器证书列表。
接口说明
为了保证安全性,只返回证书的指纹和名称,不返回证书和私钥的内容。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
slb:DescribeServerCertificates |
list |
*ServerCertificate
|
|
无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
否 |
传统型负载均衡实例的地域。 您可以通过调用 DescribeRegions 接口查询地域 ID。 说明
当您所选地域的 Enpoint(服务地址)为 slb.aliyuncs.com 时, |
cn-hangzhou |
| ServerCertificateId |
string |
否 |
服务器证书 ID。 |
12315790*******_166f8204689_1714763408_709981430 |
| ResourceGroupId |
string |
否 |
资源组 ID。 |
rg-atstuj3rtop**** |
| Tag |
array<object> |
否 |
标签列表。 |
|
|
object |
否 |
标签列表。 |
||
| Key |
string |
否 |
资源的标签键。N 的取值范围:1~20。一旦输入该值,则不允许为空字符串。 最多支持 64 个字符,不能以 |
test |
| Value |
string |
否 |
资源的标签值。N 的取值范围:1~20。一旦输入该值,可以为空字符串。
最多支持 128 个字符,不能以 |
1 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| ServerCertificates |
object |
||
| ServerCertificate |
array<object> |
服务器证书列表。 |
|
|
array<object> |
|||
| CreateTimeStamp |
integer |
服务器证书上传的时间戳。 |
1504147745000 |
| AliCloudCertificateName |
string |
阿里云证书服务的服务器证书名称。 |
testcertkey |
| ExpireTime |
string |
过期时间。 |
2023-01-26T23:59:59Z |
| CreateTime |
string |
服务器证书上传的时间。 |
2021-08-31T02:49:05Z |
| ServerCertificateId |
string |
服务器证书 ID。 |
123157********_166f8204689_1714763408_709981430-cn-east-hangzhou-02 |
| ExpireTimeStamp |
integer |
过期时间戳。 |
15041477450 |
| RegionId |
string |
服务器证书的地域。 |
cn-hangzhou |
| ServerCertificateName |
string |
服务器证书名称。 |
slb |
| Fingerprint |
string |
服务器证书的指纹。 |
68:08:1a:f8:2c:97:69:a3:a1:e6:16:41:4b:ca:4f:5d:ee:a5:ef:0d |
| CommonName |
string |
域名,对应证书的 |
www.example.com |
| ResourceGroupId |
string |
企业资源组 ID。 |
rg-atstuj3rtop**** |
| IsAliCloudCertificate |
integer |
是否是阿里云证书服务中的证书:
|
0 |
| AliCloudCertificateId |
string |
阿里云证书服务的服务器证书 ID。 |
7309********_15d97e7709a_71445759hr_789289731 |
| Tags |
object |
||
| Tag |
array<object> |
资源标签。 |
|
|
object |
资源标签。 |
||
| TagValue |
string |
资源的标签值。 |
1 |
| TagKey |
string |
资源的标签键。 |
test |
| SubjectAlternativeNames |
object |
||
| SubjectAlternativeName |
array |
数组格式,返回证书的备用域名列表,对应证书的 |
|
|
string |
数组格式,返回证书的备用域名列表,对应证书的 |
["demo.aliyundoc.com","example.aliyundoc.com"] |
示例
正常返回示例
JSON格式
{
"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\"]"
]
}
}
]
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | Abs.ServerCertificateIdAndResourceGroupId.MissMatch | ServerCertificateId or ResourceGroupId miss match. | ServerCertificate ID或者ResourceGroup ID参数缺失。 |
| 400 | LocationServiceTimeout | Location service connection timeout. Please try again later. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。