Skip to content

Create a Hook Template.

Request

Security
ApiKeyAuth
Bodyapplication/jsonrequired

The parameters to create a hook template.

namestring, [ 1 .. 256 ] charactersrequired

Name of the hook template.

Example:"Hook Template 1"
descriptionstring

Description of the hook template.

shellstring
Default:"bash"
Enum:"bash""shell""expect""ps""psd"
commandstring, [ 1 .. 131072 ] charactersrequired
credentials_env_varsArray of objects(CredentialsEnvVariable)

List of environment variables that will contain credentials for this operation.

tagsArray of objects(Tag)

The tags to be created for the hook template.

curl -i -X POST \
  https://help-api.delphix.com/_mock/data-control-tower/continuous-data/2026.3.0.0/continuous-data-apis-dct-2026.3.0.0/hook-templates \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Hook Template 1",
    "description": "string",
    "shell": "bash",
    "command": "string",
    "credentials_env_vars": [
      {
        "base_var_name": "string",
        "password": "password",
        "vault_username": "my-vault",
        "vault": "1-VAULT-1",
        "hashicorp_vault_engine": "kv",
        "hashicorp_vault_secret_path": "oracle-env",
        "hashicorp_vault_username_key": "username",
        "hashicorp_vault_secret_key": "secret",
        "azure_vault_name": "azure_vault",
        "azure_vault_username_key": "username",
        "azure_vault_secret_key": "secret",
        "cyberark_vault_query_string": "Safe=Test;Folder=Test;Object=Test",
        "credential_type": "PasswordCredential",
        "element_id": 35,
        "type": "CredentialsEnvVars"
      }
    ],
    "tags": [
      {
        "key": "key-1",
        "value": "value-1"
      }
    ]
  }'

Responses

Hook Template created

Bodyapplication/json
jobobject(Job)
hook_templateobject(HookTemplate)

The hook template that was created.

Response
{ "job": { "id": "job-123", "status": "RUNNING", "is_waiting_for_telemetry": true, "type": "DB_REFRESH", "localized_type": "DB Refresh", "error_details": "Unable to connect to the engine.", "warning_message": "Failed to remove local MaskingJob, engineId: 3 localMaskingJobId: 7.", "target_id": "vdb-123", "target_name": "vdb", "start_time": "2022-01-02T05:11:24.148000+00:00", "update_time": "2022-01-02T06:11:24.148000+00:00", "trace_id": "string", "engine_ids": [ … ], "tags": [ … ], "engines": [ … ], "account_id": 1, "account_name": "User 1", "compliance_node_id": "string", "compliance_node_name": "string", "percent_complete": "50", "virtualization_tasks": [ … ], "tasks": [ … ], "execution_id": "string", "result_type": "string", "result": {}, "job": { … }, "class_type": "DeleteDSourceResponse" }, "hook_template": { "id": "string", "name": "string", "dct_managed": true, "description": "string", "shell": "bash", "command": "string", "credentials_env_vars": [ … ], "engine_id": "string", "compatible_engine_id": "string", "tags": [ … ] } }