List SNIs Associated to a Specific Certificate
GET {{gateway}}/certificates/:certificateNameOrId/snis
List SNIs Associated to a Specific Certificate konghq
- An SNI object represents a many-to-one mapping of hostnames to a certificate. That is, a certificate object can have many hostnames associated with it; when Kong receives an SSL request, it uses the SNI field in the Client Hello to lookup the certificate object based on the SNI associated with the certificate.
- SNIs can be both tagged and filtered by tags.
Attributes | Mandatory | Type | Description |
---|---|---|---|
certificate name or id | required | path | The unique identifier or the name attribute of the Certificate whose SNIs are to be retrieved. When using this endpoint, only SNIs associated to the specified Certificate will be listed. |
RESPONSES
status: OK
{"data":[{"id":"147f5ef0-1ed6-4711-b77f-489262f8bff7","name":"my-sni","created_at":1422386534,"tags":["user-level","low-priority"],"certificate":{"id":"a3ad71a8-6685-4b03-a101-980a953544f6"}},{"id":"b87eb55d-69a1-41d2-8653-8d706eecefc0","name":"my-sni","created_at":1422386534,"tags":["admin","high-priority","critical"],"certificate":{"id":"4e8d95d4-40f2-4818-adcb-30e00c349618"}}],"next":"http://localhost:8001/snis?offset=6378122c-a0a1-438d-a5c6-efabae9fb969"}