Webhook

A Webhook is a plugin instance receiving data from external monitoring systems.

Package : spaceone.api.monitoring.v1

Webhook

Webhook Methods:

create

POST /monitoring/v1/webhooks

Creates a new Webhook. A Webhook collects data from an external monitoring system with a webhook URL generated by the resource.

Type
Message
{
    "name": "aws-sns-webhook-for-phd",
    "plugin_info": {
        "plugin_id": "plugin-aws-sns-mon-webhook",
        "options": {}
    },
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012"
}

update

PUT /monitoring/v1/webhook/{webhook_id}

Updates a specific Webhook. You can make changes in Webhook settings, including the name and tags.

Type
Message
{
    "webhook_id": "webhook-123456789012",
    "name": "aws-sns-webhook-for-cloudwatch",
    "domain_id": "domain-123456789012"
}

update_plugin

PUT /monitoring/v1/webhook/{webhook_id}/plugin

Type
Message

verify_plugin

POST /monitoring/v1/webhook/{webhook_id}/plugin/verify

Verifies a specific plugin for a Webhook.

Type
Message
{
    "webhook_id": "webhook-123456789012",
    "domain_id": "domain-123456789012"
}

enable

PUT /monitoring/v1/webhook/{webhook_id}/enable

Enables a specific Webhook. By enabling a Webhook, you can communicate with an external application.

Type
Message
{
    "webhook_id": "webhook-123456789012",
    "domain_id": "domain-123456789012"
}

disable

PUT /monitoring/v1/webhook/{webhook_id}/disable

Disables a specific Webhook. By disabling a Webhook, you cannot communicate with an external application, as the webhook URL from the Webhook becomes invalid.

Type
Message
{
    "webhook_id": "webhook-123456789012",
    "domain_id": "domain-123456789012"
}

delete

DELETE /monitoring/v1/webhook/{webhook_id}

Deletes a specific Webhook. By deleting a Webhook, you cannot collect data from an external monitoring system, as the REST URL is also deleted.

Type
Message
{
    "webhook_id": "webhook-123456789012",
    "domain_id": "domain-123456789012"
}

get

GET /monitoring/v1/webhook/{webhook_id}

Gets a specific Webhook. Prints detailed information about the Webhook, including the name, the version, and the created datetime.

Type
Message
{
    "webhook_id": "webhook-123456789012",
    "domain_id": "domain-123456789012"
}

list

GET /monitoring/v1/webhooks

POST /monitoring/v1/webhooks/search

Gets a list of all Webhooks. You can use a query to get a filtered list of Webhooks.

Type
Message
{
    "query": {},
    "project_id": "project-123456789012",
    "domain_id": "domain-123456789012"
}

stat

POST /monitoring/v1/webhooks/stat

Type
Message

Message

CreateWebhookRequest

Field
Type
Required
Description

name

string

plugin_info

project_id

string

domain_id

string

GetWebhookRequest

Field
Type
Required
Description

webhook_id

string

domain_id

string

only

list of string

UpdateWebhookPluginRequest

Field
Type
Required
Description

webhook_id

string

version

string

upgrade_mode

  • NONE

  • MANUAL

  • AUTO

domain_id

string

UpdateWebhookRequest

Field
Type
Required
Description

webhook_id

string

name

string

domain_id

string

WebhookInfo

Field
Type
Description

webhook_id

string

name

string

state

  • NONE

  • ENABLED

  • DISABLED

access_key

string

webhook_url

string

project_id

string

domain_id

string

created_at

string

WebhookPluginInfo

Field
Type
Description

plugin_id

string

version

string

upgrade_mode

  • NONE

  • MANUAL

  • AUTO

WebhookQuery

Field
Type
Required
Description

webhook_id

string

name

string

state

  • NONE

  • ENABLED

  • DISABLED

access_key

string

webhook_url

string

project_id

string

domain_id

string

WebhookRequest

Field
Type
Required
Description

webhook_id

string

domain_id

string

WebhookStatQuery

Field
Type
Required
Description

domain_id

string

WebhooksInfo

Field
Type
Description

total_count

Last updated