junipermist.site.Webhook
Explore with Pulumi AI
This resource manages Site Webhooks.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/juniper-mist";
const webhookOne = new junipermist.site.Webhook("webhook_one", {
siteId: terraformSite.id,
name: "webhook_one",
type: "http-post",
url: "https://myserver.com:4321/",
verifyCert: false,
enabled: true,
topics: [
"device-events",
"alarms",
"audits",
"client-join",
"client-info",
"client-sessions",
"device-updowns",
"mxedge-events",
"nac-events",
"nac-accounting",
],
});
import pulumi
import pulumi_juniper_mist as junipermist
webhook_one = junipermist.site.Webhook("webhook_one",
site_id=terraform_site["id"],
name="webhook_one",
type="http-post",
url="https://myserver.com:4321/",
verify_cert=False,
enabled=True,
topics=[
"device-events",
"alarms",
"audits",
"client-join",
"client-info",
"client-sessions",
"device-updowns",
"mxedge-events",
"nac-events",
"nac-accounting",
])
package main
import (
"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/site"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := site.NewWebhook(ctx, "webhook_one", &site.WebhookArgs{
SiteId: pulumi.Any(terraformSite.Id),
Name: pulumi.String("webhook_one"),
Type: pulumi.String("http-post"),
Url: pulumi.String("https://myserver.com:4321/"),
VerifyCert: pulumi.Bool(false),
Enabled: pulumi.Bool(true),
Topics: pulumi.StringArray{
pulumi.String("device-events"),
pulumi.String("alarms"),
pulumi.String("audits"),
pulumi.String("client-join"),
pulumi.String("client-info"),
pulumi.String("client-sessions"),
pulumi.String("device-updowns"),
pulumi.String("mxedge-events"),
pulumi.String("nac-events"),
pulumi.String("nac-accounting"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using JuniperMist = Pulumi.JuniperMist;
return await Deployment.RunAsync(() =>
{
var webhookOne = new JuniperMist.Site.Webhook("webhook_one", new()
{
SiteId = terraformSite.Id,
Name = "webhook_one",
Type = "http-post",
Url = "https://myserver.com:4321/",
VerifyCert = false,
Enabled = true,
Topics = new[]
{
"device-events",
"alarms",
"audits",
"client-join",
"client-info",
"client-sessions",
"device-updowns",
"mxedge-events",
"nac-events",
"nac-accounting",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.site.Webhook;
import com.pulumi.junipermist.site.WebhookArgs;
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 webhookOne = new Webhook("webhookOne", WebhookArgs.builder()
.siteId(terraformSite.id())
.name("webhook_one")
.type("http-post")
.url("https://myserver.com:4321/")
.verifyCert(false)
.enabled(true)
.topics(
"device-events",
"alarms",
"audits",
"client-join",
"client-info",
"client-sessions",
"device-updowns",
"mxedge-events",
"nac-events",
"nac-accounting")
.build());
}
}
resources:
webhookOne:
type: junipermist:site:Webhook
name: webhook_one
properties:
siteId: ${terraformSite.id}
name: webhook_one
type: http-post
url: https://myserver.com:4321/
verifyCert: false
enabled: true
topics:
- device-events
- alarms
- audits
- client-join
- client-info
- client-sessions
- device-updowns
- mxedge-events
- nac-events
- nac-accounting
Create Webhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Webhook(name: string, args: WebhookArgs, opts?: CustomResourceOptions);
@overload
def Webhook(resource_name: str,
args: WebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Webhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
site_id: Optional[str] = None,
url: Optional[str] = None,
topics: Optional[Sequence[str]] = None,
oauth2_token_url: Optional[str] = None,
secret: Optional[str] = None,
oauth2_grant_type: Optional[str] = None,
oauth2_password: Optional[str] = None,
oauth2_scopes: Optional[Sequence[str]] = None,
enabled: Optional[bool] = None,
oauth2_username: Optional[str] = None,
oauth2_client_secret: Optional[str] = None,
oauth2_client_id: Optional[str] = None,
splunk_token: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
headers: Optional[Mapping[str, str]] = None,
verify_cert: Optional[bool] = None)
func NewWebhook(ctx *Context, name string, args WebhookArgs, opts ...ResourceOption) (*Webhook, error)
public Webhook(string name, WebhookArgs args, CustomResourceOptions? opts = null)
public Webhook(String name, WebhookArgs args)
public Webhook(String name, WebhookArgs args, CustomResourceOptions options)
type: junipermist:site:Webhook
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 WebhookArgs
- 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 WebhookArgs
- 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 WebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WebhookArgs
- 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 junipermistWebhookResource = new JuniperMist.Site.Webhook("junipermistWebhookResource", new()
{
SiteId = "string",
Url = "string",
Topics = new[]
{
"string",
},
Oauth2TokenUrl = "string",
Secret = "string",
Oauth2GrantType = "string",
Oauth2Password = "string",
Oauth2Scopes = new[]
{
"string",
},
Enabled = false,
Oauth2Username = "string",
Oauth2ClientSecret = "string",
Oauth2ClientId = "string",
SplunkToken = "string",
Name = "string",
Type = "string",
Headers =
{
{ "string", "string" },
},
VerifyCert = false,
});
example, err := site.NewWebhook(ctx, "junipermistWebhookResource", &site.WebhookArgs{
SiteId: pulumi.String("string"),
Url: pulumi.String("string"),
Topics: pulumi.StringArray{
pulumi.String("string"),
},
Oauth2TokenUrl: pulumi.String("string"),
Secret: pulumi.String("string"),
Oauth2GrantType: pulumi.String("string"),
Oauth2Password: pulumi.String("string"),
Oauth2Scopes: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Oauth2Username: pulumi.String("string"),
Oauth2ClientSecret: pulumi.String("string"),
Oauth2ClientId: pulumi.String("string"),
SplunkToken: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Headers: pulumi.StringMap{
"string": pulumi.String("string"),
},
VerifyCert: pulumi.Bool(false),
})
var junipermistWebhookResource = new Webhook("junipermistWebhookResource", WebhookArgs.builder()
.siteId("string")
.url("string")
.topics("string")
.oauth2TokenUrl("string")
.secret("string")
.oauth2GrantType("string")
.oauth2Password("string")
.oauth2Scopes("string")
.enabled(false)
.oauth2Username("string")
.oauth2ClientSecret("string")
.oauth2ClientId("string")
.splunkToken("string")
.name("string")
.type("string")
.headers(Map.of("string", "string"))
.verifyCert(false)
.build());
junipermist_webhook_resource = junipermist.site.Webhook("junipermistWebhookResource",
site_id="string",
url="string",
topics=["string"],
oauth2_token_url="string",
secret="string",
oauth2_grant_type="string",
oauth2_password="string",
oauth2_scopes=["string"],
enabled=False,
oauth2_username="string",
oauth2_client_secret="string",
oauth2_client_id="string",
splunk_token="string",
name="string",
type="string",
headers={
"string": "string",
},
verify_cert=False)
const junipermistWebhookResource = new junipermist.site.Webhook("junipermistWebhookResource", {
siteId: "string",
url: "string",
topics: ["string"],
oauth2TokenUrl: "string",
secret: "string",
oauth2GrantType: "string",
oauth2Password: "string",
oauth2Scopes: ["string"],
enabled: false,
oauth2Username: "string",
oauth2ClientSecret: "string",
oauth2ClientId: "string",
splunkToken: "string",
name: "string",
type: "string",
headers: {
string: "string",
},
verifyCert: false,
});
type: junipermist:site:Webhook
properties:
enabled: false
headers:
string: string
name: string
oauth2ClientId: string
oauth2ClientSecret: string
oauth2GrantType: string
oauth2Password: string
oauth2Scopes:
- string
oauth2TokenUrl: string
oauth2Username: string
secret: string
siteId: string
splunkToken: string
topics:
- string
type: string
url: string
verifyCert: false
Webhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Webhook resource accepts the following input properties:
- Site
Id string - Topics List<string>
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- Url string
- Enabled bool
- whether webhook is enabled
- Headers Dictionary<string, string>
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - Name string
- name of the webhook
- Oauth2Client
Id string - required when
oauth2_grant_type
==client_credentials
- Oauth2Client
Secret string - required when
oauth2_grant_type
==client_credentials
- Oauth2Grant
Type string - required when
type
==oauth2
. enum:client_credentials
,password
- Oauth2Password string
- required when
oauth2_grant_type
==password
- Oauth2Scopes List<string>
- required when
type
==oauth2
, if provided, will be used in the token request - Oauth2Token
Url string - required when
type
==oauth2
- Oauth2Username string
- required when
oauth2_grant_type
==password
- Secret string
- only if
type
=http-post
- Splunk
Token string - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - Type string
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- Verify
Cert bool - when url uses HTTPS, whether to verify the certificate
- Site
Id string - Topics []string
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- Url string
- Enabled bool
- whether webhook is enabled
- Headers map[string]string
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - Name string
- name of the webhook
- Oauth2Client
Id string - required when
oauth2_grant_type
==client_credentials
- Oauth2Client
Secret string - required when
oauth2_grant_type
==client_credentials
- Oauth2Grant
Type string - required when
type
==oauth2
. enum:client_credentials
,password
- Oauth2Password string
- required when
oauth2_grant_type
==password
- Oauth2Scopes []string
- required when
type
==oauth2
, if provided, will be used in the token request - Oauth2Token
Url string - required when
type
==oauth2
- Oauth2Username string
- required when
oauth2_grant_type
==password
- Secret string
- only if
type
=http-post
- Splunk
Token string - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - Type string
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- Verify
Cert bool - when url uses HTTPS, whether to verify the certificate
- site
Id String - topics List<String>
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- url String
- enabled Boolean
- whether webhook is enabled
- headers Map<String,String>
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - name String
- name of the webhook
- oauth2Client
Id String - required when
oauth2_grant_type
==client_credentials
- oauth2Client
Secret String - required when
oauth2_grant_type
==client_credentials
- oauth2Grant
Type String - required when
type
==oauth2
. enum:client_credentials
,password
- oauth2Password String
- required when
oauth2_grant_type
==password
- oauth2Scopes List<String>
- required when
type
==oauth2
, if provided, will be used in the token request - oauth2Token
Url String - required when
type
==oauth2
- oauth2Username String
- required when
oauth2_grant_type
==password
- secret String
- only if
type
=http-post
- splunk
Token String - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - type String
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- verify
Cert Boolean - when url uses HTTPS, whether to verify the certificate
- site
Id string - topics string[]
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- url string
- enabled boolean
- whether webhook is enabled
- headers {[key: string]: string}
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - name string
- name of the webhook
- oauth2Client
Id string - required when
oauth2_grant_type
==client_credentials
- oauth2Client
Secret string - required when
oauth2_grant_type
==client_credentials
- oauth2Grant
Type string - required when
type
==oauth2
. enum:client_credentials
,password
- oauth2Password string
- required when
oauth2_grant_type
==password
- oauth2Scopes string[]
- required when
type
==oauth2
, if provided, will be used in the token request - oauth2Token
Url string - required when
type
==oauth2
- oauth2Username string
- required when
oauth2_grant_type
==password
- secret string
- only if
type
=http-post
- splunk
Token string - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - type string
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- verify
Cert boolean - when url uses HTTPS, whether to verify the certificate
- site_
id str - topics Sequence[str]
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- url str
- enabled bool
- whether webhook is enabled
- headers Mapping[str, str]
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - name str
- name of the webhook
- oauth2_
client_ strid - required when
oauth2_grant_type
==client_credentials
- oauth2_
client_ strsecret - required when
oauth2_grant_type
==client_credentials
- oauth2_
grant_ strtype - required when
type
==oauth2
. enum:client_credentials
,password
- oauth2_
password str - required when
oauth2_grant_type
==password
- oauth2_
scopes Sequence[str] - required when
type
==oauth2
, if provided, will be used in the token request - oauth2_
token_ strurl - required when
type
==oauth2
- oauth2_
username str - required when
oauth2_grant_type
==password
- secret str
- only if
type
=http-post
- splunk_
token str - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - type str
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- verify_
cert bool - when url uses HTTPS, whether to verify the certificate
- site
Id String - topics List<String>
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- url String
- enabled Boolean
- whether webhook is enabled
- headers Map<String>
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - name String
- name of the webhook
- oauth2Client
Id String - required when
oauth2_grant_type
==client_credentials
- oauth2Client
Secret String - required when
oauth2_grant_type
==client_credentials
- oauth2Grant
Type String - required when
type
==oauth2
. enum:client_credentials
,password
- oauth2Password String
- required when
oauth2_grant_type
==password
- oauth2Scopes List<String>
- required when
type
==oauth2
, if provided, will be used in the token request - oauth2Token
Url String - required when
type
==oauth2
- oauth2Username String
- required when
oauth2_grant_type
==password
- secret String
- only if
type
=http-post
- splunk
Token String - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - type String
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- verify
Cert Boolean - when url uses HTTPS, whether to verify the certificate
Outputs
All input properties are implicitly available as output properties. Additionally, the Webhook resource produces the following output properties:
Look up Existing Webhook Resource
Get an existing Webhook 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?: WebhookState, opts?: CustomResourceOptions): Webhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
headers: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
oauth2_client_id: Optional[str] = None,
oauth2_client_secret: Optional[str] = None,
oauth2_grant_type: Optional[str] = None,
oauth2_password: Optional[str] = None,
oauth2_scopes: Optional[Sequence[str]] = None,
oauth2_token_url: Optional[str] = None,
oauth2_username: Optional[str] = None,
org_id: Optional[str] = None,
secret: Optional[str] = None,
site_id: Optional[str] = None,
splunk_token: Optional[str] = None,
topics: Optional[Sequence[str]] = None,
type: Optional[str] = None,
url: Optional[str] = None,
verify_cert: Optional[bool] = None) -> Webhook
func GetWebhook(ctx *Context, name string, id IDInput, state *WebhookState, opts ...ResourceOption) (*Webhook, error)
public static Webhook Get(string name, Input<string> id, WebhookState? state, CustomResourceOptions? opts = null)
public static Webhook get(String name, Output<String> id, WebhookState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Enabled bool
- whether webhook is enabled
- Headers Dictionary<string, string>
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - Name string
- name of the webhook
- Oauth2Client
Id string - required when
oauth2_grant_type
==client_credentials
- Oauth2Client
Secret string - required when
oauth2_grant_type
==client_credentials
- Oauth2Grant
Type string - required when
type
==oauth2
. enum:client_credentials
,password
- Oauth2Password string
- required when
oauth2_grant_type
==password
- Oauth2Scopes List<string>
- required when
type
==oauth2
, if provided, will be used in the token request - Oauth2Token
Url string - required when
type
==oauth2
- Oauth2Username string
- required when
oauth2_grant_type
==password
- Org
Id string - Secret string
- only if
type
=http-post
- Site
Id string - Splunk
Token string - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - Topics List<string>
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- Type string
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- Url string
- Verify
Cert bool - when url uses HTTPS, whether to verify the certificate
- Enabled bool
- whether webhook is enabled
- Headers map[string]string
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - Name string
- name of the webhook
- Oauth2Client
Id string - required when
oauth2_grant_type
==client_credentials
- Oauth2Client
Secret string - required when
oauth2_grant_type
==client_credentials
- Oauth2Grant
Type string - required when
type
==oauth2
. enum:client_credentials
,password
- Oauth2Password string
- required when
oauth2_grant_type
==password
- Oauth2Scopes []string
- required when
type
==oauth2
, if provided, will be used in the token request - Oauth2Token
Url string - required when
type
==oauth2
- Oauth2Username string
- required when
oauth2_grant_type
==password
- Org
Id string - Secret string
- only if
type
=http-post
- Site
Id string - Splunk
Token string - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - Topics []string
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- Type string
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- Url string
- Verify
Cert bool - when url uses HTTPS, whether to verify the certificate
- enabled Boolean
- whether webhook is enabled
- headers Map<String,String>
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - name String
- name of the webhook
- oauth2Client
Id String - required when
oauth2_grant_type
==client_credentials
- oauth2Client
Secret String - required when
oauth2_grant_type
==client_credentials
- oauth2Grant
Type String - required when
type
==oauth2
. enum:client_credentials
,password
- oauth2Password String
- required when
oauth2_grant_type
==password
- oauth2Scopes List<String>
- required when
type
==oauth2
, if provided, will be used in the token request - oauth2Token
Url String - required when
type
==oauth2
- oauth2Username String
- required when
oauth2_grant_type
==password
- org
Id String - secret String
- only if
type
=http-post
- site
Id String - splunk
Token String - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - topics List<String>
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- type String
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- url String
- verify
Cert Boolean - when url uses HTTPS, whether to verify the certificate
- enabled boolean
- whether webhook is enabled
- headers {[key: string]: string}
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - name string
- name of the webhook
- oauth2Client
Id string - required when
oauth2_grant_type
==client_credentials
- oauth2Client
Secret string - required when
oauth2_grant_type
==client_credentials
- oauth2Grant
Type string - required when
type
==oauth2
. enum:client_credentials
,password
- oauth2Password string
- required when
oauth2_grant_type
==password
- oauth2Scopes string[]
- required when
type
==oauth2
, if provided, will be used in the token request - oauth2Token
Url string - required when
type
==oauth2
- oauth2Username string
- required when
oauth2_grant_type
==password
- org
Id string - secret string
- only if
type
=http-post
- site
Id string - splunk
Token string - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - topics string[]
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- type string
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- url string
- verify
Cert boolean - when url uses HTTPS, whether to verify the certificate
- enabled bool
- whether webhook is enabled
- headers Mapping[str, str]
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - name str
- name of the webhook
- oauth2_
client_ strid - required when
oauth2_grant_type
==client_credentials
- oauth2_
client_ strsecret - required when
oauth2_grant_type
==client_credentials
- oauth2_
grant_ strtype - required when
type
==oauth2
. enum:client_credentials
,password
- oauth2_
password str - required when
oauth2_grant_type
==password
- oauth2_
scopes Sequence[str] - required when
type
==oauth2
, if provided, will be used in the token request - oauth2_
token_ strurl - required when
type
==oauth2
- oauth2_
username str - required when
oauth2_grant_type
==password
- org_
id str - secret str
- only if
type
=http-post
- site_
id str - splunk_
token str - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - topics Sequence[str]
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- type str
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- url str
- verify_
cert bool - when url uses HTTPS, whether to verify the certificate
- enabled Boolean
- whether webhook is enabled
- headers Map<String>
- if
type
=http-post
, additional custom HTTP headers to add the headers name and value must be string, total bytes of headers name and value must be less than 1000 - name String
- name of the webhook
- oauth2Client
Id String - required when
oauth2_grant_type
==client_credentials
- oauth2Client
Secret String - required when
oauth2_grant_type
==client_credentials
- oauth2Grant
Type String - required when
type
==oauth2
. enum:client_credentials
,password
- oauth2Password String
- required when
oauth2_grant_type
==password
- oauth2Scopes List<String>
- required when
type
==oauth2
, if provided, will be used in the token request - oauth2Token
Url String - required when
type
==oauth2
- oauth2Username String
- required when
oauth2_grant_type
==password
- org
Id String - secret String
- only if
type
=http-post
- site
Id String - splunk
Token String - required if
type
=splunk
If splunk_token is not defined for a type Splunk webhook, it will not send, regardless if the webhook receiver is configured to accept it.' - topics List<String>
- enum:
alarms
,asset-raw
,asset-raw-rssi
,audits
,client-info
,client-join
,client-latency
,client-sessions
,device-updowns
,device-events
,discovered-raw-rssi
,location
,location_asset
,location_centrak
,location_client
,location_sdk
,location_unclient
,mxedge-events
,nac-accounting
,nac_events
,occupancy-alerts
,rssizone
,sdkclient_scan_data
,site_sle
,vbeacon
,wifi-conn-raw
,wifi-unconn-raw
,zone
- type String
- enum:
aws-sns
,google-pubsub
,http-post
,oauth2
,splunk
- url String
- verify
Cert Boolean - when url uses HTTPS, whether to verify the certificate
Import
Using pulumi import
, import mist_site_webhook
with:
Site Webhook can be imported by specifying the site_id and the webhook_id
$ pulumi import junipermist:site/webhook:Webhook webhook_one 17b46405-3a6d-4715-8bb4-6bb6d06f316a.d3c42998-9012-4859-9743-6b9bee475309
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mist
Terraform Provider.