PatchWebhookConfigurationDto

PatchWebhookConfigurationDto
PatchWebhookConfigurationDto
JSON Example
{
    "id": "78e7e0cd-7666-4b78-b123-7d0aac711b33",
    "name": "test_webhook_configuration",
    "type": "WEBHOOK",
    "cspOrgId": "45bd46ae-8bc8-4115-9e72-28c89292c992",
    "createdBy": "[email protected]",
    "createdAt": "2023-04-27 06:02:20.675",
    "lastUpdatedBy": "[email protected]",
    "lastUpdatedAt": "2023-04-27 06:02:20.675",
    "url": "https://hooks.slack.com/services/SmafV7DQ1f3zJz4VpraTdT0q",
    "contentType": "application/json",
    "payload": "{\n    \"attachments\": [\n        {\n            \"author_name\": \"VMware Aria Operations for Logs\",\n            \"title\": \"Alert Triggered : [${severity}] ${name}\",\n            \"title_link\": \"${resultsUrl}\",\n            \"fields\": [\n                {\n                    \"title\": \"At Time\",\n                    \"value\": \"${triggeredAt}\"\n                },\n                {\n                    \"title\": \"Description\",\n                    \"value\": \"${description}\"\n                },\n                {\n                    \"title\": \"Recommendation\",\n                    \"value\": \"${recommendations}\"\n                }\n            ],\n            \"color\": \"#008ab1\"\n        }\n    ]\n}",
    "action": "PUT",
    "webhookType": "ALERT_NOTIFICATION",
    "userName": "test_user",
    "password": "******",
    "customHeaders": {
        "Authorization": "Bearer LQSe7oYM1tjf770o6cQPIQAmaha6Eyu9"
    },
    "endpointType": "SLACK",
    "endpointProperties": {
        "Authorization": "Bearer LQSe7oYM1tjf770o6cQPIQAmaha6Eyu9"
    },
    "force": false
}
string
id
Optional

Unique notification configuration identifier

string
name
Optional

Unique notification configuration name

string
type
Optional

Unique notification configuration name

Possible values are : EMAIL, WEBHOOK,
string
cspOrgId
Optional

Associated org with the notification

string
createdBy
Optional

Email of user who created this notification

string As date-time As date-time
createdAt
Optional

Time at which notification was created

string
lastUpdatedBy
Optional

Email of user who updated this notification

string As date-time As date-time
lastUpdatedAt
Optional

Time at which notification was last updated

string
url
Optional

Destination url of the webhook notification.

string
contentType
Optional

Indicates the original media type of the webhook payload

string
payload
Optional

Represents the payload/template of the webhook configuration

string
action
Optional

Indicates the webhook action i.e. create or update the configuration

Possible values are : POST, PUT,
string
webhookType
Optional

Indicates the webhook notification type.

Possible values are : ALERT_NOTIFICATION, SYSTEM_ALERT_NOTIFICATION,
string
userName
Optional

Email of user who created this notification

string
password
Optional

password

customHeaders
Optional

customHeaders

string
endpointType
Optional

Indicates the webhook notification endpoint.

Possible values are : SLACK, PAGERDUTY_V1_API, PAGERDUTY_V2_API, DATADOG, VICTOROPS, OTHERS,
endpointProperties
Optional

endpointProperties

boolean
force
Optional

It represents other objects in the system have referential dependencies on this webhook. Saving changes to this webhook may cause behavioral changes in other objects.Before saving this change, be sure there are no unintended consequences on the following objects, as the previous state of this webhook can’t be retrieved. If you still want to save changes to this notification then set this parameter ‘force’ as value ’true’ with the request body while calling this Api