sysdig.MonitorNotificationChannelCustomWebhook
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample_custom_webhook = new sysdig.MonitorNotificationChannelCustomWebhook("sample-custom-webhook", {
enabled: true,
url: "http://localhost:8080",
httpMethod: "POST",
template: `{
"code": "incident",
"alert": "{{@alert_name}}"
}`,
additionalHeaders: {
"custom-Header": "TestHeader",
},
notifyWhenOk: false,
notifyWhenResolved: false,
sendTestNotification: false,
});
import pulumi
import pulumi_sysdig as sysdig
sample_custom_webhook = sysdig.MonitorNotificationChannelCustomWebhook("sample-custom-webhook",
enabled=True,
url="http://localhost:8080",
http_method="POST",
template="""{
"code": "incident",
"alert": "{{@alert_name}}"
}""",
additional_headers={
"custom-Header": "TestHeader",
},
notify_when_ok=False,
notify_when_resolved=False,
send_test_notification=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sysdig.NewMonitorNotificationChannelCustomWebhook(ctx, "sample-custom-webhook", &sysdig.MonitorNotificationChannelCustomWebhookArgs{
Enabled: pulumi.Bool(true),
Url: pulumi.String("http://localhost:8080"),
HttpMethod: pulumi.String("POST"),
Template: pulumi.String("{\n \"code\": \"incident\",\n \"alert\": \"{{@alert_name}}\"\n}"),
AdditionalHeaders: pulumi.StringMap{
"custom-Header": pulumi.String("TestHeader"),
},
NotifyWhenOk: pulumi.Bool(false),
NotifyWhenResolved: pulumi.Bool(false),
SendTestNotification: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sysdig = Pulumi.Sysdig;
return await Deployment.RunAsync(() =>
{
var sample_custom_webhook = new Sysdig.MonitorNotificationChannelCustomWebhook("sample-custom-webhook", new()
{
Enabled = true,
Url = "http://localhost:8080",
HttpMethod = "POST",
Template = @"{
""code"": ""incident"",
""alert"": ""{{@alert_name}}""
}",
AdditionalHeaders =
{
{ "custom-Header", "TestHeader" },
},
NotifyWhenOk = false,
NotifyWhenResolved = false,
SendTestNotification = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorNotificationChannelCustomWebhook;
import com.pulumi.sysdig.MonitorNotificationChannelCustomWebhookArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sample_custom_webhook = new MonitorNotificationChannelCustomWebhook("sample-custom-webhook", MonitorNotificationChannelCustomWebhookArgs.builder()
.enabled(true)
.url("http://localhost:8080")
.httpMethod("POST")
.template("""
{
"code": "incident",
"alert": "{{@alert_name}}"
} """)
.additionalHeaders(Map.of("custom-Header", "TestHeader"))
.notifyWhenOk(false)
.notifyWhenResolved(false)
.sendTestNotification(false)
.build());
}
}
resources:
sample-custom-webhook:
type: sysdig:MonitorNotificationChannelCustomWebhook
properties:
enabled: true
url: http://localhost:8080
httpMethod: POST
template: |-
{
"code": "incident",
"alert": "{{@alert_name}}"
}
additionalHeaders:
custom-Header: TestHeader
notifyWhenOk: false
notifyWhenResolved: false
sendTestNotification: false
Create MonitorNotificationChannelCustomWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorNotificationChannelCustomWebhook(name: string, args: MonitorNotificationChannelCustomWebhookArgs, opts?: CustomResourceOptions);
@overload
def MonitorNotificationChannelCustomWebhook(resource_name: str,
args: MonitorNotificationChannelCustomWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorNotificationChannelCustomWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
http_method: Optional[str] = None,
url: Optional[str] = None,
template: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
monitor_notification_channel_custom_webhook_id: Optional[str] = None,
name: Optional[str] = None,
additional_headers: Optional[Mapping[str, str]] = None,
notify_when_resolved: Optional[bool] = None,
send_test_notification: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
enabled: Optional[bool] = None,
timeouts: Optional[MonitorNotificationChannelCustomWebhookTimeoutsArgs] = None,
allow_insecure_connections: Optional[bool] = None)
func NewMonitorNotificationChannelCustomWebhook(ctx *Context, name string, args MonitorNotificationChannelCustomWebhookArgs, opts ...ResourceOption) (*MonitorNotificationChannelCustomWebhook, error)
public MonitorNotificationChannelCustomWebhook(string name, MonitorNotificationChannelCustomWebhookArgs args, CustomResourceOptions? opts = null)
public MonitorNotificationChannelCustomWebhook(String name, MonitorNotificationChannelCustomWebhookArgs args)
public MonitorNotificationChannelCustomWebhook(String name, MonitorNotificationChannelCustomWebhookArgs args, CustomResourceOptions options)
type: sysdig:MonitorNotificationChannelCustomWebhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MonitorNotificationChannelCustomWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MonitorNotificationChannelCustomWebhookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitorNotificationChannelCustomWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorNotificationChannelCustomWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorNotificationChannelCustomWebhookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitorNotificationChannelCustomWebhookResource = new Sysdig.MonitorNotificationChannelCustomWebhook("monitorNotificationChannelCustomWebhookResource", new()
{
HttpMethod = "string",
Url = "string",
Template = "string",
NotifyWhenOk = false,
MonitorNotificationChannelCustomWebhookId = "string",
Name = "string",
AdditionalHeaders =
{
{ "string", "string" },
},
NotifyWhenResolved = false,
SendTestNotification = false,
ShareWithCurrentTeam = false,
Enabled = false,
Timeouts = new Sysdig.Inputs.MonitorNotificationChannelCustomWebhookTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
AllowInsecureConnections = false,
});
example, err := sysdig.NewMonitorNotificationChannelCustomWebhook(ctx, "monitorNotificationChannelCustomWebhookResource", &sysdig.MonitorNotificationChannelCustomWebhookArgs{
HttpMethod: pulumi.String("string"),
Url: pulumi.String("string"),
Template: pulumi.String("string"),
NotifyWhenOk: pulumi.Bool(false),
MonitorNotificationChannelCustomWebhookId: pulumi.String("string"),
Name: pulumi.String("string"),
AdditionalHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
NotifyWhenResolved: pulumi.Bool(false),
SendTestNotification: pulumi.Bool(false),
ShareWithCurrentTeam: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
Timeouts: &sysdig.MonitorNotificationChannelCustomWebhookTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
AllowInsecureConnections: pulumi.Bool(false),
})
var monitorNotificationChannelCustomWebhookResource = new MonitorNotificationChannelCustomWebhook("monitorNotificationChannelCustomWebhookResource", MonitorNotificationChannelCustomWebhookArgs.builder()
.httpMethod("string")
.url("string")
.template("string")
.notifyWhenOk(false)
.monitorNotificationChannelCustomWebhookId("string")
.name("string")
.additionalHeaders(Map.of("string", "string"))
.notifyWhenResolved(false)
.sendTestNotification(false)
.shareWithCurrentTeam(false)
.enabled(false)
.timeouts(MonitorNotificationChannelCustomWebhookTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.allowInsecureConnections(false)
.build());
monitor_notification_channel_custom_webhook_resource = sysdig.MonitorNotificationChannelCustomWebhook("monitorNotificationChannelCustomWebhookResource",
http_method="string",
url="string",
template="string",
notify_when_ok=False,
monitor_notification_channel_custom_webhook_id="string",
name="string",
additional_headers={
"string": "string",
},
notify_when_resolved=False,
send_test_notification=False,
share_with_current_team=False,
enabled=False,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
allow_insecure_connections=False)
const monitorNotificationChannelCustomWebhookResource = new sysdig.MonitorNotificationChannelCustomWebhook("monitorNotificationChannelCustomWebhookResource", {
httpMethod: "string",
url: "string",
template: "string",
notifyWhenOk: false,
monitorNotificationChannelCustomWebhookId: "string",
name: "string",
additionalHeaders: {
string: "string",
},
notifyWhenResolved: false,
sendTestNotification: false,
shareWithCurrentTeam: false,
enabled: false,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
allowInsecureConnections: false,
});
type: sysdig:MonitorNotificationChannelCustomWebhook
properties:
additionalHeaders:
string: string
allowInsecureConnections: false
enabled: false
httpMethod: string
monitorNotificationChannelCustomWebhookId: string
name: string
notifyWhenOk: false
notifyWhenResolved: false
sendTestNotification: false
shareWithCurrentTeam: false
template: string
timeouts:
create: string
delete: string
read: string
update: string
url: string
MonitorNotificationChannelCustomWebhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MonitorNotificationChannelCustomWebhook resource accepts the following input properties:
- Http
Method string - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - Template string
- JSON payload template to be sent in body.
- Url string
- URL to send the event.
- Additional
Headers Dictionary<string, string> - Key value list of custom headers.
- Allow
Insecure boolConnections - Whether to skip TLS verification. Default:
false
. - Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Monitor
Notification stringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- Name string
- The name of the Notification Channel. Must be unique.
- Notify
When boolOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- Notify
When boolResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - Timeouts
Monitor
Notification Channel Custom Webhook Timeouts
- Http
Method string - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - Template string
- JSON payload template to be sent in body.
- Url string
- URL to send the event.
- Additional
Headers map[string]string - Key value list of custom headers.
- Allow
Insecure boolConnections - Whether to skip TLS verification. Default:
false
. - Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Monitor
Notification stringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- Name string
- The name of the Notification Channel. Must be unique.
- Notify
When boolOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- Notify
When boolResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - Timeouts
Monitor
Notification Channel Custom Webhook Timeouts Args
- http
Method String - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - template String
- JSON payload template to be sent in body.
- url String
- URL to send the event.
- additional
Headers Map<String,String> - Key value list of custom headers.
- allow
Insecure BooleanConnections - Whether to skip TLS verification. Default:
false
. - enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification StringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- name String
- The name of the Notification Channel. Must be unique.
- notify
When BooleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When BooleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - timeouts
Monitor
Notification Channel Custom Webhook Timeouts
- http
Method string - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - template string
- JSON payload template to be sent in body.
- url string
- URL to send the event.
- additional
Headers {[key: string]: string} - Key value list of custom headers.
- allow
Insecure booleanConnections - Whether to skip TLS verification. Default:
false
. - enabled boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification stringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- name string
- The name of the Notification Channel. Must be unique.
- notify
When booleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When booleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- send
Test booleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- boolean
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - timeouts
Monitor
Notification Channel Custom Webhook Timeouts
- http_
method str - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - template str
- JSON payload template to be sent in body.
- url str
- URL to send the event.
- additional_
headers Mapping[str, str] - Key value list of custom headers.
- allow_
insecure_ boolconnections - Whether to skip TLS verification. Default:
false
. - enabled bool
- If false, the channel will not emit notifications. Default is true.
- monitor_
notification_ strchannel_ custom_ webhook_ id - (Computed) The ID of the Notification Channel.
- name str
- The name of the Notification Channel. Must be unique.
- notify_
when_ boolok - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify_
when_ boolresolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- send_
test_ boolnotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - timeouts
Monitor
Notification Channel Custom Webhook Timeouts Args
- http
Method String - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - template String
- JSON payload template to be sent in body.
- url String
- URL to send the event.
- additional
Headers Map<String> - Key value list of custom headers.
- allow
Insecure BooleanConnections - Whether to skip TLS verification. Default:
false
. - enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- monitor
Notification StringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- name String
- The name of the Notification Channel. Must be unique.
- notify
When BooleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When BooleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorNotificationChannelCustomWebhook resource produces the following output properties:
Look up Existing MonitorNotificationChannelCustomWebhook Resource
Get an existing MonitorNotificationChannelCustomWebhook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MonitorNotificationChannelCustomWebhookState, opts?: CustomResourceOptions): MonitorNotificationChannelCustomWebhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
additional_headers: Optional[Mapping[str, str]] = None,
allow_insecure_connections: Optional[bool] = None,
enabled: Optional[bool] = None,
http_method: Optional[str] = None,
monitor_notification_channel_custom_webhook_id: Optional[str] = None,
name: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
notify_when_resolved: Optional[bool] = None,
send_test_notification: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
template: Optional[str] = None,
timeouts: Optional[MonitorNotificationChannelCustomWebhookTimeoutsArgs] = None,
url: Optional[str] = None,
version: Optional[float] = None) -> MonitorNotificationChannelCustomWebhook
func GetMonitorNotificationChannelCustomWebhook(ctx *Context, name string, id IDInput, state *MonitorNotificationChannelCustomWebhookState, opts ...ResourceOption) (*MonitorNotificationChannelCustomWebhook, error)
public static MonitorNotificationChannelCustomWebhook Get(string name, Input<string> id, MonitorNotificationChannelCustomWebhookState? state, CustomResourceOptions? opts = null)
public static MonitorNotificationChannelCustomWebhook get(String name, Output<String> id, MonitorNotificationChannelCustomWebhookState state, CustomResourceOptions options)
resources: _: type: sysdig:MonitorNotificationChannelCustomWebhook get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Additional
Headers Dictionary<string, string> - Key value list of custom headers.
- Allow
Insecure boolConnections - Whether to skip TLS verification. Default:
false
. - Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Http
Method string - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - Monitor
Notification stringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- Name string
- The name of the Notification Channel. Must be unique.
- Notify
When boolOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- Notify
When boolResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - Template string
- JSON payload template to be sent in body.
- Timeouts
Monitor
Notification Channel Custom Webhook Timeouts - Url string
- URL to send the event.
- Version double
- (Computed) The current version of the Notification Channel.
- Additional
Headers map[string]string - Key value list of custom headers.
- Allow
Insecure boolConnections - Whether to skip TLS verification. Default:
false
. - Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Http
Method string - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - Monitor
Notification stringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- Name string
- The name of the Notification Channel. Must be unique.
- Notify
When boolOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- Notify
When boolResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- Send
Test boolNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - Template string
- JSON payload template to be sent in body.
- Timeouts
Monitor
Notification Channel Custom Webhook Timeouts Args - Url string
- URL to send the event.
- Version float64
- (Computed) The current version of the Notification Channel.
- additional
Headers Map<String,String> - Key value list of custom headers.
- allow
Insecure BooleanConnections - Whether to skip TLS verification. Default:
false
. - enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- http
Method String - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - monitor
Notification StringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- name String
- The name of the Notification Channel. Must be unique.
- notify
When BooleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When BooleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - template String
- JSON payload template to be sent in body.
- timeouts
Monitor
Notification Channel Custom Webhook Timeouts - url String
- URL to send the event.
- version Double
- (Computed) The current version of the Notification Channel.
- additional
Headers {[key: string]: string} - Key value list of custom headers.
- allow
Insecure booleanConnections - Whether to skip TLS verification. Default:
false
. - enabled boolean
- If false, the channel will not emit notifications. Default is true.
- http
Method string - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - monitor
Notification stringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- name string
- The name of the Notification Channel. Must be unique.
- notify
When booleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When booleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- send
Test booleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- boolean
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - template string
- JSON payload template to be sent in body.
- timeouts
Monitor
Notification Channel Custom Webhook Timeouts - url string
- URL to send the event.
- version number
- (Computed) The current version of the Notification Channel.
- additional_
headers Mapping[str, str] - Key value list of custom headers.
- allow_
insecure_ boolconnections - Whether to skip TLS verification. Default:
false
. - enabled bool
- If false, the channel will not emit notifications. Default is true.
- http_
method str - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - monitor_
notification_ strchannel_ custom_ webhook_ id - (Computed) The ID of the Notification Channel.
- name str
- The name of the Notification Channel. Must be unique.
- notify_
when_ boolok - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify_
when_ boolresolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- send_
test_ boolnotification - Send an initial test notification to check if the notification channel is working. Default is false.
- bool
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - template str
- JSON payload template to be sent in body.
- timeouts
Monitor
Notification Channel Custom Webhook Timeouts Args - url str
- URL to send the event.
- version float
- (Computed) The current version of the Notification Channel.
- additional
Headers Map<String> - Key value list of custom headers.
- allow
Insecure BooleanConnections - Whether to skip TLS verification. Default:
false
. - enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- http
Method String - Http method of the request to be sent. Possible values:
POST
,PUT
,PATCH
,DELETE
. - monitor
Notification StringChannel Custom Webhook Id - (Computed) The ID of the Notification Channel.
- name String
- The name of the Notification Channel. Must be unique.
- notify
When BooleanOk - Send a new notification when the alert condition is no longer triggered. Default is false.
- notify
When BooleanResolved - Send a new notification when the alert is manually acknowledged by a user. Default is false.
- send
Test BooleanNotification - Send an initial test notification to check if the notification channel is working. Default is false.
- Boolean
- If set to
true
it will share notification channel only with current team (in which user is logged in). Otherwise, it will share it with all teams, which is the default behaviour. Although this is an optional setting, beware that if you have lower permissions than admin you may see aerror: 403 Forbidden
if this is not set totrue
. - template String
- JSON payload template to be sent in body.
- timeouts Property Map
- url String
- URL to send the event.
- version Number
- (Computed) The current version of the Notification Channel.
Supporting Types
MonitorNotificationChannelCustomWebhookTimeouts, MonitorNotificationChannelCustomWebhookTimeoutsArgs
Import
Custom Webhook notification channels for Monitor can be imported using the ID, e.g.
$ pulumi import sysdig:index/monitorNotificationChannelCustomWebhook:MonitorNotificationChannelCustomWebhook example 12345
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.