调用ListListenerCertificates查询HTTPS和QUIC监听证书列表,包含扩展证书和监听默认证书。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ListListenerCertificates |
系统规定的参数。取值:ListListenerCertificates。 |
NextToken | String | 否 | FFmyTO70tTpLG6I3FmYAXGKPd**** |
是否拥有下一次查询的令牌(Token)。取值:
|
MaxResults | Integer | 否 | 50 |
本次读取的最大数据记录。取值范围:1~100。入参为空时,默认值为20。 |
ListenerId | String | 是 | lsr-bp1bpn0kn908w4nbw**** |
监听ID。HTTPS和QUIC监听有效。 |
CertificateType | String | 否 | Server |
证书类型。取值:Ca或Server。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
MaxResults | Integer | 50 |
本次请求所返回的最大记录条数。 |
NextToken | String | FFmyTO70tTpLG6I3FmYAXGKPd**** |
是否拥有下一次查询的令牌(Token)。取值:
|
RequestId | String | 365F4154-92F6-4AE4-92F8-7FF34B540710 |
请求ID。 |
TotalCount | Integer | 1000 |
本次请求条件下的数据总量。 |
Certificates | Array of CertificateModel |
证书列表。 |
|
CertificateId | String | 12315790343_166f8204689_1714763408_70998**** |
证书ID,当前仅支持服务器证书。 |
IsDefault | Boolean | true |
是否为监听默认证书。取值:
|
Status | String | Associating |
证书与监听关联的状态。取值:
|
CertificateType | String | Server |
证书类型。 |
示例
请求示例
http(s)://[Endpoint]/?Action=ListListenerCertificates
&NextToken=FFmyTO70tTpLG6I3FmYAXGKPd****
&MaxResults=50
&ListenerId=lsr-bp1bpn0kn908w4nbw****
&CertificateType=Server
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<ListListenerCertificatesResponse>
<MaxResults>50</MaxResults>
<NextToken>FFmyTO70tTpLG6I3FmYAXGKPd****</NextToken>
<RequestId>365F4154-92F6-4AE4-92F8-7FF34B540710</RequestId>
<TotalCount>1000</TotalCount>
<Certificates>
<CertificateId>12315790343_166f8204689_1714763408_70998****</CertificateId>
<IsDefault>true</IsDefault>
<Status>Associating</Status>
<CertificateType>Server</CertificateType>
</Certificates>
</ListListenerCertificatesResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"MaxResults" : 50,
"NextToken" : "FFmyTO70tTpLG6I3FmYAXGKPd****",
"RequestId" : "365F4154-92F6-4AE4-92F8-7FF34B540710",
"TotalCount" : 1000,
"Certificates" : {
"CertificateId" : "12315790343_166f8204689_1714763408_70998****",
"IsDefault" : true,
"Status" : "Associating",
"CertificateType" : "Server"
}
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | OperationDenied.HttpListenerNotSupport | The operation is not allowed because of %s. | 操作被拒绝,原因是%s。 |
404 | ResourceNotFound.Listener | The specified resource %s is not found. | 资源%s不存在。 |
访问错误中心查看更多错误码。