Skip to main content

secrets_managers

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

Overview​

Namesecrets_managers
TypeResource
Idfivetran.external_secrets_managers.secrets_managers

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the External Secrets Manager instance. (example: lucky_tiger)
namestringThe name of the ESM instance (example: My AWS Secrets Manager)
configobjectProvider-specific configuration.
created_atstring (date-time)The timestamp when the ESM instance was created. (example: 2026-05-20T00:00:00Z)
is_hybrid_deploymentbooleanWhether this External Secrets Manager instance is compatible with Hybrid Deployment environments.
typestringThe ESM provider type (AWS_SECRET_MANAGER, AZURE_KEY_VAULT, HASHICORP_VAULT) (example: AWS_SECRET_MANAGER)
updated_atstring (date-time)The timestamp when the ESM instance was last updated. (example: 2026-05-20T00:00:00Z)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectesm_idReturns the details of an existing External Secrets Manager instance.
listselectcursor, limitReturns a list of all External Secrets Manager instances within your Fivetran account.
createinsertconfig, name, typeCreates a new External Secrets Manager instance within your Fivetran account.
updateupdateesm_id, configUpdates the configuration of an existing External Secrets Manager instance.
deletedeleteesm_idDeletes an External Secrets Manager instance from your Fivetran account. The instance must not be in use by any source connections or destinations.

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
esm_idstringThe unique identifier of the External Secrets Manager instance.
cursorstringPaging cursor, [read more about pagination](https:​//fivetran.com/docs/rest-api/pagination)
limitinteger (int32)Number of records to fetch per page. Accepts a number in the range 1..1000; the default value is 100.

SELECT examples​

Returns the details of an existing External Secrets Manager instance.

SELECT
id,
name,
config,
created_at,
is_hybrid_deployment,
type,
updated_at
FROM fivetran.external_secrets_managers.secrets_managers
WHERE esm_id = '{{ esm_id }}' -- required
;

INSERT examples​

Creates a new External Secrets Manager instance within your Fivetran account.

INSERT INTO fivetran.external_secrets_managers.secrets_managers (
type,
name,
config,
is_hybrid_deployment
)
SELECT
'{{ type }}' /* required */,
'{{ name }}' /* required */,
'{{ config }}' /* required */,
{{ is_hybrid_deployment }}
RETURNING
id,
name,
config,
created_at,
is_hybrid_deployment,
type,
updated_at
;

UPDATE examples​

Updates the configuration of an existing External Secrets Manager instance.

UPDATE fivetran.external_secrets_managers.secrets_managers
SET
config = '{{ config }}'
WHERE
esm_id = '{{ esm_id }}' --required
AND config = '{{ config }}' --required
RETURNING
id,
name,
config,
created_at,
is_hybrid_deployment,
type,
updated_at;

DELETE examples​

Deletes an External Secrets Manager instance from your Fivetran account. The instance must not be in use by any source connections or destinations.

DELETE FROM fivetran.external_secrets_managers.secrets_managers
WHERE esm_id = '{{ esm_id }}' --required
;