coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix
coralogix.getWebhook
Explore with Pulumi AI
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix
Coralogix webhook. For more info please review - https://coralogix.com/docs/coralogix-Webhook-extension/.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as coralogix from "@pulumi/coralogix";
const importedWebhookById = coralogix.getWebhook({
id: coralogix_webhook.slack_webhook.id,
});
const importedWebhookByName = coralogix.getWebhook({
name: coralogix_webhook.slack_webhook.name,
});
import pulumi
import pulumi_coralogix as coralogix
imported_webhook_by_id = coralogix.get_webhook(id=coralogix_webhook["slack_webhook"]["id"])
imported_webhook_by_name = coralogix.get_webhook(name=coralogix_webhook["slack_webhook"]["name"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/coralogix/v2/coralogix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := coralogix.LookupWebhook(ctx, &coralogix.LookupWebhookArgs{
Id: pulumi.StringRef(coralogix_webhook.Slack_webhook.Id),
}, nil)
if err != nil {
return err
}
_, err = coralogix.LookupWebhook(ctx, &coralogix.LookupWebhookArgs{
Name: pulumi.StringRef(coralogix_webhook.Slack_webhook.Name),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Coralogix = Pulumi.Coralogix;
return await Deployment.RunAsync(() =>
{
var importedWebhookById = Coralogix.GetWebhook.Invoke(new()
{
Id = coralogix_webhook.Slack_webhook.Id,
});
var importedWebhookByName = Coralogix.GetWebhook.Invoke(new()
{
Name = coralogix_webhook.Slack_webhook.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.coralogix.CoralogixFunctions;
import com.pulumi.coralogix.inputs.GetWebhookArgs;
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) {
final var importedWebhookById = CoralogixFunctions.getWebhook(GetWebhookArgs.builder()
.id(coralogix_webhook.slack_webhook().id())
.build());
final var importedWebhookByName = CoralogixFunctions.getWebhook(GetWebhookArgs.builder()
.name(coralogix_webhook.slack_webhook().name())
.build());
}
}
variables:
importedWebhookById:
fn::invoke:
function: coralogix:getWebhook
arguments:
id: ${coralogix_webhook.slack_webhook.id}
importedWebhookByName:
fn::invoke:
function: coralogix:getWebhook
arguments:
name: ${coralogix_webhook.slack_webhook.name}
Using getWebhook
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getWebhook(args: GetWebhookArgs, opts?: InvokeOptions): Promise<GetWebhookResult>
function getWebhookOutput(args: GetWebhookOutputArgs, opts?: InvokeOptions): Output<GetWebhookResult>
def get_webhook(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetWebhookResult
def get_webhook_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWebhookResult]
func LookupWebhook(ctx *Context, args *LookupWebhookArgs, opts ...InvokeOption) (*LookupWebhookResult, error)
func LookupWebhookOutput(ctx *Context, args *LookupWebhookOutputArgs, opts ...InvokeOption) LookupWebhookResultOutput
> Note: This function is named LookupWebhook
in the Go SDK.
public static class GetWebhook
{
public static Task<GetWebhookResult> InvokeAsync(GetWebhookArgs args, InvokeOptions? opts = null)
public static Output<GetWebhookResult> Invoke(GetWebhookInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWebhookResult> getWebhook(GetWebhookArgs args, InvokeOptions options)
public static Output<GetWebhookResult> getWebhook(GetWebhookArgs args, InvokeOptions options)
fn::invoke:
function: coralogix:index/getWebhook:getWebhook
arguments:
# arguments dictionary
The following arguments are supported:
getWebhook Result
The following output properties are available:
- Custom
Get
Webhook Custom - Generic webhook.
- Demisto
Get
Webhook Demisto - Demisto webhook.
- Email
Group GetWebhook Email Group - Email group webhook.
- Event
Bridge GetWebhook Event Bridge - External
Id string - Webhook external ID. Using to linq webhook to alert.
- Jira
Get
Webhook Jira - Jira webhook.
- Microsoft
Teams GetWebhook Microsoft Teams - Microsoft Teams webhook. (Deprecated, please use microsoftteamsworkflow)
- Microsoft
Teams GetWorkflow Webhook Microsoft Teams Workflow - Microsoft Teams Workflow webhook.
- Name string
- Webhook name.
- Opsgenie
Get
Webhook Opsgenie - Opsgenie webhook.
- Pager
Duty GetWebhook Pager Duty - PagerDuty webhook.
- Sendlog
Get
Webhook Sendlog - Send log webhook.
- Slack
Get
Webhook Slack - Slack webhook.
- Id string
- Webhook ID.
- Custom
Get
Webhook Custom - Generic webhook.
- Demisto
Get
Webhook Demisto - Demisto webhook.
- Email
Group GetWebhook Email Group - Email group webhook.
- Event
Bridge GetWebhook Event Bridge - External
Id string - Webhook external ID. Using to linq webhook to alert.
- Jira
Get
Webhook Jira - Jira webhook.
- Microsoft
Teams GetWebhook Microsoft Teams - Microsoft Teams webhook. (Deprecated, please use microsoftteamsworkflow)
- Microsoft
Teams GetWorkflow Webhook Microsoft Teams Workflow - Microsoft Teams Workflow webhook.
- Name string
- Webhook name.
- Opsgenie
Get
Webhook Opsgenie - Opsgenie webhook.
- Pager
Duty GetWebhook Pager Duty - PagerDuty webhook.
- Sendlog
Get
Webhook Sendlog - Send log webhook.
- Slack
Get
Webhook Slack - Slack webhook.
- Id string
- Webhook ID.
- custom
Get
Webhook Custom - Generic webhook.
- demisto
Get
Webhook Demisto - Demisto webhook.
- email
Group GetWebhook Email Group - Email group webhook.
- event
Bridge GetWebhook Event Bridge - external
Id String - Webhook external ID. Using to linq webhook to alert.
- jira
Get
Webhook Jira - Jira webhook.
- microsoft
Teams GetWebhook Microsoft Teams - Microsoft Teams webhook. (Deprecated, please use microsoftteamsworkflow)
- microsoft
Teams GetWorkflow Webhook Microsoft Teams Workflow - Microsoft Teams Workflow webhook.
- name String
- Webhook name.
- opsgenie
Get
Webhook Opsgenie - Opsgenie webhook.
- pager
Duty GetWebhook Pager Duty - PagerDuty webhook.
- sendlog
Get
Webhook Sendlog - Send log webhook.
- slack
Get
Webhook Slack - Slack webhook.
- id String
- Webhook ID.
- custom
Get
Webhook Custom - Generic webhook.
- demisto
Get
Webhook Demisto - Demisto webhook.
- email
Group GetWebhook Email Group - Email group webhook.
- event
Bridge GetWebhook Event Bridge - external
Id string - Webhook external ID. Using to linq webhook to alert.
- jira
Get
Webhook Jira - Jira webhook.
- microsoft
Teams GetWebhook Microsoft Teams - Microsoft Teams webhook. (Deprecated, please use microsoftteamsworkflow)
- microsoft
Teams GetWorkflow Webhook Microsoft Teams Workflow - Microsoft Teams Workflow webhook.
- name string
- Webhook name.
- opsgenie
Get
Webhook Opsgenie - Opsgenie webhook.
- pager
Duty GetWebhook Pager Duty - PagerDuty webhook.
- sendlog
Get
Webhook Sendlog - Send log webhook.
- slack
Get
Webhook Slack - Slack webhook.
- id string
- Webhook ID.
- custom
Get
Webhook Custom - Generic webhook.
- demisto
Get
Webhook Demisto - Demisto webhook.
- email_
group GetWebhook Email Group - Email group webhook.
- event_
bridge GetWebhook Event Bridge - external_
id str - Webhook external ID. Using to linq webhook to alert.
- jira
Get
Webhook Jira - Jira webhook.
- microsoft_
teams GetWebhook Microsoft Teams - Microsoft Teams webhook. (Deprecated, please use microsoftteamsworkflow)
- microsoft_
teams_ Getworkflow Webhook Microsoft Teams Workflow - Microsoft Teams Workflow webhook.
- name str
- Webhook name.
- opsgenie
Get
Webhook Opsgenie - Opsgenie webhook.
- pager_
duty GetWebhook Pager Duty - PagerDuty webhook.
- sendlog
Get
Webhook Sendlog - Send log webhook.
- slack
Get
Webhook Slack - Slack webhook.
- id str
- Webhook ID.
- custom Property Map
- Generic webhook.
- demisto Property Map
- Demisto webhook.
- email
Group Property Map - Email group webhook.
- event
Bridge Property Map - external
Id String - Webhook external ID. Using to linq webhook to alert.
- jira Property Map
- Jira webhook.
- microsoft
Teams Property Map - Microsoft Teams webhook. (Deprecated, please use microsoftteamsworkflow)
- microsoft
Teams Property MapWorkflow - Microsoft Teams Workflow webhook.
- name String
- Webhook name.
- opsgenie Property Map
- Opsgenie webhook.
- pager
Duty Property Map - PagerDuty webhook.
- sendlog Property Map
- Send log webhook.
- slack Property Map
- Slack webhook.
- id String
- Webhook ID.
Supporting Types
GetWebhookCustom
GetWebhookDemisto
GetWebhookEmailGroup
- Emails List<string>
- Emails list.
- Emails []string
- Emails list.
- emails List<String>
- Emails list.
- emails string[]
- Emails list.
- emails Sequence[str]
- Emails list.
- emails List<String>
- Emails list.
GetWebhookEventBridge
- Detail string
- Event bridge message. JSON string. More details about the token "here"
- Detail
Type string - Free text to be included in the event.
- Event
Bus stringArn - Corresponds to the event bus, which will receive notifications. The policy attached must contain permission to publish.
- Role
Name string - Corresponds to the AWS IAM role that will be created in your account.
- Source string
- Free text is used to identify the messages Coralogix sends.
- Detail string
- Event bridge message. JSON string. More details about the token "here"
- Detail
Type string - Free text to be included in the event.
- Event
Bus stringArn - Corresponds to the event bus, which will receive notifications. The policy attached must contain permission to publish.
- Role
Name string - Corresponds to the AWS IAM role that will be created in your account.
- Source string
- Free text is used to identify the messages Coralogix sends.
- detail String
- Event bridge message. JSON string. More details about the token "here"
- detail
Type String - Free text to be included in the event.
- event
Bus StringArn - Corresponds to the event bus, which will receive notifications. The policy attached must contain permission to publish.
- role
Name String - Corresponds to the AWS IAM role that will be created in your account.
- source String
- Free text is used to identify the messages Coralogix sends.
- detail string
- Event bridge message. JSON string. More details about the token "here"
- detail
Type string - Free text to be included in the event.
- event
Bus stringArn - Corresponds to the event bus, which will receive notifications. The policy attached must contain permission to publish.
- role
Name string - Corresponds to the AWS IAM role that will be created in your account.
- source string
- Free text is used to identify the messages Coralogix sends.
- detail str
- Event bridge message. JSON string. More details about the token "here"
- detail_
type str - Free text to be included in the event.
- event_
bus_ strarn - Corresponds to the event bus, which will receive notifications. The policy attached must contain permission to publish.
- role_
name str - Corresponds to the AWS IAM role that will be created in your account.
- source str
- Free text is used to identify the messages Coralogix sends.
- detail String
- Event bridge message. JSON string. More details about the token "here"
- detail
Type String - Free text to be included in the event.
- event
Bus StringArn - Corresponds to the event bus, which will receive notifications. The policy attached must contain permission to publish.
- role
Name String - Corresponds to the AWS IAM role that will be created in your account.
- source String
- Free text is used to identify the messages Coralogix sends.
GetWebhookJira
- Api
Token string - Jira API token.
- Email string
- email.
- Project
Key string - Jira project key.
- Url string
- Jira URL.
- Api
Token string - Jira API token.
- Email string
- email.
- Project
Key string - Jira project key.
- Url string
- Jira URL.
- api
Token String - Jira API token.
- email String
- email.
- project
Key String - Jira project key.
- url String
- Jira URL.
- api
Token string - Jira API token.
- email string
- email.
- project
Key string - Jira project key.
- url string
- Jira URL.
- api_
token str - Jira API token.
- email str
- email.
- project_
key str - Jira project key.
- url str
- Jira URL.
- api
Token String - Jira API token.
- email String
- email.
- project
Key String - Jira project key.
- url String
- Jira URL.
GetWebhookMicrosoftTeams
- Url string
- Microsoft Teams URL.
- Url string
- Microsoft Teams URL.
- url String
- Microsoft Teams URL.
- url string
- Microsoft Teams URL.
- url str
- Microsoft Teams URL.
- url String
- Microsoft Teams URL.
GetWebhookMicrosoftTeamsWorkflow
- Url string
- Microsoft Teams Workflow URL.
- Url string
- Microsoft Teams Workflow URL.
- url String
- Microsoft Teams Workflow URL.
- url string
- Microsoft Teams Workflow URL.
- url str
- Microsoft Teams Workflow URL.
- url String
- Microsoft Teams Workflow URL.
GetWebhookOpsgenie
- Url string
- Opsgenie URL.
- Url string
- Opsgenie URL.
- url String
- Opsgenie URL.
- url string
- Opsgenie URL.
- url str
- Opsgenie URL.
- url String
- Opsgenie URL.
GetWebhookPagerDuty
- Service
Key string - PagerDuty service key.
- Service
Key string - PagerDuty service key.
- service
Key String - PagerDuty service key.
- service
Key string - PagerDuty service key.
- service_
key str - PagerDuty service key.
- service
Key String - PagerDuty service key.
GetWebhookSendlog
GetWebhookSlack
- Attachments
List<Get
Webhook Slack Attachment> - Slack attachments.
- Notify
Ons List<string> - Slack notifications. can be one of: datausage, errorandcriticallogs, flowanomalies, spikeanomalies
- Url string
- Slack URL.
- Attachments
[]Get
Webhook Slack Attachment - Slack attachments.
- Notify
Ons []string - Slack notifications. can be one of: datausage, errorandcriticallogs, flowanomalies, spikeanomalies
- Url string
- Slack URL.
- attachments
List<Get
Webhook Slack Attachment> - Slack attachments.
- notify
Ons List<String> - Slack notifications. can be one of: datausage, errorandcriticallogs, flowanomalies, spikeanomalies
- url String
- Slack URL.
- attachments
Get
Webhook Slack Attachment[] - Slack attachments.
- notify
Ons string[] - Slack notifications. can be one of: datausage, errorandcriticallogs, flowanomalies, spikeanomalies
- url string
- Slack URL.
- attachments
Sequence[Get
Webhook Slack Attachment] - Slack attachments.
- notify_
ons Sequence[str] - Slack notifications. can be one of: datausage, errorandcriticallogs, flowanomalies, spikeanomalies
- url str
- Slack URL.
- attachments List<Property Map>
- Slack attachments.
- notify
Ons List<String> - Slack notifications. can be one of: datausage, errorandcriticallogs, flowanomalies, spikeanomalies
- url String
- Slack URL.
GetWebhookSlackAttachment
Package Details
- Repository
- coralogix coralogix/terraform-provider-coralogix
- License
- Notes
- This Pulumi package is based on the
coralogix
Terraform Provider.
coralogix 2.0.17 published on Tuesday, Apr 22, 2025 by coralogix