Skip to main content

cas

Creates, updates, deletes, gets or lists a cas resource.

Overview

Namecas
TypeResource
Idcloudflare.zero_trust.cas

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_by_accountinsertapp_id, account_idGenerates a new short-lived certificate CA and public key.
create_by_zoneinsertapp_id, zone_idGenerates a new short-lived certificate CA and public key.
delete_by_accountdeleteapp_id, account_idDeletes a short-lived certificate CA.
delete_by_zonedeleteapp_id, zone_idDeletes a short-lived certificate CA.

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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
app_idstringThe Access application ID.
zone_idstringThe Cloudflare zone ID.

INSERT examples

Generates a new short-lived certificate CA and public key.

INSERT INTO cloudflare.zero_trust.cas (
app_id,
account_id
)
SELECT
'{{ app_id }}',
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;

DELETE examples

Deletes a short-lived certificate CA.

DELETE FROM cloudflare.zero_trust.cas
WHERE app_id = '{{ app_id }}' --required
AND account_id = '{{ account_id }}' --required
;