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

fortimanager.ObjectDynamicAddressDynamicAddrMapping

Explore with Pulumi AI

ObjectDynamic AddressDynamicAddrMapping

This resource is a sub resource for variable dynamic_addr_mapping of resource fortimanager.ObjectDynamicAddress. 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 trnameObjectDynamicAddress = new fortimanager.ObjectDynamicAddress("trnameObjectDynamicAddress", {});
const trnameObjectDynamicAddressDynamicAddrMapping = new fortimanager.ObjectDynamicAddressDynamicAddrMapping("trnameObjectDynamicAddressDynamicAddrMapping", {
    address: trnameObjectDynamicAddress.name,
    addr: "34.56.1.5",
    fosid: 1,
}, {
    dependsOn: [trnameObjectDynamicAddress],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_dynamic_address = fortimanager.ObjectDynamicAddress("trnameObjectDynamicAddress")
trname_object_dynamic_address_dynamic_addr_mapping = fortimanager.ObjectDynamicAddressDynamicAddrMapping("trnameObjectDynamicAddressDynamicAddrMapping",
    address=trname_object_dynamic_address.name,
    addr="34.56.1.5",
    fosid=1,
    opts = pulumi.ResourceOptions(depends_on=[trname_object_dynamic_address]))
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 {
		trnameObjectDynamicAddress, err := fortimanager.NewObjectDynamicAddress(ctx, "trnameObjectDynamicAddress", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectDynamicAddressDynamicAddrMapping(ctx, "trnameObjectDynamicAddressDynamicAddrMapping", &fortimanager.ObjectDynamicAddressDynamicAddrMappingArgs{
			Address: trnameObjectDynamicAddress.Name,
			Addr:    pulumi.String("34.56.1.5"),
			Fosid:   pulumi.Float64(1),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectDynamicAddress,
		}))
		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 trnameObjectDynamicAddress = new Fortimanager.ObjectDynamicAddress("trnameObjectDynamicAddress");

    var trnameObjectDynamicAddressDynamicAddrMapping = new Fortimanager.ObjectDynamicAddressDynamicAddrMapping("trnameObjectDynamicAddressDynamicAddrMapping", new()
    {
        Address = trnameObjectDynamicAddress.Name,
        Addr = "34.56.1.5",
        Fosid = 1,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectDynamicAddress,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectDynamicAddress;
import com.pulumi.fortimanager.ObjectDynamicAddressDynamicAddrMapping;
import com.pulumi.fortimanager.ObjectDynamicAddressDynamicAddrMappingArgs;
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 trnameObjectDynamicAddress = new ObjectDynamicAddress("trnameObjectDynamicAddress");

        var trnameObjectDynamicAddressDynamicAddrMapping = new ObjectDynamicAddressDynamicAddrMapping("trnameObjectDynamicAddressDynamicAddrMapping", ObjectDynamicAddressDynamicAddrMappingArgs.builder()
            .address(trnameObjectDynamicAddress.name())
            .addr("34.56.1.5")
            .fosid(1)
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectDynamicAddress)
                .build());

    }
}
Copy
resources:
  trnameObjectDynamicAddressDynamicAddrMapping:
    type: fortimanager:ObjectDynamicAddressDynamicAddrMapping
    properties:
      address: ${trnameObjectDynamicAddress.name}
      addr: 34.56.1.5
      fosid: 1
    options:
      dependsOn:
        - ${trnameObjectDynamicAddress}
  trnameObjectDynamicAddress:
    type: fortimanager:ObjectDynamicAddress
Copy

Create ObjectDynamicAddressDynamicAddrMapping Resource

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

Constructor syntax

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

@overload
def ObjectDynamicAddressDynamicAddrMapping(resource_name: str,
                                           opts: Optional[ResourceOptions] = None,
                                           address: Optional[str] = None,
                                           addr: Optional[str] = None,
                                           adom: Optional[str] = None,
                                           fosid: Optional[float] = None,
                                           object_dynamic_address_dynamic_addr_mapping_id: Optional[str] = None,
                                           scopetype: Optional[str] = None)
func NewObjectDynamicAddressDynamicAddrMapping(ctx *Context, name string, args ObjectDynamicAddressDynamicAddrMappingArgs, opts ...ResourceOption) (*ObjectDynamicAddressDynamicAddrMapping, error)
public ObjectDynamicAddressDynamicAddrMapping(string name, ObjectDynamicAddressDynamicAddrMappingArgs args, CustomResourceOptions? opts = null)
public ObjectDynamicAddressDynamicAddrMapping(String name, ObjectDynamicAddressDynamicAddrMappingArgs args)
public ObjectDynamicAddressDynamicAddrMapping(String name, ObjectDynamicAddressDynamicAddrMappingArgs args, CustomResourceOptions options)
type: fortimanager:ObjectDynamicAddressDynamicAddrMapping
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. ObjectDynamicAddressDynamicAddrMappingArgs
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. ObjectDynamicAddressDynamicAddrMappingInitArgs
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. ObjectDynamicAddressDynamicAddrMappingArgs
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. ObjectDynamicAddressDynamicAddrMappingArgs
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. ObjectDynamicAddressDynamicAddrMappingArgs
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 objectDynamicAddressDynamicAddrMappingResource = new Fortimanager.ObjectDynamicAddressDynamicAddrMapping("objectDynamicAddressDynamicAddrMappingResource", new()
{
    Address = "string",
    Addr = "string",
    Adom = "string",
    Fosid = 0,
    ObjectDynamicAddressDynamicAddrMappingId = "string",
    Scopetype = "string",
});
Copy
example, err := fortimanager.NewObjectDynamicAddressDynamicAddrMapping(ctx, "objectDynamicAddressDynamicAddrMappingResource", &fortimanager.ObjectDynamicAddressDynamicAddrMappingArgs{
Address: pulumi.String("string"),
Addr: pulumi.String("string"),
Adom: pulumi.String("string"),
Fosid: pulumi.Float64(0),
ObjectDynamicAddressDynamicAddrMappingId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
})
Copy
var objectDynamicAddressDynamicAddrMappingResource = new ObjectDynamicAddressDynamicAddrMapping("objectDynamicAddressDynamicAddrMappingResource", ObjectDynamicAddressDynamicAddrMappingArgs.builder()
    .address("string")
    .addr("string")
    .adom("string")
    .fosid(0)
    .objectDynamicAddressDynamicAddrMappingId("string")
    .scopetype("string")
    .build());
Copy
object_dynamic_address_dynamic_addr_mapping_resource = fortimanager.ObjectDynamicAddressDynamicAddrMapping("objectDynamicAddressDynamicAddrMappingResource",
    address="string",
    addr="string",
    adom="string",
    fosid=0,
    object_dynamic_address_dynamic_addr_mapping_id="string",
    scopetype="string")
Copy
const objectDynamicAddressDynamicAddrMappingResource = new fortimanager.ObjectDynamicAddressDynamicAddrMapping("objectDynamicAddressDynamicAddrMappingResource", {
    address: "string",
    addr: "string",
    adom: "string",
    fosid: 0,
    objectDynamicAddressDynamicAddrMappingId: "string",
    scopetype: "string",
});
Copy
type: fortimanager:ObjectDynamicAddressDynamicAddrMapping
properties:
    addr: string
    address: string
    adom: string
    fosid: 0
    objectDynamicAddressDynamicAddrMappingId: string
    scopetype: string
Copy

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

Address This property is required. string
Address.
Addr string
Addr.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid double
Id.
ObjectDynamicAddressDynamicAddrMappingId 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.
Address This property is required. string
Address.
Addr string
Addr.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid float64
Id.
ObjectDynamicAddressDynamicAddrMappingId 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.
address This property is required. String
Address.
addr String
Addr.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid Double
Id.
objectDynamicAddressDynamicAddrMappingId 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.
address This property is required. string
Address.
addr string
Addr.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid number
Id.
objectDynamicAddressDynamicAddrMappingId 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.
address This property is required. str
Address.
addr str
Addr.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid float
Id.
object_dynamic_address_dynamic_addr_mapping_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.
address This property is required. String
Address.
addr String
Addr.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid Number
Id.
objectDynamicAddressDynamicAddrMappingId 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.

Outputs

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

Get an existing ObjectDynamicAddressDynamicAddrMapping 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?: ObjectDynamicAddressDynamicAddrMappingState, opts?: CustomResourceOptions): ObjectDynamicAddressDynamicAddrMapping
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        addr: Optional[str] = None,
        address: Optional[str] = None,
        adom: Optional[str] = None,
        fosid: Optional[float] = None,
        object_dynamic_address_dynamic_addr_mapping_id: Optional[str] = None,
        scopetype: Optional[str] = None) -> ObjectDynamicAddressDynamicAddrMapping
