1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. ObjectSystemGeoipoverrideIprange
fortimanager 1.13.0 published on Thursday, Mar 13, 2025 by fortinetdev

fortimanager.ObjectSystemGeoipoverrideIprange

Explore with Pulumi AI

Table of IP ranges assigned to country.

This resource is a sub resource for variable ip_range of resource fortimanager.ObjectSystemGeoipoverride. 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 trnameObjectSystemGeoipoverride = new fortimanager.ObjectSystemGeoipoverride("trnameObjectSystemGeoipoverride", {});
const trnameObjectSystemGeoipoverrideIprange = new fortimanager.ObjectSystemGeoipoverrideIprange("trnameObjectSystemGeoipoverrideIprange", {
    geoipOverride: trnameObjectSystemGeoipoverride.name,
    endIp: "10.160.2.27",
    fosid: 1,
    startIp: "10.160.2.25",
}, {
    dependsOn: [trnameObjectSystemGeoipoverride],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname_object_system_geoipoverride = fortimanager.ObjectSystemGeoipoverride("trnameObjectSystemGeoipoverride")
trname_object_system_geoipoverride_iprange = fortimanager.ObjectSystemGeoipoverrideIprange("trnameObjectSystemGeoipoverrideIprange",
    geoip_override=trname_object_system_geoipoverride.name,
    end_ip="10.160.2.27",
    fosid=1,
    start_ip="10.160.2.25",
    opts = pulumi.ResourceOptions(depends_on=[trname_object_system_geoipoverride]))
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 {
		trnameObjectSystemGeoipoverride, err := fortimanager.NewObjectSystemGeoipoverride(ctx, "trnameObjectSystemGeoipoverride", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectSystemGeoipoverrideIprange(ctx, "trnameObjectSystemGeoipoverrideIprange", &fortimanager.ObjectSystemGeoipoverrideIprangeArgs{
			GeoipOverride: trnameObjectSystemGeoipoverride.Name,
			EndIp:         pulumi.String("10.160.2.27"),
			Fosid:         pulumi.Float64(1),
			StartIp:       pulumi.String("10.160.2.25"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trnameObjectSystemGeoipoverride,
		}))
		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 trnameObjectSystemGeoipoverride = new Fortimanager.ObjectSystemGeoipoverride("trnameObjectSystemGeoipoverride");

    var trnameObjectSystemGeoipoverrideIprange = new Fortimanager.ObjectSystemGeoipoverrideIprange("trnameObjectSystemGeoipoverrideIprange", new()
    {
        GeoipOverride = trnameObjectSystemGeoipoverride.Name,
        EndIp = "10.160.2.27",
        Fosid = 1,
        StartIp = "10.160.2.25",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trnameObjectSystemGeoipoverride,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectSystemGeoipoverride;
import com.pulumi.fortimanager.ObjectSystemGeoipoverrideIprange;
import com.pulumi.fortimanager.ObjectSystemGeoipoverrideIprangeArgs;
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 trnameObjectSystemGeoipoverride = new ObjectSystemGeoipoverride("trnameObjectSystemGeoipoverride");

        var trnameObjectSystemGeoipoverrideIprange = new ObjectSystemGeoipoverrideIprange("trnameObjectSystemGeoipoverrideIprange", ObjectSystemGeoipoverrideIprangeArgs.builder()
            .geoipOverride(trnameObjectSystemGeoipoverride.name())
            .endIp("10.160.2.27")
            .fosid(1)
            .startIp("10.160.2.25")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trnameObjectSystemGeoipoverride)
                .build());

    }
}
Copy
resources:
  trnameObjectSystemGeoipoverrideIprange:
    type: fortimanager:ObjectSystemGeoipoverrideIprange
    properties:
      geoipOverride: ${trnameObjectSystemGeoipoverride.name}
      endIp: 10.160.2.27
      fosid: 1
      startIp: 10.160.2.25
    options:
      dependsOn:
        - ${trnameObjectSystemGeoipoverride}
  trnameObjectSystemGeoipoverride:
    type: fortimanager:ObjectSystemGeoipoverride
Copy

Create ObjectSystemGeoipoverrideIprange Resource

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

Constructor syntax

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

@overload
def ObjectSystemGeoipoverrideIprange(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     geoip_override: Optional[str] = None,
                                     adom: Optional[str] = None,
                                     end_ip: Optional[str] = None,
                                     fosid: Optional[float] = None,
                                     object_system_geoipoverride_iprange_id: Optional[str] = None,
                                     scopetype: Optional[str] = None,
                                     start_ip: Optional[str] = None)
func NewObjectSystemGeoipoverrideIprange(ctx *Context, name string, args ObjectSystemGeoipoverrideIprangeArgs, opts ...ResourceOption) (*ObjectSystemGeoipoverrideIprange, error)
public ObjectSystemGeoipoverrideIprange(string name, ObjectSystemGeoipoverrideIprangeArgs args, CustomResourceOptions? opts = null)
public ObjectSystemGeoipoverrideIprange(String name, ObjectSystemGeoipoverrideIprangeArgs args)
public ObjectSystemGeoipoverrideIprange(String name, ObjectSystemGeoipoverrideIprangeArgs args, CustomResourceOptions options)
type: fortimanager:ObjectSystemGeoipoverrideIprange
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. ObjectSystemGeoipoverrideIprangeArgs
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. ObjectSystemGeoipoverrideIprangeArgs
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. ObjectSystemGeoipoverrideIprangeArgs
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. ObjectSystemGeoipoverrideIprangeArgs
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. ObjectSystemGeoipoverrideIprangeArgs
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 objectSystemGeoipoverrideIprangeResource = new Fortimanager.ObjectSystemGeoipoverrideIprange("objectSystemGeoipoverrideIprangeResource", new()
{
    GeoipOverride = "string",
    Adom = "string",
    EndIp = "string",
    Fosid = 0,
    ObjectSystemGeoipoverrideIprangeId = "string",
    Scopetype = "string",
    StartIp = "string",
});
Copy
example, err := fortimanager.NewObjectSystemGeoipoverrideIprange(ctx, "objectSystemGeoipoverrideIprangeResource", &fortimanager.ObjectSystemGeoipoverrideIprangeArgs{
GeoipOverride: pulumi.String("string"),
Adom: pulumi.String("string"),
EndIp: pulumi.String("string"),
Fosid: pulumi.Float64(0),
ObjectSystemGeoipoverrideIprangeId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
StartIp: pulumi.String("string"),
})
Copy
var objectSystemGeoipoverrideIprangeResource = new ObjectSystemGeoipoverrideIprange("objectSystemGeoipoverrideIprangeResource", ObjectSystemGeoipoverrideIprangeArgs.builder()
    .geoipOverride("string")
    .adom("string")
    .endIp("string")
    .fosid(0)
    .objectSystemGeoipoverrideIprangeId("string")
    .scopetype("string")
    .startIp("string")
    .build());
Copy
object_system_geoipoverride_iprange_resource = fortimanager.ObjectSystemGeoipoverrideIprange("objectSystemGeoipoverrideIprangeResource",
    geoip_override="string",
    adom="string",
    end_ip="string",
    fosid=0,
    object_system_geoipoverride_iprange_id="string",
    scopetype="string",
    start_ip="string")
Copy
const objectSystemGeoipoverrideIprangeResource = new fortimanager.ObjectSystemGeoipoverrideIprange("objectSystemGeoipoverrideIprangeResource", {
    geoipOverride: "string",
    adom: "string",
    endIp: "string",
    fosid: 0,
    objectSystemGeoipoverrideIprangeId: "string",
    scopetype: "string",
    startIp: "string",
});
Copy
type: fortimanager:ObjectSystemGeoipoverrideIprange
properties:
    adom: string
    endIp: string
    fosid: 0
    geoipOverride: string
    objectSystemGeoipoverrideIprangeId: string
    scopetype: string
    startIp: string
Copy

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

GeoipOverride This property is required. string
Geoip Override.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndIp string
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
Fosid double
ID number for individual entry in the IP-Range table.
ObjectSystemGeoipoverrideIprangeId 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.
StartIp string
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
GeoipOverride This property is required. string
Geoip Override.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndIp string
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
Fosid float64
ID number for individual entry in the IP-Range table.
ObjectSystemGeoipoverrideIprangeId 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.
StartIp string
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
geoipOverride This property is required. String
Geoip Override.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp String
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
fosid Double
ID number for individual entry in the IP-Range table.
objectSystemGeoipoverrideIprangeId 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.
startIp String
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
geoipOverride This property is required. string
Geoip Override.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp string
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
fosid number
ID number for individual entry in the IP-Range table.
objectSystemGeoipoverrideIprangeId 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.
startIp string
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
geoip_override This property is required. str
Geoip Override.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
end_ip str
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
fosid float
ID number for individual entry in the IP-Range table.
object_system_geoipoverride_iprange_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.
start_ip str
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
geoipOverride This property is required. String
Geoip Override.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp String
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
fosid Number
ID number for individual entry in the IP-Range table.
objectSystemGeoipoverrideIprangeId 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.
startIp String
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).

Outputs

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

Get an existing ObjectSystemGeoipoverrideIprange 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?: ObjectSystemGeoipoverrideIprangeState, opts?: CustomResourceOptions): ObjectSystemGeoipoverrideIprange
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        adom: Optional[str] = None,
        end_ip: Optional[str] = None,
        fosid: Optional[float] = None,
        geoip_override: Optional[str] = None,
        object_system_geoipoverride_iprange_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        start_ip: Optional[str] = None) -> ObjectSystemGeoipoverrideIprange
