You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new Webhook triggered by a list of event types and pushed to a Scaleway SNS ARN.
4
+
5
+
USAGE:
6
+
scw tem webhook create [arg=value ...]
7
+
8
+
ARGS:
9
+
[domain-id] ID of the Domain to watch for triggering events
10
+
[project-id] Project ID to use. If none is passed the default project ID will be used
11
+
[name] Name of the Webhook
12
+
[event-types.{index}] List of event types that will trigger an event (unknown_type | email_queued | email_dropped | email_deferred | email_delivered | email_spam | email_mailbox_not_found)
13
+
[sns-arn] Scaleway SNS ARN topic to push the events to
14
+
[region=fr-par] Region to target. If none is passed will use default region from the config (fr-par)
15
+
16
+
FLAGS:
17
+
-h, --help help for create
18
+
19
+
GLOBAL FLAGS:
20
+
-c, --config string The path to the config file
21
+
-D, --debug Enable debug mode
22
+
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
Copy file name to clipboardExpand all lines: cmd/scw/testdata/test-all-usage-tem-webhook-usage.golden
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,15 @@
3
3
Webhooks enable real-time communication and automation between systems by sending messages through all protocols supported by SNS, such as HTTP, HTTPS, and Serverless Functions, allowing for immediate updates and actions based on specific events. This feature is in beta. You can request quotas from the [Scaleway betas page](https://www.scaleway.com/fr/betas/#email-webhooks).
4
4
5
5
USAGE:
6
-
scw tem webhook
6
+
scw tem webhook <command>
7
+
8
+
AVAILABLE COMMANDS:
9
+
create Create a Webhook
10
+
delete Delete a Webhook
11
+
get Get information about a Webhook
12
+
list List Webhooks
13
+
list-events List Webhook triggered events
14
+
update Update a Webhook
7
15
8
16
FLAGS:
9
17
-h, --help help for webhook
@@ -13,3 +21,5 @@ GLOBAL FLAGS:
13
21
-D, --debug Enable debug mode
14
22
-o, --output string Output format: json or human, see 'scw help output' for more info (default "human")
15
23
-p, --profile string The config profile to use
24
+
25
+
Use "scw tem webhook [command] --help" for more information about a command.
@@ -290,13 +296,141 @@ scw tem email list [arg=value ...]
290
296
291
297
Webhooks enable real-time communication and automation between systems by sending messages through all protocols supported by SNS, such as HTTP, HTTPS, and Serverless Functions, allowing for immediate updates and actions based on specific events. This feature is in beta. You can request quotas from the [Scaleway betas page](https://www.scaleway.com/fr/betas/#email-webhooks).
292
298
293
-
Webhooks enable real-time communication and automation between systems by sending messages through all protocols supported by SNS, such as HTTP, HTTPS, and Serverless Functions, allowing for immediate updates and actions based on specific events. This feature is in beta. You can request quotas from the [Scaleway betas page](https://www.scaleway.com/fr/betas/#email-webhooks).
299
+
300
+
### Create a Webhook
301
+
302
+
Create a new Webhook triggered by a list of event types and pushed to a Scaleway SNS ARN.
303
+
304
+
**Usage:**
305
+
306
+
```
307
+
scw tem webhook create [arg=value ...]
308
+
```
309
+
310
+
311
+
**Args:**
312
+
313
+
| Name || Description |
314
+
|------|---|-------------|
315
+
| domain-id || ID of the Domain to watch for triggering events |
316
+
| project-id || Project ID to use. If none is passed the default project ID will be used |
317
+
| name || Name of the Webhook |
318
+
| event-types.{index} | One of: `unknown_type`, `email_queued`, `email_dropped`, `email_deferred`, `email_delivered`, `email_spam`, `email_mailbox_not_found`| List of event types that will trigger an event |
319
+
| sns-arn || Scaleway SNS ARN topic to push the events to |
320
+
| region | Default: `fr-par`<br />One of: `fr-par`| Region to target. If none is passed will use default region from the config |
321
+
322
+
323
+
324
+
### Delete a Webhook
325
+
326
+
You must specify the Webhook you want to delete by the `region` and `webhook_id`. Deleting a Webhook is permanent and cannot be undone.
327
+
328
+
**Usage:**
329
+
330
+
```
331
+
scw tem webhook delete <webhook-id ...> [arg=value ...]
332
+
```
333
+
334
+
335
+
**Args:**
336
+
337
+
| Name || Description |
338
+
|------|---|-------------|
339
+
| webhook-id | Required | ID of the Webhook to delete |
340
+
| region | Default: `fr-par`<br />One of: `fr-par`| Region to target. If none is passed will use default region from the config |
341
+
342
+
343
+
344
+
### Get information about a Webhook
345
+
346
+
Retrieve information about a specific Webhook using the `webhook_id` and `region` parameters.
294
347
295
348
**Usage:**
296
349
297
350
```
298
-
scw tem webhook
351
+
scw tem webhook get <webhook-id ...> [arg=value ...]
299
352
```
300
353
301
354
355
+
**Args:**
356
+
357
+
| Name || Description |
358
+
|------|---|-------------|
359
+
| webhook-id | Required | ID of the Webhook to check |
360
+
| region | Default: `fr-par`<br />One of: `fr-par`| Region to target. If none is passed will use default region from the config |
361
+
362
+
363
+
364
+
### List Webhooks
365
+
366
+
Retrieve Webhooks in a specific Project or in a specific Organization using the `region` parameter.
367
+
368
+
**Usage:**
369
+
370
+
```
371
+
scw tem webhook list [arg=value ...]
372
+
```
373
+
374
+
375
+
**Args:**
376
+
377
+
| Name || Description |
378
+
|------|---|-------------|
379
+
| order-by | One of: `created_at_desc`, `created_at_asc`| (Optional) List Webhooks corresponding to specific criteria |
380
+
| project-id || (Optional) ID of the Project for which to list the Webhooks |
381
+
| domain-id || (Optional) ID of the Domain for which to list the Webhooks |
382
+
| organization-id || (Optional) ID of the Organization for which to list the Webhooks |
383
+
| region | Default: `fr-par`<br />One of: `fr-par`, `all`| Region to target. If none is passed will use default region from the config |
384
+
385
+
386
+
387
+
### List Webhook triggered events
388
+
389
+
Retrieve the list of Webhook events triggered from a specific Webhook or for a specific Project or Organization. You must specify the `region`.
390
+
391
+
**Usage:**
392
+
393
+
```
394
+
scw tem webhook list-events [arg=value ...]
395
+
```
396
+
397
+
398
+
**Args:**
399
+
400
+
| Name || Description |
401
+
|------|---|-------------|
402
+
| order-by | One of: `created_at_desc`, `created_at_asc`| (Optional) List Webhook events corresponding to specific criteria |
403
+
| webhook-id | Required | ID of the Webhook linked to the events |
404
+
| email-id || ID of the email linked to the events |
405
+
| event-types.{index} | One of: `unknown_type`, `email_queued`, `email_dropped`, `email_deferred`, `email_delivered`, `email_spam`, `email_mailbox_not_found`| List of event types linked to the events |
406
+
| statuses.{index} | One of: `unknown_status`, `sending`, `sent`, `failed`| List of event statuses |
407
+
| project-id || ID of the webhook Project |
408
+
| domain-id || ID of the domain to watch for triggering events |
409
+
| organization-id || ID of the webhook Organization |
410
+
| region | Default: `fr-par`<br />One of: `fr-par`, `all`| Region to target. If none is passed will use default region from the config |
411
+
412
+
413
+
414
+
### Update a Webhook
415
+
416
+
Update a Webhook events type, SNS ARN or name.
417
+
418
+
**Usage:**
419
+
420
+
```
421
+
scw tem webhook update [arg=value ...]
422
+
```
423
+
424
+
425
+
**Args:**
426
+
427
+
| Name || Description |
428
+
|------|---|-------------|
429
+
| webhook-id | Required | ID of the Webhook to update |
430
+
| name || Name of the Webhook to update |
431
+
| event-types.{index} | One of: `unknown_type`, `email_queued`, `email_dropped`, `email_deferred`, `email_delivered`, `email_spam`, `email_mailbox_not_found`| List of event types to update |
432
+
| sns-arn || Scaleway SNS ARN topic to update |
433
+
| region | Default: `fr-par`<br />One of: `fr-par`| Region to target. If none is passed will use default region from the config |
0 commit comments