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.

TypeMessage

Request

Response

{
    "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.

TypeMessage

Request

Response

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

update_plugin

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

TypeMessage

Request

Response

verify_plugin

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

Verifies a specific plugin for a Webhook.

TypeMessage

Request

Response

{
    "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.

TypeMessage

Request

Response

{
    "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.

TypeMessage

Request

Response

{
    "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.

TypeMessage

Request

Response

{
    "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.

TypeMessage

Request

Response

{
    "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.

TypeMessage

Request

Response

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

stat

POST /monitoring/v1/webhooks/stat

TypeMessage

Request

Response

Message

CreateWebhookRequest

FieldTypeRequiredDescription

name

string

plugin_info

tags

project_id

string

domain_id

string

GetWebhookRequest

FieldTypeRequiredDescription

webhook_id

string

domain_id

string

only

list of string

UpdateWebhookPluginRequest

FieldTypeRequiredDescription

webhook_id

string

version

string

options

upgrade_mode

  • NONE

  • MANUAL

  • AUTO

domain_id

string

UpdateWebhookRequest

FieldTypeRequiredDescription

webhook_id

string

name

string

tags

domain_id

string

WebhookInfo

FieldTypeDescription

webhook_id

string

name

string

state

  • NONE

  • ENABLED

  • DISABLED

access_key

string

webhook_url

string

capability

plugin_info

tags

project_id

string

domain_id

string

created_at

string

WebhookPluginInfo

FieldTypeDescription

plugin_id

string

version

string

options

metadata

upgrade_mode

  • NONE

  • MANUAL

  • AUTO

WebhookQuery

FieldTypeRequiredDescription

query

webhook_id

string

name

string

state

  • NONE

  • ENABLED

  • DISABLED

access_key

string

webhook_url

string

project_id

string

domain_id

string

WebhookRequest

FieldTypeRequiredDescription

webhook_id

string

domain_id

string

WebhookStatQuery

FieldTypeRequiredDescription

query

domain_id

string

WebhooksInfo

FieldTypeDescription

results

total_count

Last updated