audit_ssh_settings
Creates, updates, deletes, gets or lists an audit_ssh_settings resource.
Overview
| Name | audit_ssh_settings |
| Type | Resource |
| Id | cloudflare.zero_trust.audit_ssh_settings |
Fields
The following fields are returned by SELECT queries:
- list
Get Zero Trust SSH settings response.
| Name | Datatype | Description |
|---|---|---|
seed_id | string | Identify the seed ID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415) |
created_at | string (date-time) | (example: 2014-01-01T05:20:00.12345Z) |
public_key | string | Provide the Base64-encoded HPKE public key that encrypts SSH session logs. See https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/use-cases/ssh/ssh-infrastructure-access/#enable-ssh-command-logging. (example: 1pyl6I1tL7xfJuFYVzXlUW8uXXlpxegHXBzGCBKaSFA=) |
updated_at | string (date-time) | (example: 2014-01-01T05:20:00.12345Z) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | account_id | Retrieve all Zero Trust Audit SSH and SSH with Access for Infrastructure settings for an account. | |
update | replace | account_id, public_key | Update Zero Trust Audit SSH and SSH with Access for Infrastructure settings for an account. | |
rotate_seed | exec | account_id | Rotate the SSH account seed that generates the host key identity when connecting through the Cloudflare SSH Proxy. |
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. |
SELECT examples
- list
Retrieve all Zero Trust Audit SSH and SSH with Access for Infrastructure settings for an account.
SELECT
seed_id,
created_at,
public_key,
updated_at
FROM cloudflare.zero_trust.audit_ssh_settings
WHERE account_id = '{{ account_id }}' -- required
;
REPLACE examples
- update
Update Zero Trust Audit SSH and SSH with Access for Infrastructure settings for an account.
REPLACE cloudflare.zero_trust.audit_ssh_settings
SET
public_key = '{{ public_key }}'
WHERE
account_id = '{{ account_id }}' --required
AND public_key = '{{ public_key }}' --required
RETURNING
errors,
messages,
result,
success;
Lifecycle Methods
- rotate_seed
Rotate the SSH account seed that generates the host key identity when connecting through the Cloudflare SSH Proxy.
EXEC cloudflare.zero_trust.audit_ssh_settings.rotate_seed
@account_id='{{ account_id }}' --required
;