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

fortimanager.ObjectDynamicVpntunnelDynamicMapping

Explore with Pulumi AI

ObjectDynamic VpntunnelDynamicMapping

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

Create ObjectDynamicVpntunnelDynamicMapping Resource

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

Constructor syntax

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

@overload
def ObjectDynamicVpntunnelDynamicMapping(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         vpntunnel: Optional[str] = None,
                                         _scopes: Optional[Sequence[ObjectDynamicVpntunnelDynamicMapping_ScopeArgs]] = None,
                                         adom: Optional[str] = None,
                                         dynamic_sort_subtable: Optional[str] = None,
                                         local_ipsec: Optional[str] = None,
                                         object_dynamic_vpntunnel_dynamic_mapping_id: Optional[str] = None,
                                         scopetype: Optional[str] = None)
func NewObjectDynamicVpntunnelDynamicMapping(ctx *Context, name string, args ObjectDynamicVpntunnelDynamicMappingArgs, opts ...ResourceOption) (*ObjectDynamicVpntunnelDynamicMapping, error)
public ObjectDynamicVpntunnelDynamicMapping(string name, ObjectDynamicVpntunnelDynamicMappingArgs args, CustomResourceOptions? opts = null)
public ObjectDynamicVpntunnelDynamicMapping(String name, ObjectDynamicVpntunnelDynamicMappingArgs args)
public ObjectDynamicVpntunnelDynamicMapping(String name, ObjectDynamicVpntunnelDynamicMappingArgs args, CustomResourceOptions options)
type: fortimanager:ObjectDynamicVpntunnelDynamicMapping
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. ObjectDynamicVpntunnelDynamicMappingArgs
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. ObjectDynamicVpntunnelDynamicMappingInitArgs
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. ObjectDynamicVpntunnelDynamicMappingArgs
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. ObjectDynamicVpntunnelDynamicMappingArgs
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. ObjectDynamicVpntunnelDynamicMappingArgs
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 objectDynamicVpntunnelDynamicMappingResource = new Fortimanager.ObjectDynamicVpntunnelDynamicMapping("objectDynamicVpntunnelDynamicMappingResource", new()
{
    Vpntunnel = "string",
    _scopes = new[]
    {
        new Fortimanager.Inputs.ObjectDynamicVpntunnelDynamicMapping_ScopeArgs
        {
            Name = "string",
            Vdom = "string",
        },
    },
    Adom = "string",
    DynamicSortSubtable = "string",
    LocalIpsec = "string",
    ObjectDynamicVpntunnelDynamicMappingId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectDynamicVpntunnelDynamicMapping(ctx, "objectDynamicVpntunnelDynamicMappingResource", &fortimanager.ObjectDynamicVpntunnelDynamicMappingArgs{
Vpntunnel: pulumi.String("string"),
_scopes: .ObjectDynamicVpntunnelDynamicMapping_ScopeArray{
&.ObjectDynamicVpntunnelDynamicMapping_ScopeArgs{
Name: pulumi.String("string"),
Vdom: pulumi.String("string"),
},
},
Adom: pulumi.String("string"),
DynamicSortSubtable: pulumi.String("string"),
LocalIpsec: pulumi.String("string"),
ObjectDynamicVpntunnelDynamicMappingId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectDynamicVpntunnelDynamicMappingResource = new ObjectDynamicVpntunnelDynamicMapping("objectDynamicVpntunnelDynamicMappingResource", ObjectDynamicVpntunnelDynamicMappingArgs.builder()
    .vpntunnel("string")
    ._scopes(ObjectDynamicVpntunnelDynamicMapping_ScopeArgs.builder()
        .name("string")
        .vdom("string")
        .build())
    .adom("string")
    .dynamicSortSubtable("string")
    .localIpsec("string")
    .objectDynamicVpntunnelDynamicMappingId("string")
    .scopetype("string")
    .build());
Copy
object_dynamic_vpntunnel_dynamic_mapping_resource = fortimanager.ObjectDynamicVpntunnelDynamicMapping("objectDynamicVpntunnelDynamicMappingResource",
    vpntunnel="string",
    _scopes=[{
        "name": "string",
        "vdom": "string",
    }],
    adom="string",
    dynamic_sort_subtable="string",
    local_ipsec="string",
    object_dynamic_vpntunnel_dynamic_mapping_id="string",
    scopetype="string")
Copy
const objectDynamicVpntunnelDynamicMappingResource = new fortimanager.ObjectDynamicVpntunnelDynamicMapping("objectDynamicVpntunnelDynamicMappingResource", {
    vpntunnel: "string",
    _scopes: [{
        name: "string",
        vdom: "string",
    }],
    adom: "string",
    dynamicSortSubtable: "string",
    localIpsec: "string",
    objectDynamicVpntunnelDynamicMappingId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectDynamicVpntunnelDynamicMapping
properties:
    _scopes:
        - name: string
          vdom: string
    adom: string
    dynamicSortSubtable: string
    localIpsec: string
    objectDynamicVpntunnelDynamicMappingId: string
    scopetype: string
    vpntunnel: string
Copy

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

Vpntunnel This property is required. string
Vpntunnel.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
LocalIpsec string
Local-Ipsec.
ObjectDynamicVpntunnelDynamicMappingId string
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
_scopes List<ObjectDynamicVpntunnelDynamicMapping_Scope>
_Scope. The structure of _scope block is documented below.
Vpntunnel This property is required. string
Vpntunnel.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
LocalIpsec string
Local-Ipsec.
ObjectDynamicVpntunnelDynamicMappingId string
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
_scopes []ObjectDynamicVpntunnelDynamicMapping_ScopeArgs
_Scope. The structure of _scope block is documented below.
vpntunnel This property is required. String
Vpntunnel.
_scopes List<ObjectDynamicVpntunnelDynamicMapping_Scope>
_Scope. The structure of _scope block is documented below.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
localIpsec String
Local-Ipsec.
objectDynamicVpntunnelDynamicMappingId String
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
vpntunnel This property is required. string
Vpntunnel.
_scopes ObjectDynamicVpntunnelDynamicMapping_Scope[]
_Scope. The structure of _scope block is documented below.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
localIpsec string
Local-Ipsec.
objectDynamicVpntunnelDynamicMappingId string
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
vpntunnel This property is required. str
Vpntunnel.
_scopes Sequence[ObjectDynamicVpntunnelDynamicMapping_ScopeArgs]
_Scope. The structure of _scope block is documented below.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
local_ipsec str
Local-Ipsec.
object_dynamic_vpntunnel_dynamic_mapping_id str
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
vpntunnel This property is required. String
Vpntunnel.
_scopes List<Property Map>
_Scope. The structure of _scope block is documented below.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
localIpsec String
Local-Ipsec.
objectDynamicVpntunnelDynamicMappingId String
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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 ObjectDynamicVpntunnelDynamicMapping 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 ObjectDynamicVpntunnelDynamicMapping Resource

Get an existing ObjectDynamicVpntunnelDynamicMapping 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?: ObjectDynamicVpntunnelDynamicMappingState, opts?: CustomResourceOptions): ObjectDynamicVpntunnelDynamicMapping
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        _scopes: Optional[Sequence[ObjectDynamicVpntunnelDynamicMapping_ScopeArgs]] = None,
        adom: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        local_ipsec: Optional[str] = None,
        object_dynamic_vpntunnel_dynamic_mapping_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        vpntunnel: Optional[str] = None) -> ObjectDynamicVpntunnelDynamicMapping
func GetObjectDynamicVpntunnelDynamicMapping(ctx *Context, name string, id IDInput, state *ObjectDynamicVpntunnelDynamicMappingState, opts ...ResourceOption) (*ObjectDynamicVpntunnelDynamicMapping, error)
public static ObjectDynamicVpntunnelDynamicMapping Get(string name, Input<string> id, ObjectDynamicVpntunnelDynamicMappingState? state, CustomResourceOptions? opts = null)
public static ObjectDynamicVpntunnelDynamicMapping get(String name, Output<String> id, ObjectDynamicVpntunnelDynamicMappingState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectDynamicVpntunnelDynamicMapping    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.
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.
LocalIpsec string
Local-Ipsec.
ObjectDynamicVpntunnelDynamicMappingId string
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
Vpntunnel string
Vpntunnel.
_scopes List<ObjectDynamicVpntunnelDynamicMapping_Scope>
_Scope. The structure of _scope block is documented below.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
LocalIpsec string
Local-Ipsec.
ObjectDynamicVpntunnelDynamicMappingId string
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
Vpntunnel string
Vpntunnel.
_scopes []ObjectDynamicVpntunnelDynamicMapping_ScopeArgs
_Scope. The structure of _scope block is documented below.
_scopes List<ObjectDynamicVpntunnelDynamicMapping_Scope>
_Scope. The structure of _scope block is documented below.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
localIpsec String
Local-Ipsec.
objectDynamicVpntunnelDynamicMappingId String
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
vpntunnel String
Vpntunnel.
_scopes ObjectDynamicVpntunnelDynamicMapping_Scope[]
_Scope. The structure of _scope block is documented below.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
localIpsec string
Local-Ipsec.
objectDynamicVpntunnelDynamicMappingId string
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
vpntunnel string
Vpntunnel.
_scopes Sequence[ObjectDynamicVpntunnelDynamicMapping_ScopeArgs]
_Scope. The structure of _scope block is documented below.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
local_ipsec str
Local-Ipsec.
object_dynamic_vpntunnel_dynamic_mapping_id str
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
vpntunnel str
Vpntunnel.
_scopes List<Property Map>
_Scope. The structure of _scope block is documented below.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
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.
localIpsec String
Local-Ipsec.
objectDynamicVpntunnelDynamicMappingId String
an identifier for the resource with format "{{_scope.name}} {{_scope.vdom}}".
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.
vpntunnel String
Vpntunnel.

Supporting Types

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 VpntunnelDynamicMapping can be imported using any of these accepted formats:

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectDynamicVpntunnelDynamicMapping:ObjectDynamicVpntunnelDynamicMapping labelname {{_scope.name}}.{{_scope.vdom}}
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.