Export the deploy hooks
export_deploy_hooks
Exports every deploy hook on a site as plain data, with each URL masked.
Scopeconfig:readRead only
Each hook comes back under DeployHooks with its name, whether it is on, its masked URL, when it was last called and when it was created, and ExportedAt says when the export was made. This is the tool for showing somebody their whole deploy hook setup at once.
Each URL comes back masked, exactly as list_deploy_hooks reports it, because the real URL is a credential. So an export cannot be turned back into working URLs, and new hooks get new URLs of their own. See Deploy hooks.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |