1. Packages
  2. Juniper Mist
  3. API Docs
  4. getConstWebhooks
Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi

junipermist.getConstWebhooks

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi

    This data source provides the list of Webhook Topics. This information can be used to configure webhooks at the Org level or at the Site level with the junipermist.org.Webhook resource or the junipermist.site.Webhook resource.

    Only the Webhook topics with for_org== true are supported at the Org level.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const listOfWebhooks = junipermist.getConstWebhooks({});
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    list_of_webhooks = junipermist.get_const_webhooks()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-junipermist/sdk/go/junipermist"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := junipermist.GetConstWebhooks(ctx, map[string]interface{}{}, 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 listOfWebhooks = JuniperMist.GetConstWebhooks.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.JunipermistFunctions;
    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 listOfWebhooks = JunipermistFunctions.getConstWebhooks();
    
        }
    }
    
    variables:
      listOfWebhooks:
        fn::invoke:
          Function: junipermist:getConstWebhooks
          Arguments: {}
    

    Using getConstWebhooks

    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 getConstWebhooks(opts?: InvokeOptions): Promise<GetConstWebhooksResult>
    function getConstWebhooksOutput(opts?: InvokeOptions): Output<GetConstWebhooksResult>
    def get_const_webhooks(opts: Optional[InvokeOptions] = None) -> GetConstWebhooksResult
    def get_const_webhooks_output(opts: Optional[InvokeOptions] = None) -> Output[GetConstWebhooksResult]
    func GetConstWebhooks(ctx *Context, opts ...InvokeOption) (*GetConstWebhooksResult, error)
    func GetConstWebhooksOutput(ctx *Context, opts ...InvokeOption) GetConstWebhooksResultOutput

    > Note: This function is named GetConstWebhooks in the Go SDK.

    public static class GetConstWebhooks 
    {
        public static Task<GetConstWebhooksResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetConstWebhooksResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetConstWebhooksResult> getConstWebhooks(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: junipermist:index/getConstWebhooks:getConstWebhooks
      arguments:
        # arguments dictionary

    getConstWebhooks Result

    The following output properties are available:

    ConstWebhooks List<Pulumi.JuniperMist.Outputs.GetConstWebhooksConstWebhook>
    Id string
    The provider-assigned unique ID for this managed resource.
    ConstWebhooks []GetConstWebhooksConstWebhook
    Id string
    The provider-assigned unique ID for this managed resource.
    constWebhooks List<GetConstWebhooksConstWebhook>
    id String
    The provider-assigned unique ID for this managed resource.
    constWebhooks GetConstWebhooksConstWebhook[]
    id string
    The provider-assigned unique ID for this managed resource.
    const_webhooks Sequence[GetConstWebhooksConstWebhook]
    id str
    The provider-assigned unique ID for this managed resource.
    constWebhooks List<Property Map>
    id String
    The provider-assigned unique ID for this managed resource.

    Supporting Types

    GetConstWebhooksConstWebhook

    ForOrg bool
    can be used in org webhooks, optional
    HasDeliveryResults bool
    supports webhook delivery results /api/v1/:scope/:scopeid/webhooks/:webhookid/events/search
    Internal bool
    internal topic (not selectable in site/org webhooks)
    Key string
    webhook topic name
    ForOrg bool
    can be used in org webhooks, optional
    HasDeliveryResults bool
    supports webhook delivery results /api/v1/:scope/:scopeid/webhooks/:webhookid/events/search
    Internal bool
    internal topic (not selectable in site/org webhooks)
    Key string
    webhook topic name
    forOrg Boolean
    can be used in org webhooks, optional
    hasDeliveryResults Boolean
    supports webhook delivery results /api/v1/:scope/:scopeid/webhooks/:webhookid/events/search
    internal Boolean
    internal topic (not selectable in site/org webhooks)
    key String
    webhook topic name
    forOrg boolean
    can be used in org webhooks, optional
    hasDeliveryResults boolean
    supports webhook delivery results /api/v1/:scope/:scopeid/webhooks/:webhookid/events/search
    internal boolean
    internal topic (not selectable in site/org webhooks)
    key string
    webhook topic name
    for_org bool
    can be used in org webhooks, optional
    has_delivery_results bool
    supports webhook delivery results /api/v1/:scope/:scopeid/webhooks/:webhookid/events/search
    internal bool
    internal topic (not selectable in site/org webhooks)
    key str
    webhook topic name
    forOrg Boolean
    can be used in org webhooks, optional
    hasDeliveryResults Boolean
    supports webhook delivery results /api/v1/:scope/:scopeid/webhooks/:webhookid/events/search
    internal Boolean
    internal topic (not selectable in site/org webhooks)
    key String
    webhook topic name

    Package Details

    Repository
    junipermist pulumi/pulumi-junipermist
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the mist Terraform Provider.
    junipermist logo
    Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi