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

fortimanager.ObjectFirewallAddress6Subnetsegment

Explore with Pulumi AI

IPv6 subnet segments.

This resource is a sub resource for variable subnet_segment of resource fortimanager.ObjectFirewallAddress6. 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 trname3 = new fortimanager.ObjectFirewallAddress6("trname3", {});
const trname = new fortimanager.ObjectFirewallAddress6Subnetsegment("trname", {
    address6: trname3.name,
    type: "any",
}, {
    dependsOn: [trname3],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname3 = fortimanager.ObjectFirewallAddress6("trname3")
trname = fortimanager.ObjectFirewallAddress6Subnetsegment("trname",
    address6=trname3.name,
    type="any",
    opts = pulumi.ResourceOptions(depends_on=[trname3]))
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 {
		trname3, err := fortimanager.NewObjectFirewallAddress6(ctx, "trname3", nil)
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectFirewallAddress6Subnetsegment(ctx, "trname", &fortimanager.ObjectFirewallAddress6SubnetsegmentArgs{
			Address6: trname3.Name,
			Type:     pulumi.String("any"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trname3,
		}))
		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 trname3 = new Fortimanager.ObjectFirewallAddress6("trname3");

    var trname = new Fortimanager.ObjectFirewallAddress6Subnetsegment("trname", new()
    {
        Address6 = trname3.Name,
        Type = "any",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trname3,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectFirewallAddress6;
import com.pulumi.fortimanager.ObjectFirewallAddress6Subnetsegment;
import com.pulumi.fortimanager.ObjectFirewallAddress6SubnetsegmentArgs;
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 trname3 = new ObjectFirewallAddress6("trname3");

        var trname = new ObjectFirewallAddress6Subnetsegment("trname", ObjectFirewallAddress6SubnetsegmentArgs.builder()
            .address6(trname3.name())
            .type("any")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trname3)
                .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:ObjectFirewallAddress6Subnetsegment
    properties:
      address6: ${trname3.name}
      type: any
    options:
      dependsOn:
        - ${trname3}
  trname3:
    type: fortimanager:ObjectFirewallAddress6
Copy

Create ObjectFirewallAddress6Subnetsegment Resource

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

Constructor syntax

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

@overload
def ObjectFirewallAddress6Subnetsegment(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        address6: Optional[str] = None,
                                        adom: Optional[str] = None,
                                        name: Optional[str] = None,
                                        object_firewall_address6_subnetsegment_id: Optional[str] = None,
                                        scopetype: Optional[str] = None,
                                        type: Optional[str] = None,
                                        value: Optional[str] = None)
func NewObjectFirewallAddress6Subnetsegment(ctx *Context, name string, args ObjectFirewallAddress6SubnetsegmentArgs, opts ...ResourceOption) (*ObjectFirewallAddress6Subnetsegment, error)
public ObjectFirewallAddress6Subnetsegment(string name, ObjectFirewallAddress6SubnetsegmentArgs args, CustomResourceOptions? opts = null)
public ObjectFirewallAddress6Subnetsegment(String name, ObjectFirewallAddress6SubnetsegmentArgs args)
public ObjectFirewallAddress6Subnetsegment(String name, ObjectFirewallAddress6SubnetsegmentArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallAddress6Subnetsegment
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. ObjectFirewallAddress6SubnetsegmentArgs
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. ObjectFirewallAddress6SubnetsegmentArgs
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. ObjectFirewallAddress6SubnetsegmentArgs
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. ObjectFirewallAddress6SubnetsegmentArgs
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. ObjectFirewallAddress6SubnetsegmentArgs
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 objectFirewallAddress6SubnetsegmentResource = new Fortimanager.ObjectFirewallAddress6Subnetsegment("objectFirewallAddress6SubnetsegmentResource", new()
{
    Address6 = "string",
    Adom = "string",
    Name = "string",
    ObjectFirewallAddress6SubnetsegmentId = "string",
    Scopetype = "string",
    Type = "string",
    Value = "string",
});
Copy
example, err := fortimanager.NewObjectFirewallAddress6Subnetsegment(ctx, "objectFirewallAddress6SubnetsegmentResource", &fortimanager.ObjectFirewallAddress6SubnetsegmentArgs{
Address6: pulumi.String("string"),
Adom: pulumi.String("string"),
Name: pulumi.String("string"),
ObjectFirewallAddress6SubnetsegmentId: pulumi.String("string"),
Scopetype: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
})
Copy
var objectFirewallAddress6SubnetsegmentResource = new ObjectFirewallAddress6Subnetsegment("objectFirewallAddress6SubnetsegmentResource", ObjectFirewallAddress6SubnetsegmentArgs.builder()
    .address6("string")
    .adom("string")
    .name("string")
    .objectFirewallAddress6SubnetsegmentId("string")
    .scopetype("string")
    .type("string")
    .value("string")
    .build());
Copy
object_firewall_address6_subnetsegment_resource = fortimanager.ObjectFirewallAddress6Subnetsegment("objectFirewallAddress6SubnetsegmentResource",
    address6="string",
    adom="string",
    name="string",
    object_firewall_address6_subnetsegment_id="string",
    scopetype="string",
    type="string",
    value="string")
Copy
const objectFirewallAddress6SubnetsegmentResource = new fortimanager.ObjectFirewallAddress6Subnetsegment("objectFirewallAddress6SubnetsegmentResource", {
    address6: "string",
    adom: "string",
    name: "string",
    objectFirewallAddress6SubnetsegmentId: "string",
    scopetype: "string",
    type: "string",
    value: "string",
});
Copy
type: fortimanager:ObjectFirewallAddress6Subnetsegment
properties:
    address6: string
    adom: string
    name: string
    objectFirewallAddress6SubnetsegmentId: string
    scopetype: string
    type: string
    value: string
Copy

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

Address6 This property is required. string
Address6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Name string
Name.
ObjectFirewallAddress6SubnetsegmentId string
an identifier for the resource with format {{name}}.
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.
Type string
Subnet segment type. Valid values: any, specific.
Value string
Subnet segment value.
Address6 This property is required. string
Address6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Name string
Name.
ObjectFirewallAddress6SubnetsegmentId string
an identifier for the resource with format {{name}}.
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.
Type string
Subnet segment type. Valid values: any, specific.
Value string
Subnet segment value.
address6 This property is required. String
Address6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name String
Name.
objectFirewallAddress6SubnetsegmentId String
an identifier for the resource with format {{name}}.
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.
type String
Subnet segment type. Valid values: any, specific.
value String
Subnet segment value.
address6 This property is required. string
Address6.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name string
Name.
objectFirewallAddress6SubnetsegmentId string
an identifier for the resource with format {{name}}.
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.
type string
Subnet segment type. Valid values: any, specific.
value string
Subnet segment value.
address6 This property is required. str
Address6.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name str
Name.
object_firewall_address6_subnetsegment_id str
an identifier for the resource with format {{name}}.
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.
type str
Subnet segment type. Valid values: any, specific.
value str
Subnet segment value.
address6 This property is required. String
Address6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name String
Name.
objectFirewallAddress6SubnetsegmentId String
an identifier for the resource with format {{name}}.
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.
type String
Subnet segment type. Valid values: any, specific.
value String
Subnet segment value.

Outputs

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

Get an existing ObjectFirewallAddress6Subnetsegment 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?: ObjectFirewallAddress6SubnetsegmentState, opts?: CustomResourceOptions): ObjectFirewallAddress6Subnetsegment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address6: Optional[str] = None,
        adom: Optional[str] = None,
        name: Optional[str] = None,
        object_firewall_address6_subnetsegment_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        type: Optional[str] = None,
        value: Optional[str] = None) -> ObjectFirewallAddress6Subnetsegment
func GetObjectFirewallAddress6Subnetsegment(ctx *Context, name string, id IDInput, state *ObjectFirewallAddress6SubnetsegmentState, opts ...ResourceOption) (*ObjectFirewallAddress6Subnetsegment, error)
public static ObjectFirewallAddress6Subnetsegment Get(string name, Input<string> id, ObjectFirewallAddress6SubnetsegmentState? state, CustomResourceOptions? opts = null)
public static ObjectFirewallAddress6Subnetsegment get(String name, Output<String> id, ObjectFirewallAddress6SubnetsegmentState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectFirewallAddress6Subnetsegment    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:
Address6 string
Address6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Name string
Name.
ObjectFirewallAddress6SubnetsegmentId string
an identifier for the resource with format {{name}}.
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.
Type string
Subnet segment type. Valid values: any, specific.
Value string
Subnet segment value.
Address6 string
Address6.
Adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
Name string
Name.
ObjectFirewallAddress6SubnetsegmentId string
an identifier for the resource with format {{name}}.
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.
Type string
Subnet segment type. Valid values: any, specific.
Value string
Subnet segment value.
address6 String
Address6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name String
Name.
objectFirewallAddress6SubnetsegmentId String
an identifier for the resource with format {{name}}.
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.
type String
Subnet segment type. Valid values: any, specific.
value String
Subnet segment value.
address6 string
Address6.
adom string
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name string
Name.
objectFirewallAddress6SubnetsegmentId string
an identifier for the resource with format {{name}}.
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.
type string
Subnet segment type. Valid values: any, specific.
value string
Subnet segment value.
address6 str
Address6.
adom str
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name str
Name.
object_firewall_address6_subnetsegment_id str
an identifier for the resource with format {{name}}.
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.
type str
Subnet segment type. Valid values: any, specific.
value str
Subnet segment value.
address6 String
Address6.
adom String
Adom. This value is valid only when the scopetype is adom, otherwise the value of adom in the provider will be inherited.
name String
Name.
objectFirewallAddress6SubnetsegmentId String
an identifier for the resource with format {{name}}.
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.
type String
Subnet segment type. Valid values: any, specific.
value String
Subnet segment value.

Import

ObjectFirewall Address6SubnetSegment can be imported using any of these accepted formats:

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

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/objectFirewallAddress6Subnetsegment:ObjectFirewallAddress6Subnetsegment labelname {{name}}
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.