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

junipermist.org.Vpn

Explore with Pulumi AI

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

    This resource manages the Org VPN.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.junipermist.org.Setting;
    import com.pulumi.junipermist.org.SettingArgs;
    import com.pulumi.junipermist.org.inputs.SettingPasswordPolicyArgs;
    import com.pulumi.junipermist.org.inputs.SettingMistNacArgs;
    import com.pulumi.junipermist.org.inputs.SettingSyntheticTestArgs;
    import com.pulumi.junipermist.org.inputs.SettingApiPolicyArgs;
    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 terraformTest = new Setting("terraformTest", SettingArgs.builder()
                .orgId(terraformTestMistOrg.id())
                .passwordPolicy(SettingPasswordPolicyArgs.builder()
                    .enabled(true)
                    .min_length(8)
                    .requires_special_char(true)
                    .requires_two_factor_auth(true)
                    .build())
                .mistNac(SettingMistNacArgs.builder()
                    .eu_only(true)
                    .build())
                .syntheticTest(SettingSyntheticTestArgs.builder()
                    .disabled(false)
                    .vlans(SettingSyntheticTestVlanArgs.builder()
                        .vlanIds(                    
                            "8",
                            "999")
                        .disabled(true)
                        .build())
                    .build())
                .apiPolicy(SettingApiPolicyArgs.builder()
                    .no_reveal(false)
                    .build())
                .build());
    
        }
    }
    
    resources:
      terraformTest:
        type: junipermist:org:Setting
        name: terraform_test
        properties:
          orgId: ${terraformTestMistOrg.id}
          passwordPolicy:
            enabled: true
            min_length: 8
            requires_special_char: true
            requires_two_factor_auth: true
          mistNac:
            eu_only: true
          syntheticTest:
            disabled: false
            vlans:
              - vlanIds:
                  - '8'
                  - '999'
                disabled: true
          apiPolicy:
            no_reveal: false
    

    Create Vpn Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Vpn(name: string, args: VpnArgs, opts?: CustomResourceOptions);
    @overload
    def Vpn(resource_name: str,
            args: VpnArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Vpn(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            org_id: Optional[str] = None,
            paths: Optional[Mapping[str, VpnPathsArgs]] = None,
            name: Optional[str] = None)
    func NewVpn(ctx *Context, name string, args VpnArgs, opts ...ResourceOption) (*Vpn, error)
    public Vpn(string name, VpnArgs args, CustomResourceOptions? opts = null)
    public Vpn(String name, VpnArgs args)
    public Vpn(String name, VpnArgs args, CustomResourceOptions options)
    
    type: junipermist:org:Vpn
    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 VpnArgs
    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 VpnArgs
    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 VpnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpnArgs
    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 vpnResource = new JuniperMist.Org.Vpn("vpnResource", new()
    {
        OrgId = "string",
        Paths = 
        {
            { "string", new JuniperMist.Org.Inputs.VpnPathsArgs
            {
                BfdProfile = "string",
                Ip = "string",
                Pod = 0,
            } },
        },
        Name = "string",
    });
    
    example, err := org.NewVpn(ctx, "vpnResource", &org.VpnArgs{
    	OrgId: pulumi.String("string"),
    	Paths: org.VpnPathsMap{
    		"string": &org.VpnPathsArgs{
    			BfdProfile: pulumi.String("string"),
    			Ip:         pulumi.String("string"),
    			Pod:        pulumi.Int(0),
    		},
    	},
    	Name: pulumi.String("string"),
    })
    
    var vpnResource = new Vpn("vpnResource", VpnArgs.builder()
        .orgId("string")
        .paths(Map.of("string", Map.ofEntries(
            Map.entry("bfdProfile", "string"),
            Map.entry("ip", "string"),
            Map.entry("pod", 0)
        )))
        .name("string")
        .build());
    
    vpn_resource = junipermist.org.Vpn("vpnResource",
        org_id="string",
        paths={
            "string": {
                "bfd_profile": "string",
                "ip": "string",
                "pod": 0,
            },
        },
        name="string")
    
    const vpnResource = new junipermist.org.Vpn("vpnResource", {
        orgId: "string",
        paths: {
            string: {
                bfdProfile: "string",
                ip: "string",
                pod: 0,
            },
        },
        name: "string",
    });
    
    type: junipermist:org:Vpn
    properties:
        name: string
        orgId: string
        paths:
            string:
                bfdProfile: string
                ip: string
                pod: 0
    

    Vpn Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Vpn resource accepts the following input properties:

    OrgId string
    Paths Dictionary<string, Pulumi.JuniperMist.Org.Inputs.VpnPathsArgs>
    Name string
    OrgId string
    Paths map[string]VpnPathsArgs
    Name string
    orgId String
    paths Map<String,VpnPathsArgs>
    name String
    orgId string
    paths {[key: string]: VpnPathsArgs}
    name string
    org_id str
    paths Mapping[str, VpnPathsArgs]
    name str
    orgId String
    paths Map<Property Map>
    name String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Vpn resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Vpn Resource

    Get an existing Vpn 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?: VpnState, opts?: CustomResourceOptions): Vpn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            paths: Optional[Mapping[str, VpnPathsArgs]] = None) -> Vpn
    func GetVpn(ctx *Context, name string, id IDInput, state *VpnState, opts ...ResourceOption) (*Vpn, error)
    public static Vpn Get(string name, Input<string> id, VpnState? state, CustomResourceOptions? opts = null)
    public static Vpn get(String name, Output<String> id, VpnState 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.
    The following state arguments are supported:
    Name string
    OrgId string
    Paths Dictionary<string, Pulumi.JuniperMist.Org.Inputs.VpnPathsArgs>
    Name string
    OrgId string
    Paths map[string]VpnPathsArgs
    name String
    orgId String
    paths Map<String,VpnPathsArgs>
    name string
    orgId string
    paths {[key: string]: VpnPathsArgs}
    name str
    org_id str
    paths Mapping[str, VpnPathsArgs]
    name String
    orgId String
    paths Map<Property Map>

    Supporting Types

    VpnPaths, VpnPathsArgs

    BfdProfile string
    enum: broadband, lte
    Ip string
    if different from the wan port
    Pod int
    BfdProfile string
    enum: broadband, lte
    Ip string
    if different from the wan port
    Pod int
    bfdProfile String
    enum: broadband, lte
    ip String
    if different from the wan port
    pod Integer
    bfdProfile string
    enum: broadband, lte
    ip string
    if different from the wan port
    pod number
    bfd_profile str
    enum: broadband, lte
    ip str
    if different from the wan port
    pod int
    bfdProfile String
    enum: broadband, lte
    ip String
    if different from the wan port
    pod Number

    Import

    Using pulumi import, import mist_org_vpn with:

    Org VPN can be imported by specifying the org_id and the vpn_id

    $ pulumi import junipermist:org/vpn:Vpn vpn_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.
    junipermist logo
    Juniper Mist v0.1.1 published on Monday, Nov 4, 2024 by Pulumi