1. Packages
  2. Juniper Mist Provider
  3. API Docs
  4. org
  5. getVpns
Juniper Mist v0.4.0 published on Wednesday, Apr 16, 2025 by Pulumi

junipermist.org.getVpns

Explore with Pulumi AI

junipermist logo
Juniper Mist v0.4.0 published on Wednesday, Apr 16, 2025 by Pulumi

    This data source provide the list of the Org VPNs.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as junipermist from "@pulumi/junipermist";
    
    const vpns = junipermist.org.getVpns({
        orgId: "15fca2ac-b1a6-47cc-9953-cc6906281550",
    });
    
    import pulumi
    import pulumi_junipermist as junipermist
    
    vpns = junipermist.org.get_vpns(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.GetVpns(ctx, &org.GetVpnsArgs{
    			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 vpns = JuniperMist.Org.GetVpns.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.GetVpnsArgs;
    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 vpns = OrgFunctions.getVpns(GetVpnsArgs.builder()
                .orgId("15fca2ac-b1a6-47cc-9953-cc6906281550")
                .build());
    
        }
    }
    
    variables:
      vpns:
        fn::invoke:
          function: junipermist:org:getVpns
          arguments:
            orgId: 15fca2ac-b1a6-47cc-9953-cc6906281550
    

    Using getVpns

    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 getVpns(args: GetVpnsArgs, opts?: InvokeOptions): Promise<GetVpnsResult>
    function getVpnsOutput(args: GetVpnsOutputArgs, opts?: InvokeOptions): Output<GetVpnsResult>
    def get_vpns(org_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetVpnsResult
    def get_vpns_output(org_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetVpnsResult]
    func GetVpns(ctx *Context, args *GetVpnsArgs, opts ...InvokeOption) (*GetVpnsResult, error)
    func GetVpnsOutput(ctx *Context, args *GetVpnsOutputArgs, opts ...InvokeOption) GetVpnsResultOutput

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

    public static class GetVpns 
    {
        public static Task<GetVpnsResult> InvokeAsync(GetVpnsArgs args, InvokeOptions? opts = null)
        public static Output<GetVpnsResult> Invoke(GetVpnsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVpnsResult> getVpns(GetVpnsArgs args, InvokeOptions options)
    public static Output<GetVpnsResult> getVpns(GetVpnsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: junipermist:org/getVpns:getVpns
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getVpns Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgVpns List<Pulumi.JuniperMist.Org.Outputs.GetVpnsOrgVpn>
    Id string
    The provider-assigned unique ID for this managed resource.
    OrgId string
    OrgVpns []GetVpnsOrgVpn
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgVpns List<GetVpnsOrgVpn>
    id string
    The provider-assigned unique ID for this managed resource.
    orgId string
    orgVpns GetVpnsOrgVpn[]
    id str
    The provider-assigned unique ID for this managed resource.
    org_id str
    org_vpns Sequence[GetVpnsOrgVpn]
    id String
    The provider-assigned unique ID for this managed resource.
    orgId String
    orgVpns List<Property Map>

    Supporting Types

    GetVpnsOrgVpn

    CreatedTime double
    When the object has been created, in epoch
    Id string
    Unique ID of the object instance in the Mist Organization
    ModifiedTime double
    When the object has been modified for the last time, in epoch
    Name string
    OrgId string
    PathSelection Pulumi.JuniperMist.Org.Inputs.GetVpnsOrgVpnPathSelection
    Only if type==hub_spoke
    Paths Dictionary<string, Pulumi.JuniperMist.Org.Inputs.GetVpnsOrgVpnPaths>
    For type==hub_spoke, Property key is the VPN name. For type==mesh, Property key is the Interface name
    Type string
    enum: hub_spoke, mesh
    CreatedTime float64
    When the object has been created, in epoch
    Id string
    Unique ID of the object instance in the Mist Organization
    ModifiedTime float64
    When the object has been modified for the last time, in epoch
    Name string
    OrgId string
    PathSelection GetVpnsOrgVpnPathSelection
    Only if type==hub_spoke
    Paths map[string]GetVpnsOrgVpnPaths
    For type==hub_spoke, Property key is the VPN name. For type==mesh, Property key is the Interface name
    Type string
    enum: hub_spoke, mesh
    createdTime Double
    When the object has been created, in epoch
    id String
    Unique ID of the object instance in the Mist Organization
    modifiedTime Double
    When the object has been modified for the last time, in epoch
    name String
    orgId String
    pathSelection GetVpnsOrgVpnPathSelection
    Only if type==hub_spoke
    paths Map<String,GetVpnsOrgVpnPaths>
    For type==hub_spoke, Property key is the VPN name. For type==mesh, Property key is the Interface name
    type String
    enum: hub_spoke, mesh
    createdTime number
    When the object has been created, in epoch
    id string
    Unique ID of the object instance in the Mist Organization
    modifiedTime number
    When the object has been modified for the last time, in epoch
    name string
    orgId string
    pathSelection GetVpnsOrgVpnPathSelection
    Only if type==hub_spoke
    paths {[key: string]: GetVpnsOrgVpnPaths}
    For type==hub_spoke, Property key is the VPN name. For type==mesh, Property key is the Interface name
    type string
    enum: hub_spoke, mesh
    created_time float
    When the object has been created, in epoch
    id str
    Unique ID of the object instance in the Mist Organization
    modified_time float
    When the object has been modified for the last time, in epoch
    name str
    org_id str
    path_selection GetVpnsOrgVpnPathSelection
    Only if type==hub_spoke
    paths Mapping[str, GetVpnsOrgVpnPaths]
    For type==hub_spoke, Property key is the VPN name. For type==mesh, Property key is the Interface name
    type str
    enum: hub_spoke, mesh
    createdTime Number
    When the object has been created, in epoch
    id String
    Unique ID of the object instance in the Mist Organization
    modifiedTime Number
    When the object has been modified for the last time, in epoch
    name String
    orgId String
    pathSelection Property Map
    Only if type==hub_spoke
    paths Map<Property Map>
    For type==hub_spoke, Property key is the VPN name. For type==mesh, Property key is the Interface name
    type String
    enum: hub_spoke, mesh

    GetVpnsOrgVpnPathSelection

    Strategy string
    enum: disabled, simple, manual
    Strategy string
    enum: disabled, simple, manual
    strategy String
    enum: disabled, simple, manual
    strategy string
    enum: disabled, simple, manual
    strategy str
    enum: disabled, simple, manual
    strategy String
    enum: disabled, simple, manual

    GetVpnsOrgVpnPaths

    BfdProfile string
    enum: broadband, lte
    BfdUseTunnelMode bool
    If type==mesh and for SSR only, whether toi use tunnel mode
    Ip string
    If different from the wan port
    PeerPaths Dictionary<string, Pulumi.JuniperMist.Org.Inputs.GetVpnsOrgVpnPathsPeerPaths>
    If type==mesh, Property key is the Peer Interface name
    Pod int
    TrafficShaping Pulumi.JuniperMist.Org.Inputs.GetVpnsOrgVpnPathsTrafficShaping
    BfdProfile string
    enum: broadband, lte
    BfdUseTunnelMode bool
    If type==mesh and for SSR only, whether toi use tunnel mode
    Ip string
    If different from the wan port
    PeerPaths map[string]GetVpnsOrgVpnPathsPeerPaths
    If type==mesh, Property key is the Peer Interface name
    Pod int
    TrafficShaping GetVpnsOrgVpnPathsTrafficShaping
    bfdProfile String
    enum: broadband, lte
    bfdUseTunnelMode Boolean
    If type==mesh and for SSR only, whether toi use tunnel mode
    ip String
    If different from the wan port
    peerPaths Map<String,GetVpnsOrgVpnPathsPeerPaths>
    If type==mesh, Property key is the Peer Interface name
    pod Integer
    trafficShaping GetVpnsOrgVpnPathsTrafficShaping
    bfdProfile string
    enum: broadband, lte
    bfdUseTunnelMode boolean
    If type==mesh and for SSR only, whether toi use tunnel mode
    ip string
    If different from the wan port
    peerPaths {[key: string]: GetVpnsOrgVpnPathsPeerPaths}
    If type==mesh, Property key is the Peer Interface name
    pod number
    trafficShaping GetVpnsOrgVpnPathsTrafficShaping
    bfd_profile str
    enum: broadband, lte
    bfd_use_tunnel_mode bool
    If type==mesh and for SSR only, whether toi use tunnel mode
    ip str
    If different from the wan port
    peer_paths Mapping[str, GetVpnsOrgVpnPathsPeerPaths]
    If type==mesh, Property key is the Peer Interface name
    pod int
    traffic_shaping GetVpnsOrgVpnPathsTrafficShaping
    bfdProfile String
    enum: broadband, lte
    bfdUseTunnelMode Boolean
    If type==mesh and for SSR only, whether toi use tunnel mode
    ip String
    If different from the wan port
    peerPaths Map<Property Map>
    If type==mesh, Property key is the Peer Interface name
    pod Number
    trafficShaping Property Map

    GetVpnsOrgVpnPathsPeerPaths

    preference Integer
    preference number
    preference Number

    GetVpnsOrgVpnPathsTrafficShaping

    ClassPercentages List<int>
    percentages for different class of traffic: high / medium / low / best-effort adding up to 100
    Enabled bool
    MaxTxKbps int
    ClassPercentages []int
    percentages for different class of traffic: high / medium / low / best-effort adding up to 100
    Enabled bool
    MaxTxKbps int
    classPercentages List<Integer>
    percentages for different class of traffic: high / medium / low / best-effort adding up to 100
    enabled Boolean
    maxTxKbps Integer
    classPercentages number[]
    percentages for different class of traffic: high / medium / low / best-effort adding up to 100
    enabled boolean
    maxTxKbps number
    class_percentages Sequence[int]
    percentages for different class of traffic: high / medium / low / best-effort adding up to 100
    enabled bool
    max_tx_kbps int
    classPercentages List<Number>
    percentages for different class of traffic: high / medium / low / best-effort adding up to 100
    enabled Boolean
    maxTxKbps Number

    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.4.0 published on Wednesday, Apr 16, 2025 by Pulumi