1. Packages
  2. Fortios
  3. API Docs
  4. vpn
  5. Pptp
Fortios v0.0.6 published on Tuesday, Jul 9, 2024 by pulumiverse

fortios.vpn.Pptp

Explore with Pulumi AI

Configure PPTP.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";

const trname = new fortios.vpn.Pptp("trname", {
    eip: "1.1.1.22",
    ipMode: "range",
    localIp: "0.0.0.0",
    sip: "1.1.1.1",
    status: "enable",
    usrgrp: "Guest-group",
});
Copy
import pulumi
import pulumiverse_fortios as fortios

trname = fortios.vpn.Pptp("trname",
    eip="1.1.1.22",
    ip_mode="range",
    local_ip="0.0.0.0",
    sip="1.1.1.1",
    status="enable",
    usrgrp="Guest-group")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/vpn"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vpn.NewPptp(ctx, "trname", &vpn.PptpArgs{
			Eip:     pulumi.String("1.1.1.22"),
			IpMode:  pulumi.String("range"),
			LocalIp: pulumi.String("0.0.0.0"),
			Sip:     pulumi.String("1.1.1.1"),
			Status:  pulumi.String("enable"),
			Usrgrp:  pulumi.String("Guest-group"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortios.Vpn.Pptp("trname", new()
    {
        Eip = "1.1.1.22",
        IpMode = "range",
        LocalIp = "0.0.0.0",
        Sip = "1.1.1.1",
        Status = "enable",
        Usrgrp = "Guest-group",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.vpn.Pptp;
import com.pulumi.fortios.vpn.PptpArgs;
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 trname = new Pptp("trname", PptpArgs.builder()
            .eip("1.1.1.22")
            .ipMode("range")
            .localIp("0.0.0.0")
            .sip("1.1.1.1")
            .status("enable")
            .usrgrp("Guest-group")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortios:vpn:Pptp
    properties:
      eip: 1.1.1.22
      ipMode: range
      localIp: 0.0.0.0
      sip: 1.1.1.1
      status: enable
      usrgrp: Guest-group
Copy

Create Pptp Resource

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

Constructor syntax

new Pptp(name: string, args: PptpArgs, opts?: CustomResourceOptions);
@overload
def Pptp(resource_name: str,
         args: PptpArgs,
         opts: Optional[ResourceOptions] = None)

@overload
def Pptp(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         status: Optional[str] = None,
         eip: Optional[str] = None,
         ip_mode: Optional[str] = None,
         local_ip: Optional[str] = None,
         sip: Optional[str] = None,
         usrgrp: Optional[str] = None,
         vdomparam: Optional[str] = None)
func NewPptp(ctx *Context, name string, args PptpArgs, opts ...ResourceOption) (*Pptp, error)
public Pptp(string name, PptpArgs args, CustomResourceOptions? opts = null)
public Pptp(String name, PptpArgs args)
public Pptp(String name, PptpArgs args, CustomResourceOptions options)
type: fortios:vpn:Pptp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. PptpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. PptpArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. PptpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PptpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. PptpArgs
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 pptpResource = new Fortios.Vpn.Pptp("pptpResource", new()
{
    Status = "string",
    Eip = "string",
    IpMode = "string",
    LocalIp = "string",
    Sip = "string",
    Usrgrp = "string",
    Vdomparam = "string",
});
Copy
example, err := vpn.NewPptp(ctx, "pptpResource", &vpn.PptpArgs{
	Status:    pulumi.String("string"),
	Eip:       pulumi.String("string"),
	IpMode:    pulumi.String("string"),
	LocalIp:   pulumi.String("string"),
	Sip:       pulumi.String("string"),
	Usrgrp:    pulumi.String("string"),
	Vdomparam: pulumi.String("string"),
})
Copy
var pptpResource = new Pptp("pptpResource", PptpArgs.builder()
    .status("string")
    .eip("string")
    .ipMode("string")
    .localIp("string")
    .sip("string")
    .usrgrp("string")
    .vdomparam("string")
    .build());
Copy
pptp_resource = fortios.vpn.Pptp("pptpResource",
    status="string",
    eip="string",
    ip_mode="string",
    local_ip="string",
    sip="string",
    usrgrp="string",
    vdomparam="string")
Copy
const pptpResource = new fortios.vpn.Pptp("pptpResource", {
    status: "string",
    eip: "string",
    ipMode: "string",
    localIp: "string",
    sip: "string",
    usrgrp: "string",
    vdomparam: "string",
});
Copy
type: fortios:vpn:Pptp
properties:
    eip: string
    ipMode: string
    localIp: string
    sip: string
    status: string
    usrgrp: string
    vdomparam: string
Copy

Pptp 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 Pptp resource accepts the following input properties:

Status This property is required. string
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
Eip string
End IP.
IpMode string
IP assignment mode for PPTP client. Valid values: range, usrgrp.
LocalIp string
Local IP to be used for peer's remote IP.
Sip string
Start IP.
Usrgrp string
User group.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Status This property is required. string
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
Eip string
End IP.
IpMode string
IP assignment mode for PPTP client. Valid values: range, usrgrp.
LocalIp string
Local IP to be used for peer's remote IP.
Sip string
Start IP.
Usrgrp string
User group.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
status This property is required. String
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
eip String
End IP.
ipMode String
IP assignment mode for PPTP client. Valid values: range, usrgrp.
localIp String
Local IP to be used for peer's remote IP.
sip String
Start IP.
usrgrp String
User group.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
status This property is required. string
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
eip string
End IP.
ipMode string
IP assignment mode for PPTP client. Valid values: range, usrgrp.
localIp string
Local IP to be used for peer's remote IP.
sip string
Start IP.
usrgrp string
User group.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
status This property is required. str
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
eip str
End IP.
ip_mode str
IP assignment mode for PPTP client. Valid values: range, usrgrp.
local_ip str
Local IP to be used for peer's remote IP.
sip str
Start IP.
usrgrp str
User group.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
status This property is required. String
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
eip String
End IP.
ipMode String
IP assignment mode for PPTP client. Valid values: range, usrgrp.
localIp String
Local IP to be used for peer's remote IP.
sip String
Start IP.
usrgrp String
User group.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

Outputs

All input properties are implicitly available as output properties. Additionally, the Pptp 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 Pptp Resource

Get an existing Pptp 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?: PptpState, opts?: CustomResourceOptions): Pptp
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        eip: Optional[str] = None,
        ip_mode: Optional[str] = None,
        local_ip: Optional[str] = None,
        sip: Optional[str] = None,
        status: Optional[str] = None,
        usrgrp: Optional[str] = None,
        vdomparam: Optional[str] = None) -> Pptp
func GetPptp(ctx *Context, name string, id IDInput, state *PptpState, opts ...ResourceOption) (*Pptp, error)
public static Pptp Get(string name, Input<string> id, PptpState? state, CustomResourceOptions? opts = null)
public static Pptp get(String name, Output<String> id, PptpState state, CustomResourceOptions options)
resources:  _:    type: fortios:vpn:Pptp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Eip string
End IP.
IpMode string
IP assignment mode for PPTP client. Valid values: range, usrgrp.
LocalIp string
Local IP to be used for peer's remote IP.
Sip string
Start IP.
Status string
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
Usrgrp string
User group.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
Eip string
End IP.
IpMode string
IP assignment mode for PPTP client. Valid values: range, usrgrp.
LocalIp string
Local IP to be used for peer's remote IP.
Sip string
Start IP.
Status string
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
Usrgrp string
User group.
Vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
eip String
End IP.
ipMode String
IP assignment mode for PPTP client. Valid values: range, usrgrp.
localIp String
Local IP to be used for peer's remote IP.
sip String
Start IP.
status String
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
usrgrp String
User group.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
eip string
End IP.
ipMode string
IP assignment mode for PPTP client. Valid values: range, usrgrp.
localIp string
Local IP to be used for peer's remote IP.
sip string
Start IP.
status string
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
usrgrp string
User group.
vdomparam Changes to this property will trigger replacement. string
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
eip str
End IP.
ip_mode str
IP assignment mode for PPTP client. Valid values: range, usrgrp.
local_ip str
Local IP to be used for peer's remote IP.
sip str
Start IP.
status str
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
usrgrp str
User group.
vdomparam Changes to this property will trigger replacement. str
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
eip String
End IP.
ipMode String
IP assignment mode for PPTP client. Valid values: range, usrgrp.
localIp String
Local IP to be used for peer's remote IP.
sip String
Start IP.
status String
Enable/disable FortiGate as a PPTP gateway. Valid values: enable, disable.
usrgrp String
User group.
vdomparam Changes to this property will trigger replacement. String
Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.

Import

Vpn Pptp can be imported using any of these accepted formats:

$ pulumi import fortios:vpn/pptp:Pptp labelname VpnPptp
Copy

If you do not want to import arguments of block:

$ export “FORTIOS_IMPORT_TABLE”=“false”

$ pulumi import fortios:vpn/pptp:Pptp labelname VpnPptp
Copy

$ unset “FORTIOS_IMPORT_TABLE”

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortios pulumiverse/pulumi-fortios
License
Apache-2.0
Notes
This Pulumi package is based on the fortios Terraform Provider.