Logpush

logpush

Logpush

Datasets

logpush.datasets

logpush.datasets.fields

Methods

List Fields -> Envelope<unknown>
get/{account_or_zone}/{account_or_zone_id}/logpush/datasets/{dataset_id}/fields

Lists all fields available for a dataset. The response result is an object with key-value pairs, where keys are field names, and values are descriptions.

logpush.datasets.jobs

Methods

List Logpush Jobs For A Dataset -> Envelope<Array<>>
get/{account_or_zone}/{account_or_zone_id}/logpush/datasets/{dataset_id}/jobs

Lists Logpush jobs for an account or zone for a dataset.

logpush.edge

Methods

Create Instant Logs Job -> Envelope<>
post/zones/{zone_id}/logpush/edge

Creates a new Instant Logs job for a zone.

List Instant Logs Jobs -> Envelope<Array<>>
get/zones/{zone_id}/logpush/edge

Lists Instant Logs jobs for a zone.

Domain types

InstantLogpushJob = { destination_conf, fields, filter, 2 more... }

logpush.jobs

Methods

Create Logpush Job -> Envelope<>
post/{account_or_zone}/{account_or_zone_id}/logpush/jobs

Creates a new Logpush job for an account or zone.

Delete Logpush Job -> Envelope<{ id }>
delete/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}

Deletes a Logpush job.

Get Logpush Job Details -> Envelope<>
get/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}

Gets the details of a Logpush job.

List Logpush Jobs -> SinglePage<>
get/{account_or_zone}/{account_or_zone_id}/logpush/jobs

Lists Logpush jobs for an account or zone.

Update Logpush Job -> Envelope<>
put/{account_or_zone}/{account_or_zone_id}/logpush/jobs/{job_id}

Updates a Logpush job.

Domain types

LogpushJob = { id, dataset, destination_conf, 12 more... }
OutputOptions = { batch_prefix, batch_suffix, CVE-2021-4428, 9 more... }
Logpush

Ownership

logpush.ownership

Methods

Get Ownership Challenge -> Envelope<{ filename, message, valid }>
post/{account_or_zone}/{account_or_zone_id}/logpush/ownership

Gets a new ownership challenge sent to your destination.

Validate Ownership Challenge -> Envelope<>
post/{account_or_zone}/{account_or_zone_id}/logpush/ownership/validate

Validates ownership challenge of the destination.

Domain types

OwnershipValidation = { valid }
Logpush

Validate

logpush.validate

Methods

Check Destination Exists -> Envelope<{ exists }>
post/{account_or_zone}/{account_or_zone_id}/logpush/validate/destination/exists

Checks if there is an existing job with a destination.

Validate Origin -> Envelope<{ message, valid }>
post/{account_or_zone}/{account_or_zone_id}/logpush/validate/origin

Validates logpull origin with logpull_options.

Security

The preferred authorization scheme for interacting with the Cloudflare API. Create a token.

Example: Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY

Accepted Permissions (at least one required)

Logs Write

Parameters
account_id: string
Optional

The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id: string
Optional

The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

Response fields
errors: Array<>
messages: Array<>
success: true

Whether the API call was successful

result: { message, valid }
Optional
Request example
200Example