sslkey_expirations

GET

Retrieves SSL certificate expiration information.

Auth. Required:

Yes

Roles Required:

“admin”

Permissions Required:

ACME:READ

Response Type:

Array

Request Structure

Table 598 Request Query Parameters

Name

Required

Description

days

no

Return only the expiration information for SSL certificates expiring in the next given number of days.

#1482 Request Example
GET /api/5.0/sslkey_expirations?days=30 HTTP/1.1
Host: trafficops.infra.ciab.test
Accept: */*
Connection: keep-alive
Cookie: mojolicious=...

Response Structure

deliveryservice:

The xml_id for the Delivery Service corresponding to this SSL certificate.

cdn:

The ID for the CDN corresponding to this SSL certificate.

provider:

The provider of this SSL certificate, generally the name of the Certificate Authority or the ACME account.

expiration:

The expiration date of this SSL certificate.

federated:

A boolean indicating if this SSL certificate is use in a federated Delivery Service.

#1483 Response Example
HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, Set-Cookie, Cookie
Access-Control-Allow-Methods: POST,GET,OPTIONS,PUT,DELETE
Access-Control-Allow-Origin: *
Content-Encoding: gzip
Content-Type: application/json
Permissions-Policy: interest-cohort=()
Set-Cookie: mojolicious=...; Path=/; Expires=Mon, 07 Jun 2021 22:52:20 GMT; Max-Age=3600; HttpOnly
Vary: Accept-Encoding
X-Server-Name: traffic_ops_golang/
Date: Mon, 07 Jun 2021 21:52:20 GMT
Content-Length: 384

{ "response": [
    {
        "deliveryservice": "foo1",
        "cdn": "cdn1",
        "provider": "Self Signed",
        "expiration": "2022-08-02T15:38:06-06:00",
        "federated": false
    },
    {
        "deliveryservice": "foo2",
        "cdn": "cdn2",
        "provider": "Lets Encrypt",
        "expiration": "2022-07-12T12:14:00-06:00",
        "federated": true
    }
]}