证书接口

1. 获取证书列表

GET https://open.cn-east-1.163yun.com/nlb?Action=GetCertificates&Version=2017-12-05

示例

请求:
GET https://open.cn-east-1.163yun.com/nlb?Action=GetCertificates&Version=2017-12-05

HEADER:
    Content-type: application/json
    

响应:
[
    {
        "Id": "fb643186-8020-4484-9b28-5c29d09f0434",
        "TenantId": "34493fd33b874583ac7b24c1f60138fd",
        "Name": "random1",
        "Createtime": 1504459206068,
        "Updatetime": 1504459206068,
        "Tag": null,
        "Meta": {
            "CommonName": "woyun",
            "Issuer": "woyun",
            "NotBefore": "2017-01-16 16:01:43",
            "NotAfter": "2027-01-14 16:01:43",
            "San": []
        },
        "Meta": "{}",
        "IsUsed": true,
        "FingerPrint": "35:DD:A1:DE:B6:50:94:37:36:C3:91:A3:6B:52:19:35:4A:C6:B2:1A"
    }
]

参数说明

  • http body

结果说明

字段字段名称
Id证书Id
TenantId租户ID
Createtime创建时间
Updatetime更新时间
Metajson
Meta->CommonName通用名称
Meta->Issuer使用者
Meta->NotBefore最早使用时间
Meta->NotAfter最晚使用时间
Meta->Sansubject alternative name
Tag标签
IsUsed是否被使用
FingerPrint证书签名/指纹

返回码

  • 403 权限错误
  • 500 内部错误

2. 删除证书

GET https://open.cn-east-1.163yun.com/nlb?Action=DeleteCertificate&CertId=04d29167-3ebe-49e6-8f79-ad8048f36ae1&Version=2017-12-05

示例

请求:
GET https://open.cn-east-1.163yun.com/nlb?Action=DeleteCertificate&Version=2017-12-05

HEADER:
    Content-type: application/json
    

响应:
无

参数说明

-http url参数

参数参数描述是否必选类型范围默认值
CertId证书Idstring--
  • http body

结果说明

返回码

  • 204 成功
  • 404 资源不存在
  • 403 权限错误
  • 500 内部错误

3. 同步证书

GET https://open.cn-east-1.163yun.com/nlb?Action=FetchCertificate&CertId=&Version=2017-12-05

描述

从证书中心到负载均衡

示例

请求:
GET https://open.cn-east-1.163yun.com/nlb?Action=FetchCertificate&CertId=04d29167-3ebe-49e6-8f79-ad8048f36ae1&Version=2017-12-05

HEADER:
    Content-type: application/json
    

响应:
    {
        "Id": "fb643186-8020-4484-9b28-5c29d09f0434",
        "TenantId": "34493fd33b874583ac7b24c1f60138fd",
        "Name": "random1",
        "Createtime": 1504459206068,
        "Updatetime": 1504459206068,
        "Tag": null,
        "Meta": {
            "CommonName": "woyun",
            "Issuer": "woyun",
            "NotBefore": "2017-01-16 16:01:43",
            "NotAfter": "2027-01-14 16:01:43",
            "San": []
        },
        "IsUsed": true,
        "FingerPrint": "35:DD:A1:DE:B6:50:94:37:36:C3:91:A3:6B:52:19:35:4A:C6:B2:1A"
    }

参数说明

  • http url
参数参数描述是否必选类型范围默认值
CertId证书Idstring--

结果说明

字段字段名称
Id证书Id
TenantId租户ID
Createtime创建时间
Updatetime更新时间
Metajson
Meta->CommonName通用名称
Meta->Issuer使用者
Meta->NotBefore最早使用时间
Meta->NotAfter最晚使用时间
Meta->Sansubject alternative name
Tag标签
IsUsed是否被使用
FingerPrint证书签名/指纹

返回码

  • 204 成功
  • 404 资源不存在
  • 403 权限错误
  • 500 内部错误