sysdig.MonitorNotificationChannelIbmFunction
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample_ibm_function_web_action = new sysdig.MonitorNotificationChannelIbmFunction("sample-ibm-function-web-action", {
enabled: true,
ibmFunctionType: "WEB_ACTION",
url: "https://eu-gb.functions.cloud.ibm.com/api/v1/web/namespaces/eeeeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/helloworld?param=true",
whiskAuthToken: "xxx",
customData: {
data1: "value1",
data2: "value2",
},
notifyWhenOk: false,
notifyWhenResolved: false,
sendTestNotification: false,
});
const sample_ibm_function_cloud_function = new sysdig.MonitorNotificationChannelIbmFunction("sample-ibm-function-cloud-function", {
ibmFunctionType: "CLOUD_FUNCTION",
url: "https://eu-gb.functions.cloud.ibm.com/api/v1/namespaces/13eeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/myaction",
iamApiKey: "xxx",
});
import pulumi
import pulumi_sysdig as sysdig
sample_ibm_function_web_action = sysdig.MonitorNotificationChannelIbmFunction("sample-ibm-function-web-action",
enabled=True,
ibm_function_type="WEB_ACTION",
url="https://eu-gb.functions.cloud.ibm.com/api/v1/web/namespaces/eeeeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/helloworld?param=true",
whisk_auth_token="xxx",
custom_data={
"data1": "value1",
"data2": "value2",
},
notify_when_ok=False,
notify_when_resolved=False,
send_test_notification=False)
sample_ibm_function_cloud_function = sysdig.MonitorNotificationChannelIbmFunction("sample-ibm-function-cloud-function",
ibm_function_type="CLOUD_FUNCTION",
url="https://eu-gb.functions.cloud.ibm.com/api/v1/namespaces/13eeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/myaction",
iam_api_key="xxx")
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.NewMonitorNotificationChannelIbmFunction(ctx, "sample-ibm-function-web-action", &sysdig.MonitorNotificationChannelIbmFunctionArgs{
Enabled: pulumi.Bool(true),
IbmFunctionType: pulumi.String("WEB_ACTION"),
Url: pulumi.String("https://eu-gb.functions.cloud.ibm.com/api/v1/web/namespaces/eeeeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/helloworld?param=true"),
WhiskAuthToken: pulumi.String("xxx"),
CustomData: pulumi.StringMap{
"data1": pulumi.String("value1"),
"data2": pulumi.String("value2"),
},
NotifyWhenOk: pulumi.Bool(false),
NotifyWhenResolved: pulumi.Bool(false),
SendTestNotification: pulumi.Bool(false),
})
if err != nil {
return err
}
_, err = sysdig.NewMonitorNotificationChannelIbmFunction(ctx, "sample-ibm-function-cloud-function", &sysdig.MonitorNotificationChannelIbmFunctionArgs{
IbmFunctionType: pulumi.String("CLOUD_FUNCTION"),
Url: pulumi.String("https://eu-gb.functions.cloud.ibm.com/api/v1/namespaces/13eeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/myaction"),
IamApiKey: pulumi.String("xxx"),
})
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_ibm_function_web_action = new Sysdig.MonitorNotificationChannelIbmFunction("sample-ibm-function-web-action", new()
{
Enabled = true,
IbmFunctionType = "WEB_ACTION",
Url = "https://eu-gb.functions.cloud.ibm.com/api/v1/web/namespaces/eeeeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/helloworld?param=true",
WhiskAuthToken = "xxx",
CustomData =
{
{ "data1", "value1" },
{ "data2", "value2" },
},
NotifyWhenOk = false,
NotifyWhenResolved = false,
SendTestNotification = false,
});
var sample_ibm_function_cloud_function = new Sysdig.MonitorNotificationChannelIbmFunction("sample-ibm-function-cloud-function", new()
{
IbmFunctionType = "CLOUD_FUNCTION",
Url = "https://eu-gb.functions.cloud.ibm.com/api/v1/namespaces/13eeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/myaction",
IamApiKey = "xxx",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorNotificationChannelIbmFunction;
import com.pulumi.sysdig.MonitorNotificationChannelIbmFunctionArgs;
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_ibm_function_web_action = new MonitorNotificationChannelIbmFunction("sample-ibm-function-web-action", MonitorNotificationChannelIbmFunctionArgs.builder()
.enabled(true)
.ibmFunctionType("WEB_ACTION")
.url("https://eu-gb.functions.cloud.ibm.com/api/v1/web/namespaces/eeeeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/helloworld?param=true")
.whiskAuthToken("xxx")
.customData(Map.ofEntries(
Map.entry("data1", "value1"),
Map.entry("data2", "value2")
))
.notifyWhenOk(false)
.notifyWhenResolved(false)
.sendTestNotification(false)
.build());
var sample_ibm_function_cloud_function = new MonitorNotificationChannelIbmFunction("sample-ibm-function-cloud-function", MonitorNotificationChannelIbmFunctionArgs.builder()
.ibmFunctionType("CLOUD_FUNCTION")
.url("https://eu-gb.functions.cloud.ibm.com/api/v1/namespaces/13eeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/myaction")
.iamApiKey("xxx")
.build());
}
}
resources:
sample-ibm-function-web-action:
type: sysdig:MonitorNotificationChannelIbmFunction
properties:
enabled: true
ibmFunctionType: WEB_ACTION
url: https://eu-gb.functions.cloud.ibm.com/api/v1/web/namespaces/eeeeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/helloworld?param=true
whiskAuthToken: xxx
customData:
data1: value1
data2: value2
notifyWhenOk: false
notifyWhenResolved: false
sendTestNotification: false
sample-ibm-function-cloud-function:
type: sysdig:MonitorNotificationChannelIbmFunction
properties:
ibmFunctionType: CLOUD_FUNCTION
url: https://eu-gb.functions.cloud.ibm.com/api/v1/namespaces/13eeeeee-623b-4776-ba35-4065bcbfee7b/actions/hello-world/myaction
iamApiKey: xxx
Create MonitorNotificationChannelIbmFunction Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorNotificationChannelIbmFunction(name: string, args: MonitorNotificationChannelIbmFunctionArgs, opts?: CustomResourceOptions);
@overload
def MonitorNotificationChannelIbmFunction(resource_name: str,
args: MonitorNotificationChannelIbmFunctionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorNotificationChannelIbmFunction(resource_name: str,
opts: Optional[ResourceOptions] = None,
ibm_function_type: Optional[str] = None,
url: Optional[str] = None,
notify_when_ok: Optional[bool] = None,
iam_api_key: Optional[str] = None,
monitor_notification_channel_ibm_function_id: Optional[str] = None,
name: Optional[str] = None,
custom_data: Optional[Mapping[str, str]] = None,
notify_when_resolved: Optional[bool] = None,
send_test_notification: Optional[bool] = None,
share_with_current_team: Optional[bool] = None,
timeouts: Optional[MonitorNotificationChannelIbmFunctionTimeoutsArgs] = None,
enabled: Optional[bool] = None,
whisk_auth_token: Optional[str] = None)
func NewMonitorNotificationChannelIbmFunction(ctx *Context, name string, args MonitorNotificationChannelIbmFunctionArgs, opts ...ResourceOption) (*MonitorNotificationChannelIbmFunction, error)
public MonitorNotificationChannelIbmFunction(string name, MonitorNotificationChannelIbmFunctionArgs args, CustomResourceOptions? opts = null)
public MonitorNotificationChannelIbmFunction(String name, MonitorNotificationChannelIbmFunctionArgs args)
public MonitorNotificationChannelIbmFunction(String name, MonitorNotificationChannelIbmFunctionArgs args, CustomResourceOptions options)
type: sysdig:MonitorNotificationChannelIbmFunction
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 MonitorNotificationChannelIbmFunctionArgs
- 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 MonitorNotificationChannelIbmFunctionArgs
- 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 MonitorNotificationChannelIbmFunctionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorNotificationChannelIbmFunctionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorNotificationChannelIbmFunctionArgs
- 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 monitorNotificationChannelIbmFunctionResource = new Sysdig.MonitorNotificationChannelIbmFunction("monitorNotificationChannelIbmFunctionResource", new()
{
IbmFunctionType = "string",
Url = "string",
NotifyWhenOk = false,
IamApiKey = "string",
MonitorNotificationChannelIbmFunctionId = "string",
Name = "string",
CustomData =
{
{ "string", "string" },
},
NotifyWhenResolved = false,
SendTestNotification = false,
ShareWithCurrentTeam = false,
Timeouts = new Sysdig.Inputs.MonitorNotificationChannelIbmFunctionTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
Enabled = false,
WhiskAuthToken = "string",
});
example, err := sysdig.NewMonitorNotificationChannelIbmFunction(ctx, "monitorNotificationChannelIbmFunctionResource", &sysdig.MonitorNotificationChannelIbmFunctionArgs{
IbmFunctionType: pulumi.String("string"),
Url: pulumi.String("string"),
NotifyWhenOk: pulumi.Bool(false),
IamApiKey: pulumi.String("string"),
MonitorNotificationChannelIbmFunctionId: pulumi.String("string"),
Name: pulumi.String("string"),
CustomData: pulumi.StringMap{
"string": pulumi.String("string"),
},
NotifyWhenResolved: pulumi.Bool(false),
SendTestNotification: pulumi.Bool(false),
ShareWithCurrentTeam: pulumi.Bool(false),
Timeouts: &sysdig.MonitorNotificationChannelIbmFunctionTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
WhiskAuthToken: pulumi.String("string"),
})
var monitorNotificationChannelIbmFunctionResource = new MonitorNotificationChannelIbmFunction("monitorNotificationChannelIbmFunctionResource", MonitorNotificationChannelIbmFunctionArgs.builder()
.ibmFunctionType("string")
.url("string")
.notifyWhenOk(false)
.iamApiKey("string")
.monitorNotificationChannelIbmFunctionId("string")
.name("string")
.customData(Map.of("string", "string"))
.notifyWhenResolved(false)
.sendTestNotification(false)
.shareWithCurrentTeam(false)
.timeouts(MonitorNotificationChannelIbmFunctionTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.enabled(false)
.whiskAuthToken("string")
.build());
monitor_notification_channel_ibm_function_resource = sysdig.MonitorNotificationChannelIbmFunction("monitorNotificationChannelIbmFunctionResource",
ibm_function_type="string",
url="string",
notify_when_ok=False,
iam_api_key="string",
monitor_notification_channel_ibm_function_id="string",
name="string",
custom_data={
"string": "string",
},
notify_when_resolved=False,
send_test_notification=False,
share_with_current_team=False,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
enabled=False,
whisk_auth_token="string")
const monitorNotificationChannelIbmFunctionResource = new sysdig.MonitorNotificationChannelIbmFunction("monitorNotificationChannelIbmFunctionResource", {
ibmFunctionType: "string",
url: "string",
notifyWhenOk: false,
iamApiKey: "string",
monitorNotificationChannelIbmFunctionId: "string",
name: "string",
customData: {
string: "string",
},
notifyWhenResolved: false,
sendTestNotification: false,
shareWithCurrentTeam: false,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
enabled: false,
whiskAuthToken: "string",
});
type: sysdig:MonitorNotificationChannelIbmFunction
properties:
customData:
string: string
enabled: false
iamApiKey: string
ibmFunctionType: string
monitorNotificationChannelIbmFunctionId: string
name: string
notifyWhenOk: false
notifyWhenResolved: false
sendTestNotification: false
shareWithCurrentTeam: false
timeouts:
create: string
delete: string
read: string
update: string
url: string
whiskAuthToken: string
MonitorNotificationChannelIbmFunction 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 MonitorNotificationChannelIbmFunction resource accepts the following input properties:
- Ibm
Function stringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - Url string
- URL of the IBM Function.
- Custom
Data Dictionary<string, string> - Key value list of additional parameters for the IBM Function.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Iam
Api stringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - Monitor
Notification stringChannel Ibm Function 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 Ibm Function Timeouts - Whisk
Auth stringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- Ibm
Function stringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - Url string
- URL of the IBM Function.
- Custom
Data map[string]string - Key value list of additional parameters for the IBM Function.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Iam
Api stringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - Monitor
Notification stringChannel Ibm Function 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 Ibm Function Timeouts Args - Whisk
Auth stringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- ibm
Function StringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - url String
- URL of the IBM Function.
- custom
Data Map<String,String> - Key value list of additional parameters for the IBM Function.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- iam
Api StringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - monitor
Notification StringChannel Ibm Function 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 Ibm Function Timeouts - whisk
Auth StringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- ibm
Function stringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - url string
- URL of the IBM Function.
- custom
Data {[key: string]: string} - Key value list of additional parameters for the IBM Function.
- enabled boolean
- If false, the channel will not emit notifications. Default is true.
- iam
Api stringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - monitor
Notification stringChannel Ibm Function 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 Ibm Function Timeouts - whisk
Auth stringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- ibm_
function_ strtype - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - url str
- URL of the IBM Function.
- custom_
data Mapping[str, str] - Key value list of additional parameters for the IBM Function.
- enabled bool
- If false, the channel will not emit notifications. Default is true.
- iam_
api_ strkey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - monitor_
notification_ strchannel_ ibm_ function_ 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 Ibm Function Timeouts Args - whisk_
auth_ strtoken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- ibm
Function StringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - url String
- URL of the IBM Function.
- custom
Data Map<String> - Key value list of additional parameters for the IBM Function.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- iam
Api StringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - monitor
Notification StringChannel Ibm Function 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
- whisk
Auth StringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorNotificationChannelIbmFunction resource produces the following output properties:
Look up Existing MonitorNotificationChannelIbmFunction Resource
Get an existing MonitorNotificationChannelIbmFunction 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?: MonitorNotificationChannelIbmFunctionState, opts?: CustomResourceOptions): MonitorNotificationChannelIbmFunction
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
custom_data: Optional[Mapping[str, str]] = None,
enabled: Optional[bool] = None,
iam_api_key: Optional[str] = None,
ibm_function_type: Optional[str] = None,
monitor_notification_channel_ibm_function_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,
timeouts: Optional[MonitorNotificationChannelIbmFunctionTimeoutsArgs] = None,
url: Optional[str] = None,
version: Optional[float] = None,
whisk_auth_token: Optional[str] = None) -> MonitorNotificationChannelIbmFunction
func GetMonitorNotificationChannelIbmFunction(ctx *Context, name string, id IDInput, state *MonitorNotificationChannelIbmFunctionState, opts ...ResourceOption) (*MonitorNotificationChannelIbmFunction, error)
public static MonitorNotificationChannelIbmFunction Get(string name, Input<string> id, MonitorNotificationChannelIbmFunctionState? state, CustomResourceOptions? opts = null)
public static MonitorNotificationChannelIbmFunction get(String name, Output<String> id, MonitorNotificationChannelIbmFunctionState state, CustomResourceOptions options)
resources: _: type: sysdig:MonitorNotificationChannelIbmFunction 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.
- Custom
Data Dictionary<string, string> - Key value list of additional parameters for the IBM Function.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Iam
Api stringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - Ibm
Function stringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - Monitor
Notification stringChannel Ibm Function 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 Ibm Function Timeouts - Url string
- URL of the IBM Function.
- Version double
- (Computed) The current version of the Notification Channel.
- Whisk
Auth stringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- Custom
Data map[string]string - Key value list of additional parameters for the IBM Function.
- Enabled bool
- If false, the channel will not emit notifications. Default is true.
- Iam
Api stringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - Ibm
Function stringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - Monitor
Notification stringChannel Ibm Function 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 Ibm Function Timeouts Args - Url string
- URL of the IBM Function.
- Version float64
- (Computed) The current version of the Notification Channel.
- Whisk
Auth stringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- custom
Data Map<String,String> - Key value list of additional parameters for the IBM Function.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- iam
Api StringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - ibm
Function StringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - monitor
Notification StringChannel Ibm Function 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 Ibm Function Timeouts - url String
- URL of the IBM Function.
- version Double
- (Computed) The current version of the Notification Channel.
- whisk
Auth StringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- custom
Data {[key: string]: string} - Key value list of additional parameters for the IBM Function.
- enabled boolean
- If false, the channel will not emit notifications. Default is true.
- iam
Api stringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - ibm
Function stringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - monitor
Notification stringChannel Ibm Function 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 Ibm Function Timeouts - url string
- URL of the IBM Function.
- version number
- (Computed) The current version of the Notification Channel.
- whisk
Auth stringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- custom_
data Mapping[str, str] - Key value list of additional parameters for the IBM Function.
- enabled bool
- If false, the channel will not emit notifications. Default is true.
- iam_
api_ strkey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - ibm_
function_ strtype - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - monitor_
notification_ strchannel_ ibm_ function_ 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 Ibm Function Timeouts Args - url str
- URL of the IBM Function.
- version float
- (Computed) The current version of the Notification Channel.
- whisk_
auth_ strtoken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
- custom
Data Map<String> - Key value list of additional parameters for the IBM Function.
- enabled Boolean
- If false, the channel will not emit notifications. Default is true.
- iam
Api StringKey - Required if
ibm_function_type
isCLOUD_FUNCTION
: API Key to call the private cloud function. - ibm
Function StringType - Type of IBM Function. Can be
WEB_ACTION
for a Web Action (with or without X-Require-Whisk-Auth header) orCLOUD_FUNCTION
for an IAM Secured Action. - monitor
Notification StringChannel Ibm Function 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
- url String
- URL of the IBM Function.
- version Number
- (Computed) The current version of the Notification Channel.
- whisk
Auth StringToken - Only if
ibm_function_type
isWEB_ACTION
: Whisk authentication token.
Supporting Types
MonitorNotificationChannelIbmFunctionTimeouts, MonitorNotificationChannelIbmFunctionTimeoutsArgs
Import
IBM Function notification channels for Monitor can be imported using the ID, e.g.
$ pulumi import sysdig:index/monitorNotificationChannelIbmFunction:MonitorNotificationChannelIbmFunction 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.