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

fortimanager.ObjectFmgVariableDynamicMapping

Explore with Pulumi AI

ObjectFmg VariableDynamicMapping

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

Create ObjectFmgVariableDynamicMapping Resource

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

Constructor syntax

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

@overload
def ObjectFmgVariableDynamicMapping(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    variable: Optional[str] = None,
                                    _scopes: Optional[Sequence[ObjectFmgVariableDynamicMapping_ScopeArgs]] = None,
                                    adom: Optional[str] = None,
                                    dynamic_sort_subtable: Optional[str] = None,
                                    object_fmg_variable_dynamic_mapping_id: Optional[str] = None,
                                    scopetype: Optional[str] = None,
                                    value: Optional[str] = None)
func NewObjectFmgVariableDynamicMapping(ctx *Context, name string, args ObjectFmgVariableDynamicMappingArgs, opts ...ResourceOption) (*ObjectFmgVariableDynamicMapping, error)
public ObjectFmgVariableDynamicMapping(string name, ObjectFmgVariableDynamicMappingArgs args, CustomResourceOptions? opts = null)
public ObjectFmgVariableDynamicMapping(String name, ObjectFmgVariableDynamicMappingArgs args)
public ObjectFmgVariableDynamicMapping(String name, ObjectFmgVariableDynamicMappingArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFmgVariableDynamicMapping
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. ObjectFmgVariableDynamicMappingArgs
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. ObjectFmgVariableDynamicMappingInitArgs
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. ObjectFmgVariableDynamicMappingArgs
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. ObjectFmgVariableDynamicMappingArgs
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. ObjectFmgVariableDynamicMappingArgs
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 objectFmgVariableDynamicMappingResource = new Fortimanager.ObjectFmgVariableDynamicMapping("objectFmgVariableDynamicMappingResource", new()
{
    Variable = "string",
    _scopes = new[]
    {
        new Fortimanager.Inputs.ObjectFmgVariableDynamicMapping_ScopeArgs
        {
            Name = "string",
            Vdom = "string",
        },
    },
    Adom = "string",
    DynamicSortSubtable = "string",
    ObjectFmgVariableDynamicMappingId = "string",
    Scopetype = "string",
    Value = "string",
});
Copy
example, err := fortimanager.NewObjectFmgVariableDynamicMapping(ctx, "objectFmgVariableDynamicMappingResource", &fortimanager.ObjectFmgVariableDynamicMappingArgs{
	Variable: pulumi.String("string"),
	_scopes: fortimanager.ObjectFmgVariableDynamicMapping_ScopeArray{
		&fortimanager.ObjectFmgVariableDynamicMapping_ScopeArgs{
			Name: pulumi.String("string"),
			Vdom: pulumi.String("string"),
		},
	},
	Adom:                              pulumi.String("string"),
	DynamicSortSubtable:               pulumi.String("string"),
	ObjectFmgVariableDynamicMappingId: pulumi.String("string"),
	Scopetype:                         pulumi.String("string"),
	Value:                             pulumi.String("string"),
})
Copy
var objectFmgVariableDynamicMappingResource = new ObjectFmgVariableDynamicMapping("objectFmgVariableDynamicMappingResource", ObjectFmgVariableDynamicMappingArgs.builder()
    .variable("string")
    ._scopes(ObjectFmgVariableDynamicMapping_ScopeArgs.builder()
        .name("string")
        .vdom("string")
        .build())
    .adom("string")
    .dynamicSortSubtable("string")
    .objectFmgVariableDynamicMappingId("string")
    .scopetype("string")
    .value("string")
    .build());
Copy
object_fmg_variable_dynamic_mapping_resource = fortimanager.ObjectFmgVariableDynamicMapping("objectFmgVariableDynamicMappingResource",
    variable="string",
    _scopes=[{
        "name": "string",
        "vdom": "string",
    }],
    adom="string",
    dynamic_sort_subtable="string",
    object_fmg_variable_dynamic_mapping_id="string",
    scopetype="string",
    value="string")
Copy
const objectFmgVariableDynamicMappingResource = new fortimanager.ObjectFmgVariableDynamicMapping("objectFmgVariableDynamicMappingResource", {
    variable: "string",
    _scopes: [{
        name: "string",
        vdom: "string",
    }],
    adom: "string",
    dynamicSortSubtable: "string",
    objectFmgVariableDynamicMappingId: "string",
    scopetype: "string",
    value: "string",
});
Copy
type: fortimanager:ObjectFmgVariableDynamicMapping
properties:
    _scopes:
        - name: string
          vdom: string
    adom: string
    dynamicSortSubtable: string
    objectFmgVariableDynamicMappingId: string
    scopetype: string
    value: string
    variable: string
Copy

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

Variable This property is required. string
Variable.
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.
ObjectFmgVariableDynamicMappingId 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.
Value string
Value.
_scopes List<ObjectFmgVariableDynamicMapping_Scope>
_Scope. The structure of _scope block is documented below.
Variable This property is required. string
Variable.
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.
ObjectFmgVariableDynamicMappingId 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.
Value string
Value.
_scopes []ObjectFmgVariableDynamicMapping_ScopeArgs
_Scope. The structure of _scope block is documented below.
variable This property is required. String
Variable.
_scopes List<ObjectFmgVariableDynamicMapping_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.
objectFmgVariableDynamicMappingId 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.
value String
Value.
variable This property is required. string
Variable.
_scopes ObjectFmgVariableDynamicMapping_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.
objectFmgVariableDynamicMappingId 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.
value string
Value.
variable This property is required. str
Variable.
_scopes Sequence[ObjectFmgVariableDynamicMapping_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.
object_fmg_variable_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.
value str
Value.
variable This property is required. String
Variable.
_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.
objectFmgVariableDynamicMappingId 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.
value String
Value.

Outputs

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

Get an existing ObjectFmgVariableDynamicMapping 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?: ObjectFmgVariableDynamicMappingState, opts?: CustomResourceOptions): ObjectFmgVariableDynamicMapping
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        _scopes: Optional[Sequence[ObjectFmgVariableDynamicMapping_ScopeArgs]] = None,
        adom: Optional[str] = None,
        dynamic_sort_subtable: Optional[str] = None,
        object_fmg_variable_dynamic_mapping_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        value: Optional[str] = None,
        variable: Optional[str] = None) -> ObjectFmgVariableDynamicMapping