func GetObjectSystemGeoipoverrideIprange(ctx *Context, name string, id IDInput, state *ObjectSystemGeoipoverrideIprangeState, opts ...ResourceOption) (*ObjectSystemGeoipoverrideIprange, error)
public static ObjectSystemGeoipoverrideIprange Get(string name, Input<string> id, ObjectSystemGeoipoverrideIprangeState? state, CustomResourceOptions? opts = null)
public static ObjectSystemGeoipoverrideIprange get(String name, Output<String> id, ObjectSystemGeoipoverrideIprangeState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectSystemGeoipoverrideIprange    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.
EndIp string
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
Fosid double
ID number for individual entry in the IP-Range table.
GeoipOverride string
Geoip Override.
ObjectSystemGeoipoverrideIprangeId 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.
StartIp string
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
EndIp string
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
Fosid float64
ID number for individual entry in the IP-Range table.
GeoipOverride string
Geoip Override.
ObjectSystemGeoipoverrideIprangeId 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.
StartIp string
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp String
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
fosid Double
ID number for individual entry in the IP-Range table.
geoipOverride String
Geoip Override.
objectSystemGeoipoverrideIprangeId 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.
startIp String
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp string
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
fosid number
ID number for individual entry in the IP-Range table.
geoipOverride string
Geoip Override.
objectSystemGeoipoverrideIprangeId 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.
startIp string
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
end_ip str
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
fosid float
ID number for individual entry in the IP-Range table.
geoip_override str
Geoip Override.
object_system_geoipoverride_iprange_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.
start_ip str
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
endIp String
Final IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).
fosid Number
ID number for individual entry in the IP-Range table.
geoipOverride String
Geoip Override.
objectSystemGeoipoverrideIprangeId 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.
startIp String
Starting IP address, inclusive, of the address range (format: xxx.xxx.xxx.xxx).

Import

ObjectSystem GeoipOverrideIpRange can be imported using any of these accepted formats:

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

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