logs
Creates, updates, deletes, gets or lists a logs resource.
Overview
| Name | logs |
| Type | Resource |
| Id | cloudflare.radar.logs |
Fields
The following fields are returned by SELECT queries:
- get
- list
Successful response.
| Name | Datatype | Description |
|---|---|---|
certificateLog | object |
Successful response.
| Name | Datatype | Description |
|---|---|---|
api | string | The API standard that the certificate log follows. (RFC6962, STATIC) |
description | string | A brief description of the certificate log. |
endExclusive | string (date-time) | The end date and time for when the log will stop accepting certificates. |
operator | string | The organization responsible for operating the certificate log. |
slug | string | A URL-friendly, kebab-case identifier for the certificate log. |
startInclusive | string (date-time) | The start date and time for when the log starts accepting certificates. |
state | string | The current state of the certificate log. More details about log states can be found here: https://googlechrome.github.io/CertificateTransparency/log_states.html (USABLE, PENDING, QUALIFIED, READ_ONLY, RETIRED, REJECTED) |
stateTimestamp | string (date-time) | Timestamp of when the log state was last updated. |
url | string | The URL for the certificate log. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | log_slug | format | Retrieves the requested certificate log information. |
list | select | limit, offset, format | Retrieves a list of certificate logs. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
log_slug | string | Certificate log slug. |
format | string | Format in which results will be returned. |
limit | integer | Limits the number of objects returned in the response. |
offset | integer | Skips the specified number of objects before fetching the results. |
SELECT examples
- get
- list
Retrieves the requested certificate log information.
SELECT
certificateLog
FROM cloudflare.radar.logs
WHERE log_slug = '{{ log_slug }}' -- required
AND format = '{{ format }}'
;
Retrieves a list of certificate logs.
SELECT
api,
description,
endExclusive,
operator,
slug,
startInclusive,
state,
stateTimestamp,
url
FROM cloudflare.radar.logs
WHERE limit = '{{ limit }}'
AND offset = '{{ offset }}'
AND format = '{{ format }}'
;