Skip to main content
GET
/
cdn
/
sslData
Python
from gcore import Gcore

client = Gcore(
    api_key="My API Key",
)
ssl_detail_list = client.cdn.certificates.list()
print(ssl_detail_list)
[
  {
    "id": 42,
    "deleted": false,
    "cert_issuer": "Some certification center",
    "cert_subject_cn": "mydomain.name",
    "cert_subject_alt": "<string>",
    "validity_not_before": "2016-09-17T18:06:01Z",
    "validity_not_after": "2017-08-21T11:02:00Z",
    "sslCertificateChain": "<string>",
    "hasRelatedResources": true,
    "name": "Some certificate",
    "automated": false
  }
]

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Query Parameters

automated
boolean

How the SSL certificate was issued.

Possible values:

  • true – Certificate was issued automatically.
  • false – Certificate was added by a user.
validity_not_after_lte
string

Date and time when the certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)

Response will contain only certificates valid until the specified time.

resource_id
integer

CDN resource ID for which certificates are requested.

Response

200 - application/json

Successful.

id
integer

SSL certificate ID.

Example:

42

deleted
boolean

Defines whether the certificate has been deleted. Parameter is deprecated.

Possible values:

  • true - Certificate has been deleted.
  • false - Certificate has not been deleted.
Example:

false

cert_issuer
string

Name of the certification center issued the SSL certificate.

Example:

"Some certification center"

cert_subject_cn
string

Domain name that the SSL certificate secures.

Example:

"mydomain.name"

cert_subject_alt
string

Alternative domain names that the SSL certificate secures.

validity_not_before
string

Date when certificate become valid (ISO 8601/RFC 3339 format, UTC.)

Example:

"2016-09-17T18:06:01Z"

validity_not_after
string

Date when certificate become untrusted (ISO 8601/RFC 3339 format, UTC.)

Example:

"2017-08-21T11:02:00Z"

sslCertificateChain
string

Parameter is deprecated.

Defines whether the SSL certificate is used by a CDN resource.

Possible values:

  • true - Certificate is used by a CDN resource.
  • false - Certificate is not used by a CDN resource.
Example:

true

name
string

SSL certificate name.

Example:

"Some certificate"

automated
boolean

How the SSL certificate was issued.

Possible values:

  • true - Certificate was issued automatically.
  • false - Certificate was added by a use.
Example:

false

I