1. Packages
  2. Juniper Mist
  3. API Docs
  4. org
  5. getGatewaytemplates
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

junipermist.org.getGatewaytemplates

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.0.27 published on Friday, Sep 27, 2024 by Pulumi

    This data source provides the list of Gateway Templates. A Gateway template can be used to define generic gateway configuration at the org level andbe applied to one or multiple Sites. It works like a blueprint of the network of the site.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const templates = junipermist.org.getGatewaytemplates({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    templates = junipermist.org.get_gatewaytemplates(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.GetGatewaytemplates(ctx, &org.GetGatewaytemplatesArgs{
    			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 templates = JuniperMist.Org.GetGatewaytemplates.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.GetGatewaytemplatesArgs;
    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 templates = OrgFunctions.getGatewaytemplates(GetGatewaytemplatesArgs.builder()
                .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
                .build());
    
        }
    }
    
    variables:
      templates:
        fn::invoke:
          Function: junipermist:org:getGatewaytemplates
          Arguments:
            orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
    

    Using getGatewaytemplates

    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 getGatewaytemplates(args: GetGatewaytemplatesArgs, opts?: InvokeOptions): Promise<GetGatewaytemplatesResult>
    function getGatewaytemplatesOutput(args: GetGatewaytemplatesOutputArgs, opts?: InvokeOptions): Output<GetGatewaytemplatesResult>
    def get_gatewaytemplates(org_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetGatewaytemplatesResult
    def get_gatewaytemplates_output(org_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetGatewaytemplatesResult]
    func GetGatewaytemplates(ctx *Context, args *GetGatewaytemplatesArgs, opts ...InvokeOption) (*GetGatewaytemplatesResult, error)
    func GetGatewaytemplatesOutput(ctx *Context, args *GetGatewaytemplatesOutputArgs, opts ...InvokeOption) GetGatewaytemplatesResultOutput

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

    public static class GetGatewaytemplates 
    {
        public static Task<GetGatewaytemplatesResult> InvokeAsync(GetGatewaytemplatesArgs args, InvokeOptions? opts = null)
        public static Output<GetGatewaytemplatesResult> Invoke(GetGatewaytemplatesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGatewaytemplatesResult> getGatewaytemplates(GetGatewaytemplatesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: junipermist:org/getGatewaytemplates:getGatewaytemplates
      arguments:
        # arguments dictionary

    The following arguments are supported:

    OrgId string
    OrgId string
    orgId String
    orgId string
    org_id str
    orgId String

    getGatewaytemplates Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrgGatewaytemplates List<Pulumi.JuniperMist.Org.Outputs.GetGatewaytemplatesOrgGatewaytemplate>
    OrgId string
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgGatewaytemplates []GetGatewaytemplatesOrgGatewaytemplate
    OrgId string
    id String
    The provider-assigned unique ID for this managed resource.
    orgGatewaytemplates List<GetGatewaytemplatesOrgGatewaytemplate>
    orgId String
    id string
    The provider-assigned unique ID for this managed resource.
    orgGatewaytemplates GetGatewaytemplatesOrgGatewaytemplate[]
    orgId string
    id str
    The provider-assigned unique ID for this managed resource.
    org_gatewaytemplates Sequence[GetGatewaytemplatesOrgGatewaytemplate]
    org_id str
    id String
    The provider-assigned unique ID for this managed resource.
    orgGatewaytemplates List<Property Map>
    orgId String

    Supporting Types

    GetGatewaytemplatesOrgGatewaytemplate

    CreatedTime double
    Id string
    ModifiedTime double
    Name string
    OrgId string
    CreatedTime float64
    Id string
    ModifiedTime float64
    Name string
    OrgId string
    createdTime Double
    id String
    modifiedTime Double
    name String
    orgId String
    createdTime number
    id string
    modifiedTime number
    name string
    orgId string
    createdTime Number
    id String
    modifiedTime Number
    name String
    orgId String

    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.0.27 published on Friday, Sep 27, 2024 by Pulumi