junipermist.org.Vpn
Explore with Pulumi AI
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)
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": junipermist.org.VpnPathsArgs(
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
The Vpn resource accepts the following input properties:
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.
Supporting Types
VpnPaths, VpnPathsArgs
- Bfd
Profile string - enum:
broadband
,lte
- Ip string
- if different from the wan port
- Pod int
- Bfd
Profile string - enum:
broadband
,lte
- Ip string
- if different from the wan port
- Pod int
- bfd
Profile String - enum:
broadband
,lte
- ip String
- if different from the wan port
- pod Integer
- bfd
Profile 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
- bfd
Profile 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.