Skip to main content

Webhook

Resource Webhook in pulumi-portainer.
3 min read

Resource Webhook in pulumi-portainer.

Pulumi type: portainer:index/webhook:Webhook.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
endpointIdnumberyesIdentifier of the Portainer environment (endpoint) the webhook is bound to. Changing this value forces resource recreation.
reassignOnChangebooleannoWhether changing resourceId or webhookType reassigns the existing webhook instead of replacing it, keeping its token and every URL already handed out. Business Edition only; leave it off on CE, which has no reassign endpoint. Defaults to false.
registryIdnumbernoIdentifier of the Portainer registry associated with this webhook. Used when the webhook triggers actions on images from that registry.
resourceIdstringyesIdentifier of the target resource (e.g. service ID) the webhook will act upon. Changing this value replaces the webhook unless reassignOnChange is set.
webhookIdstringno
webhookTypenumberyesType of webhook in Portainer (e.g. 1 = service webhook, 2 = container webhook). Changing this value replaces the webhook unless reassignOnChange is set.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
endpointIdnumbernoIdentifier of the Portainer environment (endpoint) the webhook is bound to. Changing this value forces resource recreation.
reassignOnChangebooleannoWhether changing resourceId or webhookType reassigns the existing webhook instead of replacing it, keeping its token and every URL already handed out. Business Edition only; leave it off on CE, which has no reassign endpoint. Defaults to false.
registryIdnumbernoIdentifier of the Portainer registry associated with this webhook. Used when the webhook triggers actions on images from that registry.
resourceIdstringnoIdentifier of the target resource (e.g. service ID) the webhook will act upon. Changing this value replaces the webhook unless reassignOnChange is set.
tokenstringyesWebhook token generated by Portainer. Appended to the webhook URL to authenticate trigger calls.
webhookIdstringno
webhookTypenumbernoType of webhook in Portainer (e.g. 1 = service webhook, 2 = container webhook). Changing this value replaces the webhook unless reassignOnChange is set.