Skip to main content

audit_ssh_settings

Creates, updates, deletes, gets or lists an audit_ssh_settings resource.

Overview

Nameaudit_ssh_settings
TypeResource
Idcloudflare.zero_trust.audit_ssh_settings

Fields

The following fields are returned by SELECT queries:

Get Zero Trust SSH settings response.

NameDatatypeDescription
seed_idstringIdentify the seed ID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
created_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
public_keystringProvide 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_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectaccount_idRetrieve all Zero Trust Audit SSH and SSH with Access for Infrastructure settings for an account.
updatereplaceaccount_id, public_keyUpdate Zero Trust Audit SSH and SSH with Access for Infrastructure settings for an account.
rotate_seedexecaccount_idRotate 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.

SELECT examples

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 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 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
;