fortios.fmg.FirewallObjectVip
Explore with Pulumi AI
This resource supports Create/Read/Update/Delete firewall object virtual ip for FortiManager.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const test1 = new fortios.fmg.FirewallObjectVip("test1", {
arpReply: "enable",
comment: "test obj vip",
configDefault: "enable",
extIntf: "any",
extIp: "2.2.2.2",
mappedIp: "1.1.1.1",
type: "static-nat",
});
const test2 = new fortios.fmg.FirewallObjectVip("test2", {
arpReply: "disable",
comment: "test obj vip",
configDefault: "enable",
extIp: "2.2.2.2-2.2.2.100",
mappedAddr: "update.microsoft.com",
type: "fqdn",
});
import pulumi
import pulumiverse_fortios as fortios
test1 = fortios.fmg.FirewallObjectVip("test1",
arp_reply="enable",
comment="test obj vip",
config_default="enable",
ext_intf="any",
ext_ip="2.2.2.2",
mapped_ip="1.1.1.1",
type="static-nat")
test2 = fortios.fmg.FirewallObjectVip("test2",
arp_reply="disable",
comment="test obj vip",
config_default="enable",
ext_ip="2.2.2.2-2.2.2.100",
mapped_addr="update.microsoft.com",
type="fqdn")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/fmg"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fmg.NewFirewallObjectVip(ctx, "test1", &fmg.FirewallObjectVipArgs{
ArpReply: pulumi.String("enable"),
Comment: pulumi.String("test obj vip"),
ConfigDefault: pulumi.String("enable"),
ExtIntf: pulumi.String("any"),
ExtIp: pulumi.String("2.2.2.2"),
MappedIp: pulumi.String("1.1.1.1"),
Type: pulumi.String("static-nat"),
})
if err != nil {
return err
}
_, err = fmg.NewFirewallObjectVip(ctx, "test2", &fmg.FirewallObjectVipArgs{
ArpReply: pulumi.String("disable"),
Comment: pulumi.String("test obj vip"),
ConfigDefault: pulumi.String("enable"),
ExtIp: pulumi.String("2.2.2.2-2.2.2.100"),
MappedAddr: pulumi.String("update.microsoft.com"),
Type: pulumi.String("fqdn"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortios = Pulumiverse.Fortios;
return await Deployment.RunAsync(() =>
{
var test1 = new Fortios.Fmg.FirewallObjectVip("test1", new()
{
ArpReply = "enable",
Comment = "test obj vip",
ConfigDefault = "enable",
ExtIntf = "any",
ExtIp = "2.2.2.2",
MappedIp = "1.1.1.1",
Type = "static-nat",
});
var test2 = new Fortios.Fmg.FirewallObjectVip("test2", new()
{
ArpReply = "disable",
Comment = "test obj vip",
ConfigDefault = "enable",
ExtIp = "2.2.2.2-2.2.2.100",
MappedAddr = "update.microsoft.com",
Type = "fqdn",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.fmg.FirewallObjectVip;
import com.pulumi.fortios.fmg.FirewallObjectVipArgs;
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 test1 = new FirewallObjectVip("test1", FirewallObjectVipArgs.builder()
.arpReply("enable")
.comment("test obj vip")
.configDefault("enable")
.extIntf("any")
.extIp("2.2.2.2")
.mappedIp("1.1.1.1")
.type("static-nat")
.build());
var test2 = new FirewallObjectVip("test2", FirewallObjectVipArgs.builder()
.arpReply("disable")
.comment("test obj vip")
.configDefault("enable")
.extIp("2.2.2.2-2.2.2.100")
.mappedAddr("update.microsoft.com")
.type("fqdn")
.build());
}
}
resources:
test1:
type: fortios:fmg:FirewallObjectVip
properties:
arpReply: enable
comment: test obj vip
configDefault: enable
extIntf: any
extIp: 2.2.2.2
mappedIp: 1.1.1.1
type: static-nat
test2:
type: fortios:fmg:FirewallObjectVip
properties:
arpReply: disable
comment: test obj vip
configDefault: enable
extIp: 2.2.2.2-2.2.2.100
mappedAddr: update.microsoft.com
type: fqdn
Create FirewallObjectVip Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FirewallObjectVip(name: string, args?: FirewallObjectVipArgs, opts?: CustomResourceOptions);
@overload
def FirewallObjectVip(resource_name: str,
args: Optional[FirewallObjectVipArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def FirewallObjectVip(resource_name: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
arp_reply: Optional[str] = None,
comment: Optional[str] = None,
config_default: Optional[str] = None,
ext_intf: Optional[str] = None,
ext_ip: Optional[str] = None,
mapped_addr: Optional[str] = None,
mapped_ip: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None)
func NewFirewallObjectVip(ctx *Context, name string, args *FirewallObjectVipArgs, opts ...ResourceOption) (*FirewallObjectVip, error)
public FirewallObjectVip(string name, FirewallObjectVipArgs? args = null, CustomResourceOptions? opts = null)
public FirewallObjectVip(String name, FirewallObjectVipArgs args)
public FirewallObjectVip(String name, FirewallObjectVipArgs args, CustomResourceOptions options)
type: fortios:fmg:FirewallObjectVip
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FirewallObjectVipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args FirewallObjectVipArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args FirewallObjectVipArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirewallObjectVipArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FirewallObjectVipArgs
- 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 firewallObjectVipResource = new Fortios.Fmg.FirewallObjectVip("firewallObjectVipResource", new()
{
Adom = "string",
ArpReply = "string",
Comment = "string",
ConfigDefault = "string",
ExtIntf = "string",
ExtIp = "string",
MappedAddr = "string",
MappedIp = "string",
Name = "string",
Type = "string",
});
example, err := fmg.NewFirewallObjectVip(ctx, "firewallObjectVipResource", &fmg.FirewallObjectVipArgs{
Adom: pulumi.String("string"),
ArpReply: pulumi.String("string"),
Comment: pulumi.String("string"),
ConfigDefault: pulumi.String("string"),
ExtIntf: pulumi.String("string"),
ExtIp: pulumi.String("string"),
MappedAddr: pulumi.String("string"),
MappedIp: pulumi.String("string"),
Name: pulumi.String("string"),
Type: pulumi.String("string"),
})
var firewallObjectVipResource = new FirewallObjectVip("firewallObjectVipResource", FirewallObjectVipArgs.builder()
.adom("string")
.arpReply("string")
.comment("string")
.configDefault("string")
.extIntf("string")
.extIp("string")
.mappedAddr("string")
.mappedIp("string")
.name("string")
.type("string")
.build());
firewall_object_vip_resource = fortios.fmg.FirewallObjectVip("firewallObjectVipResource",
adom="string",
arp_reply="string",
comment="string",
config_default="string",
ext_intf="string",
ext_ip="string",
mapped_addr="string",
mapped_ip="string",
name="string",
type="string")
const firewallObjectVipResource = new fortios.fmg.FirewallObjectVip("firewallObjectVipResource", {
adom: "string",
arpReply: "string",
comment: "string",
configDefault: "string",
extIntf: "string",
extIp: "string",
mappedAddr: "string",
mappedIp: "string",
name: "string",
type: "string",
});
type: fortios:fmg:FirewallObjectVip
properties:
adom: string
arpReply: string
comment: string
configDefault: string
extIntf: string
extIp: string
mappedAddr: string
mappedIp: string
name: string
type: string
FirewallObjectVip Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FirewallObjectVip resource accepts the following input properties:
- Adom string
- ADOM name. default is 'root'.
- Arp
Reply string - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- Comment string
- Comments.
- Config
Default string - Enable/Disable config default value. enabled by default.
- Ext
Intf string - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- Ext
Ip string - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- Mapped
Addr string - Mapped FQDN address name.
- Mapped
Ip string - Mapped Ip address.
- Name string
- Virtual IP name.
- Type string
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- Adom string
- ADOM name. default is 'root'.
- Arp
Reply string - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- Comment string
- Comments.
- Config
Default string - Enable/Disable config default value. enabled by default.
- Ext
Intf string - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- Ext
Ip string - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- Mapped
Addr string - Mapped FQDN address name.
- Mapped
Ip string - Mapped Ip address.
- Name string
- Virtual IP name.
- Type string
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- adom String
- ADOM name. default is 'root'.
- arp
Reply String - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- comment String
- Comments.
- config
Default String - Enable/Disable config default value. enabled by default.
- ext
Intf String - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- ext
Ip String - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- mapped
Addr String - Mapped FQDN address name.
- mapped
Ip String - Mapped Ip address.
- name String
- Virtual IP name.
- type String
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- adom string
- ADOM name. default is 'root'.
- arp
Reply string - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- comment string
- Comments.
- config
Default string - Enable/Disable config default value. enabled by default.
- ext
Intf string - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- ext
Ip string - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- mapped
Addr string - Mapped FQDN address name.
- mapped
Ip string - Mapped Ip address.
- name string
- Virtual IP name.
- type string
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- adom str
- ADOM name. default is 'root'.
- arp_
reply str - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- comment str
- Comments.
- config_
default str - Enable/Disable config default value. enabled by default.
- ext_
intf str - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- ext_
ip str - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- mapped_
addr str - Mapped FQDN address name.
- mapped_
ip str - Mapped Ip address.
- name str
- Virtual IP name.
- type str
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- adom String
- ADOM name. default is 'root'.
- arp
Reply String - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- comment String
- Comments.
- config
Default String - Enable/Disable config default value. enabled by default.
- ext
Intf String - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- ext
Ip String - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- mapped
Addr String - Mapped FQDN address name.
- mapped
Ip String - Mapped Ip address.
- name String
- Virtual IP name.
- type String
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
Outputs
All input properties are implicitly available as output properties. Additionally, the FirewallObjectVip 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 FirewallObjectVip Resource
Get an existing FirewallObjectVip 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?: FirewallObjectVipState, opts?: CustomResourceOptions): FirewallObjectVip
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
adom: Optional[str] = None,
arp_reply: Optional[str] = None,
comment: Optional[str] = None,
config_default: Optional[str] = None,
ext_intf: Optional[str] = None,
ext_ip: Optional[str] = None,
mapped_addr: Optional[str] = None,
mapped_ip: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None) -> FirewallObjectVip
func GetFirewallObjectVip(ctx *Context, name string, id IDInput, state *FirewallObjectVipState, opts ...ResourceOption) (*FirewallObjectVip, error)
public static FirewallObjectVip Get(string name, Input<string> id, FirewallObjectVipState? state, CustomResourceOptions? opts = null)
public static FirewallObjectVip get(String name, Output<String> id, FirewallObjectVipState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Adom string
- ADOM name. default is 'root'.
- Arp
Reply string - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- Comment string
- Comments.
- Config
Default string - Enable/Disable config default value. enabled by default.
- Ext
Intf string - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- Ext
Ip string - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- Mapped
Addr string - Mapped FQDN address name.
- Mapped
Ip string - Mapped Ip address.
- Name string
- Virtual IP name.
- Type string
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- Adom string
- ADOM name. default is 'root'.
- Arp
Reply string - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- Comment string
- Comments.
- Config
Default string - Enable/Disable config default value. enabled by default.
- Ext
Intf string - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- Ext
Ip string - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- Mapped
Addr string - Mapped FQDN address name.
- Mapped
Ip string - Mapped Ip address.
- Name string
- Virtual IP name.
- Type string
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- adom String
- ADOM name. default is 'root'.
- arp
Reply String - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- comment String
- Comments.
- config
Default String - Enable/Disable config default value. enabled by default.
- ext
Intf String - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- ext
Ip String - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- mapped
Addr String - Mapped FQDN address name.
- mapped
Ip String - Mapped Ip address.
- name String
- Virtual IP name.
- type String
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- adom string
- ADOM name. default is 'root'.
- arp
Reply string - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- comment string
- Comments.
- config
Default string - Enable/Disable config default value. enabled by default.
- ext
Intf string - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- ext
Ip string - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- mapped
Addr string - Mapped FQDN address name.
- mapped
Ip string - Mapped Ip address.
- name string
- Virtual IP name.
- type string
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- adom str
- ADOM name. default is 'root'.
- arp_
reply str - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- comment str
- Comments.
- config_
default str - Enable/Disable config default value. enabled by default.
- ext_
intf str - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- ext_
ip str - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- mapped_
addr str - Mapped FQDN address name.
- mapped_
ip str - Mapped Ip address.
- name str
- Virtual IP name.
- type str
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
- adom String
- ADOM name. default is 'root'.
- arp
Reply String - Enable to respond to ARP requests for this virtual IP address. Enabled by default.
- comment String
- Comments.
- config
Default String - Enable/Disable config default value. enabled by default.
- ext
Intf String - Interface connected to the source network that receives the packets that will be forwarded to the destination network.
- ext
Ip String - IP address or address range on the external interface that you want to map to an address or address range on the destination network.
- mapped
Addr String - Mapped FQDN address name.
- mapped
Ip String - Mapped Ip address.
- name String
- Virtual IP name.
- type String
- Virtual IP type, Enum: ["static-nat", "dns-translation", "fqdn"]
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.