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

fortimanager.ObjectFirewallAddress6templateSubnetsegmentValues

Explore with Pulumi AI

Subnet segment values.

This resource is a sub resource for variable values of resource fortimanager.ObjectFirewallAddress6templateSubnetsegment. 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 trname2ObjectFirewallAddress6template = new fortimanager.ObjectFirewallAddress6template("trname2ObjectFirewallAddress6template", {});
const trname2ObjectFirewallAddress6templateSubnetsegment = new fortimanager.ObjectFirewallAddress6templateSubnetsegment("trname2ObjectFirewallAddress6templateSubnetsegment", {
    address6Template: trname2ObjectFirewallAddress6template.name,
    bits: 3,
    fosid: 1,
}, {
    dependsOn: [trname2ObjectFirewallAddress6template],
});
const trname = new fortimanager.ObjectFirewallAddress6templateSubnetsegmentValues("trname", {
    address6Template: trname2ObjectFirewallAddress6template.name,
    subnetSegment: trname2ObjectFirewallAddress6templateSubnetsegment.fosid,
    value: "0b101",
}, {
    dependsOn: [trname2ObjectFirewallAddress6templateSubnetsegment],
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname2_object_firewall_address6template = fortimanager.ObjectFirewallAddress6template("trname2ObjectFirewallAddress6template")
trname2_object_firewall_address6template_subnetsegment = fortimanager.ObjectFirewallAddress6templateSubnetsegment("trname2ObjectFirewallAddress6templateSubnetsegment",
    address6_template=trname2_object_firewall_address6template.name,
    bits=3,
    fosid=1,
    opts = pulumi.ResourceOptions(depends_on=[trname2_object_firewall_address6template]))
trname = fortimanager.ObjectFirewallAddress6templateSubnetsegmentValues("trname",
    address6_template=trname2_object_firewall_address6template.name,
    subnet_segment=trname2_object_firewall_address6template_subnetsegment.fosid,
    value="0b101",
    opts = pulumi.ResourceOptions(depends_on=[trname2_object_firewall_address6template_subnetsegment]))
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 {
		trname2ObjectFirewallAddress6template, err := fortimanager.NewObjectFirewallAddress6template(ctx, "trname2ObjectFirewallAddress6template", nil)
		if err != nil {
			return err
		}
		trname2ObjectFirewallAddress6templateSubnetsegment, err := fortimanager.NewObjectFirewallAddress6templateSubnetsegment(ctx, "trname2ObjectFirewallAddress6templateSubnetsegment", &fortimanager.ObjectFirewallAddress6templateSubnetsegmentArgs{
			Address6Template: trname2ObjectFirewallAddress6template.Name,
			Bits:             pulumi.Float64(3),
			Fosid:            pulumi.Float64(1),
		}, pulumi.DependsOn([]pulumi.Resource{
			trname2ObjectFirewallAddress6template,
		}))
		if err != nil {
			return err
		}
		_, err = fortimanager.NewObjectFirewallAddress6templateSubnetsegmentValues(ctx, "trname", &fortimanager.ObjectFirewallAddress6templateSubnetsegmentValuesArgs{
			Address6Template: trname2ObjectFirewallAddress6template.Name,
			SubnetSegment:    trname2ObjectFirewallAddress6templateSubnetsegment.Fosid,
			Value:            pulumi.String("0b101"),
		}, pulumi.DependsOn([]pulumi.Resource{
			trname2ObjectFirewallAddress6templateSubnetsegment,
		}))
		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 trname2ObjectFirewallAddress6template = new Fortimanager.ObjectFirewallAddress6template("trname2ObjectFirewallAddress6template");

    var trname2ObjectFirewallAddress6templateSubnetsegment = new Fortimanager.ObjectFirewallAddress6templateSubnetsegment("trname2ObjectFirewallAddress6templateSubnetsegment", new()
    {
        Address6Template = trname2ObjectFirewallAddress6template.Name,
        Bits = 3,
        Fosid = 1,
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trname2ObjectFirewallAddress6template,
        },
    });

    var trname = new Fortimanager.ObjectFirewallAddress6templateSubnetsegmentValues("trname", new()
    {
        Address6Template = trname2ObjectFirewallAddress6template.Name,
        SubnetSegment = trname2ObjectFirewallAddress6templateSubnetsegment.Fosid,
        Value = "0b101",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            trname2ObjectFirewallAddress6templateSubnetsegment,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.ObjectFirewallAddress6template;
import com.pulumi.fortimanager.ObjectFirewallAddress6templateSubnetsegment;
import com.pulumi.fortimanager.ObjectFirewallAddress6templateSubnetsegmentArgs;
import com.pulumi.fortimanager.ObjectFirewallAddress6templateSubnetsegmentValues;
import com.pulumi.fortimanager.ObjectFirewallAddress6templateSubnetsegmentValuesArgs;
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 trname2ObjectFirewallAddress6template = new ObjectFirewallAddress6template("trname2ObjectFirewallAddress6template");

        var trname2ObjectFirewallAddress6templateSubnetsegment = new ObjectFirewallAddress6templateSubnetsegment("trname2ObjectFirewallAddress6templateSubnetsegment", ObjectFirewallAddress6templateSubnetsegmentArgs.builder()
            .address6Template(trname2ObjectFirewallAddress6template.name())
            .bits(3)
            .fosid(1)
            .build(), CustomResourceOptions.builder()
                .dependsOn(trname2ObjectFirewallAddress6template)
                .build());

        var trname = new ObjectFirewallAddress6templateSubnetsegmentValues("trname", ObjectFirewallAddress6templateSubnetsegmentValuesArgs.builder()
            .address6Template(trname2ObjectFirewallAddress6template.name())
            .subnetSegment(trname2ObjectFirewallAddress6templateSubnetsegment.fosid())
            .value("0b101")
            .build(), CustomResourceOptions.builder()
                .dependsOn(trname2ObjectFirewallAddress6templateSubnetsegment)
                .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:ObjectFirewallAddress6templateSubnetsegmentValues
    properties:
      address6Template: ${trname2ObjectFirewallAddress6template.name}
      subnetSegment: ${trname2ObjectFirewallAddress6templateSubnetsegment.fosid}
      value: 0b101
    options:
      dependsOn:
        - ${trname2ObjectFirewallAddress6templateSubnetsegment}
  trname2ObjectFirewallAddress6templateSubnetsegment:
    type: fortimanager:ObjectFirewallAddress6templateSubnetsegment
    properties:
      address6Template: ${trname2ObjectFirewallAddress6template.name}
      bits: 3
      fosid: 1
    options:
      dependsOn:
        - ${trname2ObjectFirewallAddress6template}
  trname2ObjectFirewallAddress6template:
    type: fortimanager:ObjectFirewallAddress6template
Copy

Create ObjectFirewallAddress6templateSubnetsegmentValues Resource

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

Constructor syntax

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

@overload
def ObjectFirewallAddress6templateSubnetsegmentValues(resource_name: str,
                                                      opts: Optional[ResourceOptions] = None,
                                                      address6_template: Optional[str] = None,
                                                      subnet_segment: Optional[str] = None,
                                                      adom: Optional[str] = None,
                                                      name: Optional[str] = None,
                                                      object_firewall_address6template_subnetsegment_values_id: Optional[str] = None,
                                                      scopetype: Optional[str] = None,
                                                      value: Optional[str] = None)
func NewObjectFirewallAddress6templateSubnetsegmentValues(ctx *Context, name string, args ObjectFirewallAddress6templateSubnetsegmentValuesArgs, opts ...ResourceOption) (*ObjectFirewallAddress6templateSubnetsegmentValues, error)
public ObjectFirewallAddress6templateSubnetsegmentValues(string name, ObjectFirewallAddress6templateSubnetsegmentValuesArgs args, CustomResourceOptions? opts = null)
public ObjectFirewallAddress6templateSubnetsegmentValues(String name, ObjectFirewallAddress6templateSubnetsegmentValuesArgs args)
public ObjectFirewallAddress6templateSubnetsegmentValues(String name, ObjectFirewallAddress6templateSubnetsegmentValuesArgs args, CustomResourceOptions options)
type: fortimanager:ObjectFirewallAddress6templateSubnetsegmentValues
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. ObjectFirewallAddress6templateSubnetsegmentValuesArgs
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. ObjectFirewallAddress6templateSubnetsegmentValuesArgs
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. ObjectFirewallAddress6templateSubnetsegmentValuesArgs
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. ObjectFirewallAddress6templateSubnetsegmentValuesArgs
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. ObjectFirewallAddress6templateSubnetsegmentValuesArgs
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 objectFirewallAddress6templateSubnetsegmentValuesResource = new Fortimanager.ObjectFirewallAddress6templateSubnetsegmentValues("objectFirewallAddress6templateSubnetsegmentValuesResource", new()
{
    Address6Template = "string",
    SubnetSegment = "string",
    Adom = "string",
    Name = "string",
    ObjectFirewallAddress6templateSubnetsegmentValuesId = "string",
    Scopetype = "string",
    Value = "string",
});
Copy
example, err := fortimanager.NewObjectFirewallAddress6templateSubnetsegmentValues(ctx, "objectFirewallAddress6templateSubnetsegmentValuesResource", &fortimanager.ObjectFirewallAddress6templateSubnetsegmentValuesArgs{
	Address6Template: pulumi.String("string"),
	SubnetSegment:    pulumi.String("string"),
	Adom:             pulumi.String("string"),
	Name:             pulumi.String("string"),
	ObjectFirewallAddress6templateSubnetsegmentValuesId: pulumi.String("string"),
	Scopetype: pulumi.String("string"),
	Value:     pulumi.String("string"),
})
Copy
var objectFirewallAddress6templateSubnetsegmentValuesResource = new ObjectFirewallAddress6templateSubnetsegmentValues("objectFirewallAddress6templateSubnetsegmentValuesResource", ObjectFirewallAddress6templateSubnetsegmentValuesArgs.builder()
    .address6Template("string")
    .subnetSegment("string")
    .adom("string")
    .name("string")
    .objectFirewallAddress6templateSubnetsegmentValuesId("string")
    .scopetype("string")
    .value("string")
    .build());
Copy
object_firewall_address6template_subnetsegment_values_resource = fortimanager.ObjectFirewallAddress6templateSubnetsegmentValues("objectFirewallAddress6templateSubnetsegmentValuesResource",
    address6_template="string",
    subnet_segment="string",
    adom="string",
    name="string",
    object_firewall_address6template_subnetsegment_values_id="string",
    scopetype="string",
    value="string")
Copy
const objectFirewallAddress6templateSubnetsegmentValuesResource = new fortimanager.ObjectFirewallAddress6templateSubnetsegmentValues("objectFirewallAddress6templateSubnetsegmentValuesResource", {
    address6Template: "string",
    subnetSegment: "string",
    adom: "string",
    name: "string",
    objectFirewallAddress6templateSubnetsegmentValuesId: "string",
    scopetype: "string",
    value: "string",
});
Copy
type: fortimanager:ObjectFirewallAddress6templateSubnetsegmentValues
properties:
    address6Template: string
    adom: string
    name: string
    objectFirewallAddress6templateSubnetsegmentValuesId: string
    scopetype: string
    subnetSegment: string
    value: string
Copy

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

Address6Template This property is required. string
Address6 Template.
SubnetSegment This property is required. string
Subnet Segment.
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
Subnet segment value name.
ObjectFirewallAddress6templateSubnetsegmentValuesId 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.
Value string
Subnet segment value.
Address6Template This property is required. string
Address6 Template.
SubnetSegment This property is required. string
Subnet Segment.
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
Subnet segment value name.
ObjectFirewallAddress6templateSubnetsegmentValuesId 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.
Value string
Subnet segment value.
address6Template This property is required. String
Address6 Template.
subnetSegment This property is required. String
Subnet Segment.
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
Subnet segment value name.
objectFirewallAddress6templateSubnetsegmentValuesId 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.
value String
Subnet segment value.
address6Template This property is required. string
Address6 Template.
subnetSegment This property is required. string
Subnet Segment.
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
Subnet segment value name.
objectFirewallAddress6templateSubnetsegmentValuesId 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.
value string
Subnet segment value.
address6_template This property is required. str
Address6 Template.
subnet_segment This property is required. str
Subnet Segment.
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
Subnet segment value name.
object_firewall_address6template_subnetsegment_values_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.
value str
Subnet segment value.
address6Template This property is required. String
Address6 Template.
subnetSegment This property is required. String
Subnet Segment.
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
Subnet segment value name.
objectFirewallAddress6templateSubnetsegmentValuesId 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.
value String
Subnet segment value.

Outputs

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

Get an existing ObjectFirewallAddress6templateSubnetsegmentValues 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?: ObjectFirewallAddress6templateSubnetsegmentValuesState, opts?: CustomResourceOptions): ObjectFirewallAddress6templateSubnetsegmentValues
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address6_template: Optional[str] = None,
        adom: Optional[str] = None,
        name: Optional[str] = None,
        object_firewall_address6template_subnetsegment_values_id: Optional[str] = None,
        scopetype: Optional[str] = None,
        subnet_segment: Optional[str] = None,
        value: Optional[str] = None) -> ObjectFirewallAddress6templateSubnetsegmentValues
func GetObjectFirewallAddress6templateSubnetsegmentValues(ctx *Context, name string, id IDInput, state *ObjectFirewallAddress6templateSubnetsegmentValuesState, opts ...ResourceOption) (*ObjectFirewallAddress6templateSubnetsegmentValues, error)
public static ObjectFirewallAddress6templateSubnetsegmentValues Get(string name, Input<string> id, ObjectFirewallAddress6templateSubnetsegmentValuesState? state, CustomResourceOptions? opts = null)
public static ObjectFirewallAddress6templateSubnetsegmentValues get(String name, Output<String> id, ObjectFirewallAddress6templateSubnetsegmentValuesState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:ObjectFirewallAddress6templateSubnetsegmentValues    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:
Address6Template string
Address6 Template.
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
Subnet segment value name.
ObjectFirewallAddress6templateSubnetsegmentValuesId 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.
SubnetSegment string
Subnet Segment.
Value string
Subnet segment value.
Address6Template string
Address6 Template.
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
Subnet segment value name.
ObjectFirewallAddress6templateSubnetsegmentValuesId 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.
SubnetSegment string
Subnet Segment.
Value string
Subnet segment value.
address6Template String
Address6 Template.
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
Subnet segment value name.
objectFirewallAddress6templateSubnetsegmentValuesId 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.
subnetSegment String
Subnet Segment.
value String
Subnet segment value.
address6Template string
Address6 Template.
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
Subnet segment value name.
objectFirewallAddress6templateSubnetsegmentValuesId 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.
subnetSegment string
Subnet Segment.
value string
Subnet segment value.
address6_template str
Address6 Template.
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
Subnet segment value name.
object_firewall_address6template_subnetsegment_values_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.
subnet_segment str
Subnet Segment.
value str
Subnet segment value.
address6Template String
Address6 Template.
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
Subnet segment value name.
objectFirewallAddress6templateSubnetsegmentValuesId 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.
subnetSegment String
Subnet Segment.
value String
Subnet segment value.

Import

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

Set import_options = [“address6_template=YOUR_VALUE”, “subnet_segment=YOUR_VALUE”] in the provider section.

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

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