Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi
junipermist.org.getWebhooks
Explore with Pulumi AI
This data source provides the list of Org Webhooks.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as junipermist from "@pulumi/junipermist";
const webhooks = junipermist.org.getWebhooks({
orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
});
import pulumi
import pulumi_junipermist as junipermist
webhooks = junipermist.org.get_webhooks(org_id="15fca2ac-b1a6-47cc-9953-cc6906281550")
package main
import (
"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist/org"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := org.GetWebhooks(ctx, &org.GetWebhooksArgs{
OrgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
}, nil)
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 webhooks = JuniperMist.Org.GetWebhooks.Invoke(new()
{
OrgId = "15fca2ac-b1a6-47cc-9953-cc6906281550",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.junipermist.org.OrgFunctions;
import com.pulumi.junipermist.org.inputs.GetWebhooksArgs;
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 webhooks = OrgFunctions.getWebhooks(GetWebhooksArgs.builder()
.orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
.build());
}
}
variables:
webhooks:
fn::invoke:
Function: junipermist:org:getWebhooks
Arguments:
orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
Using getWebhooks
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 getWebhooks(args: GetWebhooksArgs, opts?: InvokeOptions): Promise<GetWebhooksResult>
function getWebhooksOutput(args: GetWebhooksOutputArgs, opts?: InvokeOptions): Output<GetWebhooksResult>
def get_webhooks(limit: Optional[int] = None,
org_id: Optional[str] = None,
page: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetWebhooksResult
def get_webhooks_output(limit: Optional[pulumi.Input[int]] = None,
org_id: Optional[pulumi.Input[str]] = None,
page: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetWebhooksResult]
func GetWebhooks(ctx *Context, args *GetWebhooksArgs, opts ...InvokeOption) (*GetWebhooksResult, error)
func GetWebhooksOutput(ctx *Context, args *GetWebhooksOutputArgs, opts ...InvokeOption) GetWebhooksResultOutput
> Note: This function is named GetWebhooks
in the Go SDK.
public static class GetWebhooks
{
public static Task<GetWebhooksResult> InvokeAsync(GetWebhooksArgs args, InvokeOptions? opts = null)
public static Output<GetWebhooksResult> Invoke(GetWebhooksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWebhooksResult> getWebhooks(GetWebhooksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: junipermist:org/getWebhooks:getWebhooks
arguments:
# arguments dictionary
The following arguments are supported:
getWebhooks Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Org
Webhooks List<Pulumi.Juniper Mist. Org. Outputs. Get Webhooks Org Webhook> - Limit int
- Page int
- Id string
- The provider-assigned unique ID for this managed resource.
- Org
Id string - Org
Webhooks []GetWebhooks Org Webhook - Limit int
- Page int
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - org
Webhooks List<GetWebhooks Org Webhook> - limit Integer
- page Integer
- id string
- The provider-assigned unique ID for this managed resource.
- org
Id string - org
Webhooks GetWebhooks Org Webhook[] - limit number
- page number
- id str
- The provider-assigned unique ID for this managed resource.
- org_
id str - org_
webhooks Sequence[GetWebhooks Org Webhook] - limit int
- page int
- id String
- The provider-assigned unique ID for this managed resource.
- org
Id String - org
Webhooks List<Property Map> - limit Number
- page Number
Supporting Types
GetWebhooksOrgWebhook
- Created
Time double - 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 - Id string
- Modified
Time double - 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>
- N.B. For org webhooks, only device_events/alarms/audits/client-join/client-sessions/nac-sessions/nac_events topics are supported.
- 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
- Created
Time float64 - 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 - Id string
- Modified
Time float64 - 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
- N.B. For org webhooks, only device_events/alarms/audits/client-join/client-sessions/nac-sessions/nac_events topics are supported.
- 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
- created
Time Double - 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 - id String
- modified
Time Double - 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>
- N.B. For org webhooks, only device_events/alarms/audits/client-join/client-sessions/nac-sessions/nac_events topics are supported.
- 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
- created
Time number - 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 - id string
- modified
Time number - 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[]
- N.B. For org webhooks, only device_events/alarms/audits/client-join/client-sessions/nac-sessions/nac_events topics are supported.
- 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
- created_
time float - 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 - id str
- modified_
time float - 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]
- N.B. For org webhooks, only device_events/alarms/audits/client-join/client-sessions/nac-sessions/nac_events topics are supported.
- 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
- created
Time Number - 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 - id String
- modified
Time Number - 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>
- N.B. For org webhooks, only device_events/alarms/audits/client-join/client-sessions/nac-sessions/nac_events topics are supported.
- 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
Package Details
- Repository
- junipermist pulumi/pulumi-junipermist
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mist
Terraform Provider.