1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectVpnmgrNodeIprange
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.ObjectVpnmgrNodeIprange

Explore with Pulumi AI

ObjectVpnmgr NodeIpRange

This resource is a sub resource for variable ip_range of resource fortimanager.ObjectVpnmgrNode. Conflict and overwrite may occur if use both of them.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trnameObjectVpnmgrNode = new fortimanager.ObjectVpnmgrNode("trnameObjectVpnmgrNode", {fosid: 1});
const trnameObjectVpnmgrNodeIprange = new fortimanager.ObjectVpnmgrNodeIprange("trnameObjectVpnmgrNodeIprange", {
    node: trnameObjectVpnmgrNode.fosid,
    endIp: "10.160.88.52",
    fosid: 1,
    startIp: "10.160.88.40",
}, {
    dependsOn: [trnameObjectVpnmgrNode],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_vpnmgr_node = fortimanager.ObjectVpnmgrNode("trnameObjectVpnmgrNode", fosid=1)
trname_object_vpnmgr_node_iprange = fortimanager.ObjectVpnmgrNodeIprange("trnameObjectVpnmgrNodeIprange",
    node=trname_object_vpnmgr_node.fosid,
    end_ip="10.160.88.52",
    fosid=1,
    start_ip="10.160.88.40",
    opts = pulumi.ResourceOptions(depends_on=[trname_object_vpnmgr_node]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		trnameObjectVpnmgrNode, err := fortimanager.NewObjectVpnmgrNode(ctx, "trnameObjectVpnmgrNode", &fortimanager.ObjectVpnmgrNodeArgs{
			Fosid: pulumi.Float64(1),
		})
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectVpnmgrNodeIprange(ctx, "trnameObjectVpnmgrNodeIprange", &fortimanager.ObjectVpnmgrNodeIprangeArgs{
			Node:    trnameObjectVpnmgrNode.Fosid,
			EndIp:   pulumi.String("10.160.88.52"),
			Fosid:   pulumi.Float64(1),
			StartIp: pulumi.String("10.160.88.40"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectVpnmgrNode,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trnameObjectVpnmgrNode = new Fortimanager.ObjectVpnmgrNode("trnameObjectVpnmgrNode", new()
    {
        Fosid = 1,
    });

    var trnameObjectVpnmgrNodeIprange = new Fortimanager.ObjectVpnmgrNodeIprange("trnameObjectVpnmgrNodeIprange", new()
    {
        Node = trnameObjectVpnmgrNode.Fosid,
        EndIp = "10.160.88.52",
        Fosid = 1,
        StartIp = "10.160.88.40",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectVpnmgrNode,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectVpnmgrNode;
import com.pulumi.fortimanager.ObjectVpnmgrNodeArgs;
import com.pulumi.fortimanager.ObjectVpnmgrNodeIprange;
import com.pulumi.fortimanager.ObjectVpnmgrNodeIprangeArgs;
import com.pulumi.resources.CustomResourceOptions;
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 trnameObjectVpnmgrNode = new ObjectVpnmgrNode("trnameObjectVpnmgrNode", ObjectVpnmgrNodeArgs.builder()
            .fosid(1)
            .build());

        var trnameObjectVpnmgrNodeIprange = new ObjectVpnmgrNodeIprange("trnameObjectVpnmgrNodeIprange", ObjectVpnmgrNodeIprangeArgs.builder()
            .node(trnameObjectVpnmgrNode.fosid())
            .endIp("10.160.88.52")
            .fosid(1)
            .startIp("10.160.88.40")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectVpnmgrNode)
                .build());

    }
}
Copy
resources:
  trnameObjectVpnmgrNodeIprange:
    type: fortimanager:ObjectVpnmgrNodeIprange
    properties:
      node: ${trnameObjectVpnmgrNode.fosid}
      endIp: 10.160.88.52
      fosid: 1
      startIp: 10.160.88.40
    options:
      dependsOn:
        - ${trnameObjectVpnmgrNode}
  trnameObjectVpnmgrNode:
    type: fortimanager:ObjectVpnmgrNode
    properties:
      fosid: 1
Copy

Create ObjectVpnmgrNodeIprange Resource

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

Constructor syntax

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

@overload
def ObjectVpnmgrNodeIprange(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            node: Optional[str] = None,
                            adom: Optional[str] = None,
                            end_ip: Optional[str] = None,
                            fosid: Optional[float] = None,
                            object_vpnmgr_node_iprange_id: Optional[str] = None,
                            scopetype: Optional[str] = None,
                            start_ip: Optional[str] = None)
func NewObjectVpnmgrNodeIprange(ctx *Context, name string, args ObjectVpnmgrNodeIprangeArgs, opts ...ResourceOption) (*ObjectVpnmgrNodeIprange, error)
public ObjectVpnmgrNodeIprange(string name, ObjectVpnmgrNodeIprangeArgs args, CustomResourceOptions? opts = null)
public ObjectVpnmgrNodeIprange(String name, ObjectVpnmgrNodeIprangeArgs args)
public ObjectVpnmgrNodeIprange(String name, ObjectVpnmgrNodeIprangeArgs args, CustomResourceOptions options)
type: fortimanager:ObjectVpnmgrNodeIprange
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. ObjectVpnmgrNodeIprangeArgs
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. ObjectVpnmgrNodeIprangeArgs
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. ObjectVpnmgrNodeIprangeArgs
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. ObjectVpnmgrNodeIprangeArgs
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. ObjectVpnmgrNodeIprangeArgs
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 objectVpnmgrNodeIprangeResource = new Fortimanager.ObjectVpnmgrNodeIprange("objectVpnmgrNodeIprangeResource", new()
{
    Node = "string",
    Adom = "string",
    EndIp = "string",
    Fosid = 0,
    ObjectVpnmgrNodeIprangeId = "string",
    Scopetype = "string",
    StartIp = "string",
});
Copy
example, err := fortimanager.NewObjectVpnmgrNodeIprange(ctx, "objectVpnmgrNodeIprangeResource", &fortimanager.ObjectVpnmgrNodeIprangeArgs{
	Node:                      pulumi.String("string"),
	Adom:                      pulumi.String("string"),
	EndIp:                     pulumi.String("string"),
	Fosid:                     pulumi.Float64(0),
	ObjectVpnmgrNodeIprangeId: pulumi.String("string"),
	Scopetype:                 pulumi.String("string"),
	StartIp:                   pulumi.String("string"),
})
Copy
var objectVpnmgrNodeIprangeResource = new ObjectVpnmgrNodeIprange("objectVpnmgrNodeIprangeResource", ObjectVpnmgrNodeIprangeArgs.builder()
    .node("string")
    .adom("string")
    .endIp("string")
    .fosid(0)
    .objectVpnmgrNodeIprangeId("string")
    .scopetype("string")
    .startIp("string")
    .build());
Copy
object_vpnmgr_node_iprange_resource = fortimanager.ObjectVpnmgrNodeIprange("objectVpnmgrNodeIprangeResource",
    node="string",
    adom="string",
    end_ip="string",
    fosid=0,
    object_vpnmgr_node_iprange_id="string",
    scopetype="string",
    start_ip="string")
Copy
const objectVpnmgrNodeIprangeResource = new fortimanager.ObjectVpnmgrNodeIprange("objectVpnmgrNodeIprangeResource", {
    node: "string",
    adom: "string",
    endIp: "string",
    fosid: 0,
    objectVpnmgrNodeIprangeId: "string",
    scopetype: "string",
    startIp: "string",
});
Copy
type: fortimanager:ObjectVpnmgrNodeIprange
properties:
    adom: string
    endIp: string
    fosid: 0
    node: string
    objectVpnmgrNodeIprangeId: string
    scopetype: string
    startIp: string
Copy

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

Node This property is required. string
Node.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndIp string
End-Ip.
Fosid double
Id.
ObjectVpnmgrNodeIprangeId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
StartIp string
Start-Ip.
Node This property is required. string
Node.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndIp string
End-Ip.
Fosid float64
Id.
ObjectVpnmgrNodeIprangeId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
StartIp string
Start-Ip.
node This property is required. String
Node.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp String
End-Ip.
fosid Double
Id.
objectVpnmgrNodeIprangeId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
startIp String
Start-Ip.
node This property is required. string
Node.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp string
End-Ip.
fosid number
Id.
objectVpnmgrNodeIprangeId string
an identifier for the resource with format {{fosid}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
startIp string
Start-Ip.
node This property is required. str
Node.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
end_ip str
End-Ip.
fosid float
Id.
object_vpnmgr_node_iprange_id str
an identifier for the resource with format {{fosid}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
start_ip str
Start-Ip.
node This property is required. String
Node.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp String
End-Ip.
fosid Number
Id.
objectVpnmgrNodeIprangeId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
startIp String
Start-Ip.

Outputs

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

Get an existing ObjectVpnmgrNodeIprange 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?: ObjectVpnmgrNodeIprangeState, opts?: CustomResourceOptions): ObjectVpnmgrNodeIprange
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        end_ip: Optional[str] = None,
        fosid: Optional[float] = None,
        node: Optional[str] = None,
        object_vpnmgr_node_iprange_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        start_ip: Optional[str] = None) -> ObjectVpnmgrNodeIprange
func GetObjectVpnmgrNodeIprange(ctx *Context, name string, id IDInput, state *ObjectVpnmgrNodeIprangeState, opts ...ResourceOption) (*ObjectVpnmgrNodeIprange, error)
public static ObjectVpnmgrNodeIprange Get(string name, Input<string> id, ObjectVpnmgrNodeIprangeState? state, CustomResourceOptions? opts = null)
public static ObjectVpnmgrNodeIprange get(String name, Output<String> id, ObjectVpnmgrNodeIprangeState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectVpnmgrNodeIprange    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:
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndIp string
End-Ip.
Fosid double
Id.
Node string
Node.
ObjectVpnmgrNodeIprangeId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
StartIp string
Start-Ip.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndIp string
End-Ip.
Fosid float64
Id.
Node string
Node.
ObjectVpnmgrNodeIprangeId string
an identifier for the resource with format {{fosid}}.
Scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
StartIp string
Start-Ip.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp String
End-Ip.
fosid Double
Id.
node String
Node.
objectVpnmgrNodeIprangeId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
startIp String
Start-Ip.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp string
End-Ip.
fosid number
Id.
node string
Node.
objectVpnmgrNodeIprangeId string
an identifier for the resource with format {{fosid}}.
scopetype string
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
startIp string
Start-Ip.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
end_ip str
End-Ip.
fosid float
Id.
node str
Node.
object_vpnmgr_node_iprange_id str
an identifier for the resource with format {{fosid}}.
scopetype str
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
start_ip str
Start-Ip.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp String
End-Ip.
fosid Number
Id.
node String
Node.
objectVpnmgrNodeIprangeId String
an identifier for the resource with format {{fosid}}.
scopetype String
The scope of application of the resource. Valid values: inherit, adom, global. The inherit means that the scopetype of the provider will be inherited, and adom will also be inherited. The default value is inherit.
startIp String
Start-Ip.

Import

ObjectVpnmgr NodeIpRange can be imported using any of these accepted formats:

Set import_options = [“node=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectVpnmgrNodeIprange:ObjectVpnmgrNodeIprange labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

-> Hint: The scopetype and adom for import will directly inherit the scopetype and adom configuration of the provider.

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

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.