获取TLS证书API
更新时间:2024-11-07
请求说明
通过调用API来获取Redis的TLS证书。
请求结构
GET /v1/instance/{instanceId}/tls
Host: redis.{region}.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 参数类型 | 参数位置 | 是否必须 | 描述 |
---|---|---|---|---|
instanceId | String | Path | 是 | 集群ID |
返回头域
除公共头部,无其它特殊头部。
返回参数
参数名称 | 参数类型 | 描述 |
---|---|---|
status | String | ca证书状态:tocreate(创建中)、inuse(使用中)、todelete(删除中)、deleted(已删除、已失效) |
createTime | String | 创建时间。 |
expireTime | String | 过期时间。 |
ca | String | ca证书。 |
请求示例
GET /v1/instance/scs-bj-elahimuhxjia/tls HTTP/1.1
HOST: redis.bj.baidubce.com
Content-Type: application/json
Authorization: bce-auth-v1/0255cb4f78f140728045b551d6a317ec/2018-11-13T05:46:05Z/1800/host/70268ec1d0491c86e67f345ad3aee4cf7f8924dade9b7f3e2f1a95814a00c129
返回示例
HTTP/1.1 200 OK
x-bce-request-id: 7869616F-7A68-6977-656E-406261696475
Content-Type: application/json
{
"status": "inuse",
"createTime": "2024-10-25T03:28:16Z",
"expireTime": "2025-10-25T03:28:16Z",
"ca": "-----BEGIN CERTIFICATE-----\nMIIEnTCCAoWgAwIBAgICBVAwDQYJKoZIhvcNAQELBQAwADAeFw0yNDEwMjUwMzI4\nMTZaFw00NDEwMjUwMzI4MTZaMAAwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIK\nAoICAQDJFfSiMhLGhzpe5w6FGzA4SdT34J1A8YiKFXHzkFb8RPAH8QM6EzYWNnAp\nTWRCFzLRlR4zQYMvXS7hAkdODimlOvqhZ26Z4CYTgc9EsLGCKPXeH6YI4252ltHm\nU4zfuICvnKKU6C63PFxkVUzHy/vqnpV6UE6h37EhJ6KMKORb49hhZH7vswQH4sd8\nYh5i+mxoTsRssreY0amTGaVudaRjGrDr/S6fml9o+tbY04rfsEpGW+3WhAaDmFyA\nqHUqhYkh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