func GetObjectFmgVariableDynamicMapping(ctx *Context, name string, id IDInput, state *ObjectFmgVariableDynamicMappingState, opts ...ResourceOption) (*ObjectFmgVariableDynamicMapping, error)
public static ObjectFmgVariableDynamicMapping Get(string name, Input<string> id, ObjectFmgVariableDynamicMappingState? state, CustomResourceOptions? opts = null)
public static ObjectFmgVariableDynamicMapping get(String name, Output<String> id, ObjectFmgVariableDynamicMappingState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectFmgVariableDynamicMapping    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.
ObjectFmgVariableDynamicMappingId 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.
Value string
Value.
Variable string
Variable.
_scopes List<ObjectFmgVariableDynamicMapping_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.
ObjectFmgVariableDynamicMappingId 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.
Value string
Value.
Variable string
Variable.
_scopes []ObjectFmgVariableDynamicMapping_ScopeArgs
_Scope. The structure of _scope block is documented below.
_scopes List<ObjectFmgVariableDynamicMapping_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.
objectFmgVariableDynamicMappingId 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.
value String
Value.
variable String
Variable.
_scopes ObjectFmgVariableDynamicMapping_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.
objectFmgVariableDynamicMappingId 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.
value string
Value.
variable string
Variable.
_scopes Sequence[ObjectFmgVariableDynamicMapping_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.
object_fmg_variable_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.
value str
Value.
variable str
Variable.
_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.
objectFmgVariableDynamicMappingId 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.
value String
Value.
variable String
Variable.

Supporting Types

ObjectFmgVariableDynamicMapping_Scope
, ObjectFmgVariableDynamicMapping_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

ObjectFmg VariableDynamicMapping can be imported using any of these accepted formats:

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectFmgVariableDynamicMapping:ObjectFmgVariableDynamicMapping 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.