fortios.firewall.ObjectAddress
Explore with Pulumi AI
Provides a resource to configure firewall addresses used in firewall policies of FortiOS.
!> Warning: The resource will be deprecated and replaced by new resource fortios.firewall.Address
, we recommend that you use the new resource.
Example Usage
Iprange Address
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const s1 = new fortios.firewall.ObjectAddress("s1", {
comment: "dd",
endIp: "2.0.0.0",
startIp: "1.0.0.0",
type: "iprange",
});
import pulumi
import pulumiverse_fortios as fortios
s1 = fortios.firewall.ObjectAddress("s1",
comment="dd",
end_ip="2.0.0.0",
start_ip="1.0.0.0",
type="iprange")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewObjectAddress(ctx, "s1", &firewall.ObjectAddressArgs{
Comment: pulumi.String("dd"),
EndIp: pulumi.String("2.0.0.0"),
StartIp: pulumi.String("1.0.0.0"),
Type: pulumi.String("iprange"),
})
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 s1 = new Fortios.Firewall.ObjectAddress("s1", new()
{
Comment = "dd",
EndIp = "2.0.0.0",
StartIp = "1.0.0.0",
Type = "iprange",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.ObjectAddress;
import com.pulumi.fortios.firewall.ObjectAddressArgs;
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 s1 = new ObjectAddress("s1", ObjectAddressArgs.builder()
.comment("dd")
.endIp("2.0.0.0")
.startIp("1.0.0.0")
.type("iprange")
.build());
}
}
resources:
s1:
type: fortios:firewall:ObjectAddress
properties:
comment: dd
endIp: 2.0.0.0
startIp: 1.0.0.0
type: iprange
Geography Address
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const s2 = new fortios.firewall.ObjectAddress("s2", {
comment: "dd",
country: "AO",
type: "geography",
});
import pulumi
import pulumiverse_fortios as fortios
s2 = fortios.firewall.ObjectAddress("s2",
comment="dd",
country="AO",
type="geography")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewObjectAddress(ctx, "s2", &firewall.ObjectAddressArgs{
Comment: pulumi.String("dd"),
Country: pulumi.String("AO"),
Type: pulumi.String("geography"),
})
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 s2 = new Fortios.Firewall.ObjectAddress("s2", new()
{
Comment = "dd",
Country = "AO",
Type = "geography",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.ObjectAddress;
import com.pulumi.fortios.firewall.ObjectAddressArgs;
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 s2 = new ObjectAddress("s2", ObjectAddressArgs.builder()
.comment("dd")
.country("AO")
.type("geography")
.build());
}
}
resources:
s2:
type: fortios:firewall:ObjectAddress
properties:
comment: dd
country: AO
type: geography
Fqdn Address
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const s3 = new fortios.firewall.ObjectAddress("s3", {
associatedInterface: "port4",
comment: "dd",
fqdn: "baid.com",
showInAddressList: "disable",
staticRouteConfigure: "enable",
type: "fqdn",
});
import pulumi
import pulumiverse_fortios as fortios
s3 = fortios.firewall.ObjectAddress("s3",
associated_interface="port4",
comment="dd",
fqdn="baid.com",
show_in_address_list="disable",
static_route_configure="enable",
type="fqdn")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewObjectAddress(ctx, "s3", &firewall.ObjectAddressArgs{
AssociatedInterface: pulumi.String("port4"),
Comment: pulumi.String("dd"),
Fqdn: pulumi.String("baid.com"),
ShowInAddressList: pulumi.String("disable"),
StaticRouteConfigure: pulumi.String("enable"),
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 s3 = new Fortios.Firewall.ObjectAddress("s3", new()
{
AssociatedInterface = "port4",
Comment = "dd",
Fqdn = "baid.com",
ShowInAddressList = "disable",
StaticRouteConfigure = "enable",
Type = "fqdn",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.ObjectAddress;
import com.pulumi.fortios.firewall.ObjectAddressArgs;
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 s3 = new ObjectAddress("s3", ObjectAddressArgs.builder()
.associatedInterface("port4")
.comment("dd")
.fqdn("baid.com")
.showInAddressList("disable")
.staticRouteConfigure("enable")
.type("fqdn")
.build());
}
}
resources:
s3:
type: fortios:firewall:ObjectAddress
properties:
associatedInterface: port4
comment: dd
fqdn: baid.com
showInAddressList: disable
staticRouteConfigure: enable
type: fqdn
Ipmask Address
import * as pulumi from "@pulumi/pulumi";
import * as fortios from "@pulumiverse/fortios";
const s4 = new fortios.firewall.ObjectAddress("s4", {
comment: "dd",
subnet: "0.0.0.0 0.0.0.0",
type: "ipmask",
});
import pulumi
import pulumiverse_fortios as fortios
s4 = fortios.firewall.ObjectAddress("s4",
comment="dd",
subnet="0.0.0.0 0.0.0.0",
type="ipmask")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-fortios/sdk/go/fortios/firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewObjectAddress(ctx, "s4", &firewall.ObjectAddressArgs{
Comment: pulumi.String("dd"),
Subnet: pulumi.String("0.0.0.0 0.0.0.0"),
Type: pulumi.String("ipmask"),
})
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 s4 = new Fortios.Firewall.ObjectAddress("s4", new()
{
Comment = "dd",
Subnet = "0.0.0.0 0.0.0.0",
Type = "ipmask",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortios.firewall.ObjectAddress;
import com.pulumi.fortios.firewall.ObjectAddressArgs;
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 s4 = new ObjectAddress("s4", ObjectAddressArgs.builder()
.comment("dd")
.subnet("0.0.0.0 0.0.0.0")
.type("ipmask")
.build());
}
}
resources:
s4:
type: fortios:firewall:ObjectAddress
properties:
comment: dd
subnet: 0.0.0.0 0.0.0.0
type: ipmask
Create ObjectAddress Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectAddress(name: string, args: ObjectAddressArgs, opts?: CustomResourceOptions);
@overload
def ObjectAddress(resource_name: str,
args: ObjectAddressArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ObjectAddress(resource_name: str,
opts: Optional[ResourceOptions] = None,
type: Optional[str] = None,
associated_interface: Optional[str] = None,
comment: Optional[str] = None,
country: Optional[str] = None,
end_ip: Optional[str] = None,
fqdn: Optional[str] = None,
name: Optional[str] = None,
show_in_address_list: Optional[str] = None,
start_ip: Optional[str] = None,
static_route_configure: Optional[str] = None,
subnet: Optional[str] = None)
func NewObjectAddress(ctx *Context, name string, args ObjectAddressArgs, opts ...ResourceOption) (*ObjectAddress, error)
public ObjectAddress(string name, ObjectAddressArgs args, CustomResourceOptions? opts = null)
public ObjectAddress(String name, ObjectAddressArgs args)
public ObjectAddress(String name, ObjectAddressArgs args, CustomResourceOptions options)
type: fortios:firewall:ObjectAddress
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 ObjectAddressArgs
- 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 ObjectAddressArgs
- 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 ObjectAddressArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectAddressArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectAddressArgs
- 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 objectAddressResource = new Fortios.Firewall.ObjectAddress("objectAddressResource", new()
{
Type = "string",
AssociatedInterface = "string",
Comment = "string",
Country = "string",
EndIp = "string",
Fqdn = "string",
Name = "string",
ShowInAddressList = "string",
StartIp = "string",
StaticRouteConfigure = "string",
Subnet = "string",
});
example, err := firewall.NewObjectAddress(ctx, "objectAddressResource", &firewall.ObjectAddressArgs{
Type: pulumi.String("string"),
AssociatedInterface: pulumi.String("string"),
Comment: pulumi.String("string"),
Country: pulumi.String("string"),
EndIp: pulumi.String("string"),
Fqdn: pulumi.String("string"),
Name: pulumi.String("string"),
ShowInAddressList: pulumi.String("string"),
StartIp: pulumi.String("string"),
StaticRouteConfigure: pulumi.String("string"),
Subnet: pulumi.String("string"),
})
var objectAddressResource = new ObjectAddress("objectAddressResource", ObjectAddressArgs.builder()
.type("string")
.associatedInterface("string")
.comment("string")
.country("string")
.endIp("string")
.fqdn("string")
.name("string")
.showInAddressList("string")
.startIp("string")
.staticRouteConfigure("string")
.subnet("string")
.build());
object_address_resource = fortios.firewall.ObjectAddress("objectAddressResource",
type="string",
associated_interface="string",
comment="string",
country="string",
end_ip="string",
fqdn="string",
name="string",
show_in_address_list="string",
start_ip="string",
static_route_configure="string",
subnet="string")
const objectAddressResource = new fortios.firewall.ObjectAddress("objectAddressResource", {
type: "string",
associatedInterface: "string",
comment: "string",
country: "string",
endIp: "string",
fqdn: "string",
name: "string",
showInAddressList: "string",
startIp: "string",
staticRouteConfigure: "string",
subnet: "string",
});
type: fortios:firewall:ObjectAddress
properties:
associatedInterface: string
comment: string
country: string
endIp: string
fqdn: string
name: string
showInAddressList: string
startIp: string
staticRouteConfigure: string
subnet: string
type: string
ObjectAddress 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 ObjectAddress resource accepts the following input properties:
- Type string
- Type of address(Support ipmask, iprange, fqdn and geography).
- Associated
Interface string - Network interface associated with address.
- Comment string
- Comment.
- Country string
- IP addresses associated to a specific country.
- End
Ip string - Final IP address (inclusive) in the range for the address.
- Fqdn string
- Fully Qualified Domain Name address.
- Name string
- Address name.
- Show
In stringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- Start
Ip string - First IP address (inclusive) in the range for the address.
- Static
Route stringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- Subnet string
- IP address and subnet mask of address.
- Type string
- Type of address(Support ipmask, iprange, fqdn and geography).
- Associated
Interface string - Network interface associated with address.
- Comment string
- Comment.
- Country string
- IP addresses associated to a specific country.
- End
Ip string - Final IP address (inclusive) in the range for the address.
- Fqdn string
- Fully Qualified Domain Name address.
- Name string
- Address name.
- Show
In stringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- Start
Ip string - First IP address (inclusive) in the range for the address.
- Static
Route stringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- Subnet string
- IP address and subnet mask of address.
- type String
- Type of address(Support ipmask, iprange, fqdn and geography).
- associated
Interface String - Network interface associated with address.
- comment String
- Comment.
- country String
- IP addresses associated to a specific country.
- end
Ip String - Final IP address (inclusive) in the range for the address.
- fqdn String
- Fully Qualified Domain Name address.
- name String
- Address name.
- show
In StringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- start
Ip String - First IP address (inclusive) in the range for the address.
- static
Route StringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- subnet String
- IP address and subnet mask of address.
- type string
- Type of address(Support ipmask, iprange, fqdn and geography).
- associated
Interface string - Network interface associated with address.
- comment string
- Comment.
- country string
- IP addresses associated to a specific country.
- end
Ip string - Final IP address (inclusive) in the range for the address.
- fqdn string
- Fully Qualified Domain Name address.
- name string
- Address name.
- show
In stringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- start
Ip string - First IP address (inclusive) in the range for the address.
- static
Route stringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- subnet string
- IP address and subnet mask of address.
- type str
- Type of address(Support ipmask, iprange, fqdn and geography).
- associated_
interface str - Network interface associated with address.
- comment str
- Comment.
- country str
- IP addresses associated to a specific country.
- end_
ip str - Final IP address (inclusive) in the range for the address.
- fqdn str
- Fully Qualified Domain Name address.
- name str
- Address name.
- show_
in_ straddress_ list - Enable/disable address visibility in the GUI. default is "enable".
- start_
ip str - First IP address (inclusive) in the range for the address.
- static_
route_ strconfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- subnet str
- IP address and subnet mask of address.
- type String
- Type of address(Support ipmask, iprange, fqdn and geography).
- associated
Interface String - Network interface associated with address.
- comment String
- Comment.
- country String
- IP addresses associated to a specific country.
- end
Ip String - Final IP address (inclusive) in the range for the address.
- fqdn String
- Fully Qualified Domain Name address.
- name String
- Address name.
- show
In StringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- start
Ip String - First IP address (inclusive) in the range for the address.
- static
Route StringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- subnet String
- IP address and subnet mask of address.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectAddress 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 ObjectAddress Resource
Get an existing ObjectAddress 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?: ObjectAddressState, opts?: CustomResourceOptions): ObjectAddress
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
associated_interface: Optional[str] = None,
comment: Optional[str] = None,
country: Optional[str] = None,
end_ip: Optional[str] = None,
fqdn: Optional[str] = None,
name: Optional[str] = None,
show_in_address_list: Optional[str] = None,
start_ip: Optional[str] = None,
static_route_configure: Optional[str] = None,
subnet: Optional[str] = None,
type: Optional[str] = None) -> ObjectAddress
func GetObjectAddress(ctx *Context, name string, id IDInput, state *ObjectAddressState, opts ...ResourceOption) (*ObjectAddress, error)
public static ObjectAddress Get(string name, Input<string> id, ObjectAddressState? state, CustomResourceOptions? opts = null)
public static ObjectAddress get(String name, Output<String> id, ObjectAddressState 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.
- Associated
Interface string - Network interface associated with address.
- Comment string
- Comment.
- Country string
- IP addresses associated to a specific country.
- End
Ip string - Final IP address (inclusive) in the range for the address.
- Fqdn string
- Fully Qualified Domain Name address.
- Name string
- Address name.
- Show
In stringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- Start
Ip string - First IP address (inclusive) in the range for the address.
- Static
Route stringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- Subnet string
- IP address and subnet mask of address.
- Type string
- Type of address(Support ipmask, iprange, fqdn and geography).
- Associated
Interface string - Network interface associated with address.
- Comment string
- Comment.
- Country string
- IP addresses associated to a specific country.
- End
Ip string - Final IP address (inclusive) in the range for the address.
- Fqdn string
- Fully Qualified Domain Name address.
- Name string
- Address name.
- Show
In stringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- Start
Ip string - First IP address (inclusive) in the range for the address.
- Static
Route stringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- Subnet string
- IP address and subnet mask of address.
- Type string
- Type of address(Support ipmask, iprange, fqdn and geography).
- associated
Interface String - Network interface associated with address.
- comment String
- Comment.
- country String
- IP addresses associated to a specific country.
- end
Ip String - Final IP address (inclusive) in the range for the address.
- fqdn String
- Fully Qualified Domain Name address.
- name String
- Address name.
- show
In StringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- start
Ip String - First IP address (inclusive) in the range for the address.
- static
Route StringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- subnet String
- IP address and subnet mask of address.
- type String
- Type of address(Support ipmask, iprange, fqdn and geography).
- associated
Interface string - Network interface associated with address.
- comment string
- Comment.
- country string
- IP addresses associated to a specific country.
- end
Ip string - Final IP address (inclusive) in the range for the address.
- fqdn string
- Fully Qualified Domain Name address.
- name string
- Address name.
- show
In stringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- start
Ip string - First IP address (inclusive) in the range for the address.
- static
Route stringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- subnet string
- IP address and subnet mask of address.
- type string
- Type of address(Support ipmask, iprange, fqdn and geography).
- associated_
interface str - Network interface associated with address.
- comment str
- Comment.
- country str
- IP addresses associated to a specific country.
- end_
ip str - Final IP address (inclusive) in the range for the address.
- fqdn str
- Fully Qualified Domain Name address.
- name str
- Address name.
- show_
in_ straddress_ list - Enable/disable address visibility in the GUI. default is "enable".
- start_
ip str - First IP address (inclusive) in the range for the address.
- static_
route_ strconfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- subnet str
- IP address and subnet mask of address.
- type str
- Type of address(Support ipmask, iprange, fqdn and geography).
- associated
Interface String - Network interface associated with address.
- comment String
- Comment.
- country String
- IP addresses associated to a specific country.
- end
Ip String - Final IP address (inclusive) in the range for the address.
- fqdn String
- Fully Qualified Domain Name address.
- name String
- Address name.
- show
In StringAddress List - Enable/disable address visibility in the GUI. default is "enable".
- start
Ip String - First IP address (inclusive) in the range for the address.
- static
Route StringConfigure - Enable/disable use of this address in the static route configuration. default is "disable".
- subnet String
- IP address and subnet mask of address.
- type String
- Type of address(Support ipmask, iprange, fqdn and geography).
Package Details
- Repository
- fortios pulumiverse/pulumi-fortios
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fortios
Terraform Provider.