gateway_ca
Creates, updates, deletes, gets or lists a gateway_ca resource.
Overview
| Name | gateway_ca |
| Type | Resource |
| Id | cloudflare.zero_trust.gateway_ca |
Fields
The following fields are returned by SELECT queries:
- list
List SSH Certificate Authorities (CA) response
| Name | Datatype | Description |
|---|---|---|
id | string | The key ID of this certificate. |
public_key | string | The public key of this certificate. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Lists SSH Certificate Authorities (CA). | |
create | insert | account_id | Adds a new SSH Certificate Authority (CA). | |
delete | delete | certificate_id, account_id | Deletes an SSH Certificate Authority. |
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 |
|---|---|---|
account_id | string | The Cloudflare account ID. |
certificate_id | string | The certificate ID. |
SELECT examples
- list
Lists SSH Certificate Authorities (CA).
SELECT
id,
public_key
FROM cloudflare.zero_trust.gateway_ca
WHERE account_id = '{{ account_id }}' -- required
;
INSERT examples
- create
- Manifest
Adds a new SSH Certificate Authority (CA).
INSERT INTO cloudflare.zero_trust.gateway_ca (
account_id
)
SELECT
'{{ account_id }}'
RETURNING
errors,
messages,
result,
success
;
# Description fields are for documentation purposes
- name: gateway_ca
props:
- name: account_id
value: "{{ account_id }}"
description: Required parameter for the gateway_ca resource.
DELETE examples
- delete
Deletes an SSH Certificate Authority.
DELETE FROM cloudflare.zero_trust.gateway_ca
WHERE certificate_id = '{{ certificate_id }}' --required
AND account_id = '{{ account_id }}' --required
;