获取一个Keyless server配置。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| SiteId |
integer |
是 |
站点 ID,可通过调用 ListSites 接口获取。 |
5407498413**** |
| Id |
string |
是 |
Keyless server ID。 |
baba39055622c008b90285a8838e**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| SiteId |
integer |
站点 ID。 |
123456**** |
| SiteName |
string |
站点名称。 |
example.com |
| Id |
string |
Keyless server ID。 |
baba39055622c008b90285a8838e**** |
| Name |
string |
Keyless server 名称。 |
example |
| Host |
string |
Keyless server 主机名。 |
example.com |
| Port |
integer |
Keyless server 端口。取值范围:1~65535。 |
443 |
| Verify |
boolean |
是否校验 Keyless server 服务端证书,默认 false。 枚举值:
|
true |
| CaCertificate |
string |
用于校验 Keyless server 服务端证书的 CA 证书,当 Verify 为 true 时有效。 |
-----BEGIN CERTIFICATE-----**** |
| ClientCertificate |
string |
客户端证书,需要和客户端私钥成对出现。 |
-----BEGIN CERTIFICATE-----**** |
| ClientPrivateKey |
string |
客户端私钥,需要和客户端证书成对出现。 |
-----BEGIN RSA PRIVATE KEY-----**** |
| CreateTime |
string |
创建时间。 |
2024-03-11T01:23:21Z |
| UpdateTime |
string |
修改时间。 |
2025-03-13T02:13:28Z |
| RequestId |
string |
请求 ID。 |
3558df77-8a7a-4060-a900-2d794940**** |
示例
正常返回示例
JSON格式
{
"SiteId": 0,
"SiteName": "example.com",
"Id": "baba39055622c008b90285a8838e****",
"Name": "example",
"Host": "example.com",
"Port": 443,
"Verify": true,
"CaCertificate": "-----BEGIN CERTIFICATE-----****",
"ClientCertificate": "-----BEGIN CERTIFICATE-----****",
"ClientPrivateKey": "-----BEGIN RSA PRIVATE KEY-----****",
"CreateTime": "2024-03-11T01:23:21Z\n",
"UpdateTime": "2025-03-13T02:13:28Z",
"RequestId": "3558df77-8a7a-4060-a900-2d794940****"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | MissingSiteId | Required parameter SiteId missing. Specify SiteId and try again. | 缺少必填参数SiteId,请指定SiteId参数后重试。 |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | 调用服务失败,请稍后重试或联系客服咨询详情。 |
| 400 | Id.MissingParameter | The parameter Id is required. | 缺少必填参数Id。 |
| 403 | Unauthorized.InvalidTime | The specified authentication time is invalid. | 您输入的鉴权时间参数无效,请检查参数值后重试。 |
| 403 | Unauthorized.InvalidToken | Token authentication failed. | 您输入的token无效,请检查并输入正确的token后进行重试。 |
| 404 | Certificate.NotFound | The specified certificate does not exist. | 指定的证书不存在。 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。