func GetObjectDynamicAddressDynamicAddrMapping(ctx *Context, name string, id IDInput, state *ObjectDynamicAddressDynamicAddrMappingState, opts ...ResourceOption) (*ObjectDynamicAddressDynamicAddrMapping, error)
public static ObjectDynamicAddressDynamicAddrMapping Get(string name, Input<string> id, ObjectDynamicAddressDynamicAddrMappingState? state, CustomResourceOptions? opts = null)
public static ObjectDynamicAddressDynamicAddrMapping get(String name, Output<String> id, ObjectDynamicAddressDynamicAddrMappingState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectDynamicAddressDynamicAddrMapping    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:
Addr string
Addr.
Address string
Address.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid double
Id.
ObjectDynamicAddressDynamicAddrMappingId 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.
Addr string
Addr.
Address string
Address.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Fosid float64
Id.
ObjectDynamicAddressDynamicAddrMappingId 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.
addr String
Addr.
address String
Address.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid Double
Id.
objectDynamicAddressDynamicAddrMappingId 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.
addr string
Addr.
address string
Address.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid number
Id.
objectDynamicAddressDynamicAddrMappingId 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.
addr str
Addr.
address str
Address.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid float
Id.
object_dynamic_address_dynamic_addr_mapping_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.
addr String
Addr.
address String
Address.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
fosid Number
Id.
objectDynamicAddressDynamicAddrMappingId 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.

Import

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

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

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