Webhook gates

List of commands:

Webhook creation

To create a new webhook use the command:

zdm gate webhook create name url token period workspace_id

where name is the name that you want to give to your new webhook url is your webhook url token is the authentication token for your webhook (if needed)

workspace_id is the uid of the workspace you want to receive data from

You also have the possibility to add filters on data using the following options:

--tag To specify a tag to filter data (you can specify more than one) --fleet To specify a fleet to filter data (you can specify more than one) --token Token used as value of the Authorization Bearer fot the webhook endpoint.

List export gates

To see a list of your webhooks use the command:

zdm gate webhook all workspace_id

where workspace_id is the uid of the workspace

You also have the possibility to add filters on gates using the following options:

  • --status active|disabled to filter on gate’s status

Update webhook

To update a webhook use the command:

zdm gate webhook update gate_id

you can change gate’s configuration using the following options: :: * --name to change the webhook name * --period to change the webhook period * --url to change the webhook url * --tag (multiple option) to replace webhook tag array * --fleet (multiple option) to replace webhook fleets array