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

fortimanager.ObjectDynamicVpntunnel

Explore with Pulumi AI

ObjectDynamic Vpntunnel

The following variables have sub resource. Avoid using them together, otherwise conflicts and overwrites may occur.

  • dynamic_mapping: fortimanager.ObjectDynamicVpntunnelDynamicMapping

Example Usage

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

const trname = new fortimanager.ObjectDynamicVpntunnel("trname", {description: "This is a Terraform example"});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.ObjectDynamicVpntunnel("trname", description="This is a Terraform example")
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 {
		_, err := fortimanager.NewObjectDynamicVpntunnel(ctx, "trname", &fortimanager.ObjectDynamicVpntunnelArgs{
			Description: pulumi.String("This is a Terraform example"),
		})
		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 trname = new Fortimanager.ObjectDynamicVpntunnel("trname", new()
    {
        Description = "This is a Terraform example",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectDynamicVpntunnel;
import com.pulumi.fortimanager.ObjectDynamicVpntunnelArgs;
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 ObjectDynamicVpntunnel("trname", ObjectDynamicVpntunnelArgs.builder()
            .description("This is a Terraform example")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:ObjectDynamicVpntunnel
    properties:
      description: This is a Terraform example
Copy

Create ObjectDynamicVpntunnel Resource

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

Constructor syntax

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

@overload
def ObjectDynamicVpntunnel(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           adom: Optional[str] = None,
                           description: Optional[str] = None,
                           dynamic_mappings: Optional[Sequence[ObjectDynamicVpntunnelDynamicMappingArgs]] = None,
                           dynamic_sort_subtable: Optional[str] = None,
                           name: Optional[str] = None,
                           object_dynamic_vpntunnel_id: Optional[str] = None,
                           scopetype: Optional[str] = None)
func NewObjectDynamicVpntunnel(ctx *Context, name string, args *ObjectDynamicVpntunnelArgs, opts ...ResourceOption) (*ObjectDynamicVpntunnel, error)
public ObjectDynamicVpntunnel(string name, ObjectDynamicVpntunnelArgs? args = null, CustomResourceOptions? opts = null)
public ObjectDynamicVpntunnel(String name, ObjectDynamicVpntunnelArgs args)
public ObjectDynamicVpntunnel(String name, ObjectDynamicVpntunnelArgs args, CustomResourceOptions options)
type: fortimanager:ObjectDynamicVpntunnel
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 ObjectDynamicVpntunnelArgs
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 ObjectDynamicVpntunnelArgs
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 ObjectDynamicVpntunnelArgs
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 ObjectDynamicVpntunnelArgs
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. ObjectDynamicVpntunnelArgs
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 objectDynamicVpntunnelResource = new Fortimanager.ObjectDynamicVpntunnel("objectDynamicVpntunnelResource", new()
{
    Adom = "string",
    Description = "string",
    DynamicMappings = new[]
    {
        new Fortimanager.Inputs.ObjectDynamicVpntunnelDynamicMappingArgs
        {
            _scopes = new[]
            {
                new Fortimanager.Inputs.ObjectDynamicVpntunnelDynamicMapping_ScopeArgs
                {
                    Name = "string",
                    Vdom = "string",
                },
            },
            LocalIpsec = "string",
        },
    },
    DynamicSortSubtable = "string",
    Name = "string",
    ObjectDynamicVpntunnelId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectDynamicVpntunnel(ctx, "objectDynamicVpntunnelResource", &fortimanager.ObjectDynamicVpntunnelArgs{
Adom: pulumi.String("string"),
Description: pulumi.String("string"),
DynamicMappings: .ObjectDynamicVpntunnelDynamicMappingTypeArray{
&.ObjectDynamicVpntunnelDynamicMappingTypeArgs{
_scopes: .ObjectDynamicVpntunnelDynamicMapping_ScopeArray{
&.ObjectDynamicVpntunnelDynamicMapping_ScopeArgs{
Name: pulumi.String("string"),
Vdom: pulumi.String("string"),
},
},
LocalIpsec: pulumi.String("string"),
},
},
DynamicSortSubtable: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectDynamicVpntunnelId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectDynamicVpntunnelResource = new ObjectDynamicVpntunnel("objectDynamicVpntunnelResource", ObjectDynamicVpntunnelArgs.builder()
    .adom("string")
    .description("string")
    .dynamicMappings(ObjectDynamicVpntunnelDynamicMappingArgs.builder()
        ._scopes(ObjectDynamicVpntunnelDynamicMapping_ScopeArgs.builder()
            .name("string")
            .vdom("string")
            .build())
        .localIpsec("string")
        .build())
    .dynamicSortSubtable("string")
    .name("string")
    .objectDynamicVpntunnelId("string")
    .scopetype("string")
    .build());
Copy
object_dynamic_vpntunnel_resource = fortimanager.ObjectDynamicVpntunnel("objectDynamicVpntunnelResource",
    adom="string",
    description="string",
    dynamic_mappings=[{
        "_scopes": [{
            "name": "string",
            "vdom": "string",
        }],
        "local_ipsec": "string",
    }],
    dynamic_sort_subtable="string",
    name="string",
    object_dynamic_vpntunnel_id="string",
    scopetype="string")
Copy
const objectDynamicVpntunnelResource = new fortimanager.ObjectDynamicVpntunnel("objectDynamicVpntunnelResource", {
    adom: "string",
    description: "string",
    dynamicMappings: [{
        _scopes: [{
            name: "string",
            vdom: "string",
        }],
        localIpsec: "string",
    }],
    dynamicSortSubtable: "string",
    name: "string",
    objectDynamicVpntunnelId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectDynamicVpntunnel
properties:
    adom: string
    description: string
    dynamicMappings:
        - _scopes:
            - name: string
              vdom: string
          localIpsec: string
    dynamicSortSubtable: string
    name: string
    objectDynamicVpntunnelId: string
    scopetype: string
Copy

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

Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
DynamicMappings List<ObjectDynamicVpntunnelDynamicMapping>
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Name.
ObjectDynamicVpntunnelId string
an identifier for the resource with format {{name}}.
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.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
DynamicMappings []ObjectDynamicVpntunnelDynamicMappingTypeArgs
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Name.
ObjectDynamicVpntunnelId string
an identifier for the resource with format {{name}}.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
dynamicMappings List<ObjectDynamicVpntunnelDynamicMapping>
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Name.
objectDynamicVpntunnelId String
an identifier for the resource with format {{name}}.
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.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description string
Description.
dynamicMappings ObjectDynamicVpntunnelDynamicMapping[]
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name string
Name.
objectDynamicVpntunnelId string
an identifier for the resource with format {{name}}.
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.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description str
Description.
dynamic_mappings Sequence[ObjectDynamicVpntunnelDynamicMappingArgs]
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name str
Name.
object_dynamic_vpntunnel_id str
an identifier for the resource with format {{name}}.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
dynamicMappings List<Property Map>
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Name.
objectDynamicVpntunnelId String
an identifier for the resource with format {{name}}.
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.

Outputs

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

Get an existing ObjectDynamicVpntunnel 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?: ObjectDynamicVpntunnelState, opts?: CustomResourceOptions): ObjectDynamicVpntunnel
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        description: Optional[str] = None,
        dynamic_mappings: Optional[Sequence[ObjectDynamicVpntunnelDynamicMappingArgs]] = None,
        dynamic_sort_subtable: Optional[str] = None,
        name: Optional[str] = None,
        object_dynamic_vpntunnel_id: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectDynamicVpntunnel
func GetObjectDynamicVpntunnel(ctx *Context, name string, id IDInput, state *ObjectDynamicVpntunnelState, opts ...ResourceOption) (*ObjectDynamicVpntunnel, error)
public static ObjectDynamicVpntunnel Get(string name, Input<string> id, ObjectDynamicVpntunnelState? state, CustomResourceOptions? opts = null)
public static ObjectDynamicVpntunnel get(String name, Output<String> id, ObjectDynamicVpntunnelState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectDynamicVpntunnel    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.
Description string
Description.
DynamicMappings List<ObjectDynamicVpntunnelDynamicMapping>
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Name.
ObjectDynamicVpntunnelId string
an identifier for the resource with format {{name}}.
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.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Description string
Description.
DynamicMappings []ObjectDynamicVpntunnelDynamicMappingTypeArgs
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
DynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
Name string
Name.
ObjectDynamicVpntunnelId string
an identifier for the resource with format {{name}}.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
dynamicMappings List<ObjectDynamicVpntunnelDynamicMapping>
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Name.
objectDynamicVpntunnelId String
an identifier for the resource with format {{name}}.
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.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description string
Description.
dynamicMappings ObjectDynamicVpntunnelDynamicMapping[]
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
dynamicSortSubtable string
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name string
Name.
objectDynamicVpntunnelId string
an identifier for the resource with format {{name}}.
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.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description str
Description.
dynamic_mappings Sequence[ObjectDynamicVpntunnelDynamicMappingArgs]
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
dynamic_sort_subtable str
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name str
Name.
object_dynamic_vpntunnel_id str
an identifier for the resource with format {{name}}.
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.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
description String
Description.
dynamicMappings List<Property Map>
Dynamic_Mapping. The structure of dynamic_mapping block is documented below.
dynamicSortSubtable String
true or false, set this parameter to true when using dynamic for_each + toset to configure and sort sub-tables, please do not set this parameter when configuring static sub-tables.
name String
Name.
objectDynamicVpntunnelId String
an identifier for the resource with format {{name}}.
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.

Supporting Types

ObjectDynamicVpntunnelDynamicMapping
, ObjectDynamicVpntunnelDynamicMappingArgs

LocalIpsec string
Local-Ipsec.
_scopes List<ObjectDynamicVpntunnelDynamicMapping_Scope>
_Scope. The structure of _scope block is documented below.
LocalIpsec string
Local-Ipsec.
_scopes []ObjectDynamicVpntunnelDynamicMapping_Scope
_Scope. The structure of _scope block is documented below.
_scopes List<ObjectDynamicVpntunnelDynamicMapping_Scope>
_Scope. The structure of _scope block is documented below.
localIpsec String
Local-Ipsec.
_scopes ObjectDynamicVpntunnelDynamicMapping_Scope[]
_Scope. The structure of _scope block is documented below.
localIpsec string
Local-Ipsec.
_scopes Sequence[ObjectDynamicVpntunnelDynamicMapping_Scope]
_Scope. The structure of _scope block is documented below.
local_ipsec str
Local-Ipsec.
_scopes List<Property Map>
_Scope. The structure of _scope block is documented below.
localIpsec String
Local-Ipsec.

ObjectDynamicVpntunnelDynamicMapping_Scope
, ObjectDynamicVpntunnelDynamicMapping_ScopeArgs

Name string
Name.
Vdom string
Vdom.
Name string
Name.
Vdom string
Vdom.
name String
Name.
vdom String
Vdom.
name string
Name.
vdom string
Vdom.
name str
Name.
vdom str
Vdom.
name String
Name.
vdom String
Vdom.

Import

ObjectDynamic Vpntunnel can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectDynamicVpntunnel:ObjectDynamicVpntunnel labelname {{name}}
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.