## 8\. Certficate *地址*:/certificates *说明*:certificates。 ### 8.1 请求方法 | 序号 | NAME | 请求URI | 请求body | 说明 | | --- | --- | --- | --- | --- | | 1 | POST | /certificates | {...} | 新增certificates | | 2 | GET | /certificates | | 查询certficates列表 | | 3 | GET | /certificates/{certificate id} | | 获取单个Certficates信息 | | 4 | PATCH | /certificates/{certificate id} | {...} | 更新certficates | | 5 | PUT | /certificates/{certificate id} | {...} | 新增/更新certficates | | 6 | DELETE | /certificates/{certificate id} | | 删除certficates | ### 8.2 body 请求参数 | 序号 | 参数名 | 可选 | 默认值 | 说明 | 示例 | | --- | --- | --- | --- | --- | --- | | 1 | cert | 必选 | | PEM-encoded public certificate of the SSL key pair. | | | 2 | key | 必选 | | PEM-encoded private key of the SSL key pair. | | | 3 | tags | 可选 | | 标签 | | | 4 | snis | | | An array of zero or more hostnames to associate with this certificate as SNIs. This is a sugar parameter that will, under the hood, create an SNI object and associate it with this certificate for your convenience. To set this attribute this certificate must have a valid private key associated with it. | | ### 8.3 数据样例 body 请求参数 ``` { "id": "ce44eef5-41ed-47f6-baab-f725cecf98c7", "created_at": 1422386534, "cert": "-----BEGIN CERTIFICATE-----...", "key": "-----BEGIN RSA PRIVATE KEY-----...", "tags": ["user-level", "low-priority"] } ``` certficate列表 ``` { "data": [{ "id": "02621eee-8309-4bf6-b36b-a82017a5393e", "created_at": 1422386534, "cert": "-----BEGIN CERTIFICATE-----...", "key": "-----BEGIN RSA PRIVATE KEY-----...", "tags": ["user-level", "low-priority"] }, { "id": "66c7b5c4-4aaf-4119-af1e-ee3ad75d0af4", "created_at": 1422386534, "cert": "-----BEGIN CERTIFICATE-----...", "key": "-----BEGIN RSA PRIVATE KEY-----...", "tags": ["admin", "high-priority", "critical"] }], "next": "http://localhost:8001/certificates?offset=6378122c-a0a1-438d-a5c6-efabae9fb969" } ```