1. Packages
  2. Fortios
  3. API Docs
  4. firewall
  5. Addrgrp
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

fortios.firewall.Addrgrp

Explore with Pulumi AI

fortios logo
Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse

    Configure IPv4 address groups.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as fortios from "@pulumiverse/fortios";
    
    const trname1 = new fortios.firewall.Address("trname1", {
        allowRouting: "disable",
        cacheTtl: 0,
        color: 0,
        endIp: "255.0.0.0",
        startIp: "12.0.0.0",
        subnet: "12.0.0.0 255.0.0.0",
        type: "ipmask",
        visibility: "enable",
        wildcard: "12.0.0.0 255.0.0.0",
    });
    const trname = new fortios.firewall.Addrgrp("trname", {
        allowRouting: "disable",
        color: 0,
        exclude: "disable",
        visibility: "enable",
        members: [{
            name: trname1.name,
        }],
    });
    
    import pulumi
    import pulumiverse_fortios as fortios
    
    trname1 = fortios.firewall.Address("trname1",
        allow_routing="disable",
        cache_ttl=0,
        color=0,
        end_ip="255.0.0.0",
        start_ip="12.0.0.0",
        subnet="12.0.0.0 255.0.0.0",
        type="ipmask",
        visibility="enable",
        wildcard="12.0.0.0 255.0.0.0")
    trname = fortios.firewall.Addrgrp("trname",
        allow_routing="disable",
        color=0,
        exclude="disable",
        visibility="enable",
        members=[fortios.firewall.AddrgrpMemberArgs(
            name=trname1.name,
        )])
    
    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 {
    		trname1, err := firewall.NewAddress(ctx, "trname1", &firewall.AddressArgs{
    			AllowRouting: pulumi.String("disable"),
    			CacheTtl:     pulumi.Int(0),
    			Color:        pulumi.Int(0),
    			EndIp:        pulumi.String("255.0.0.0"),
    			StartIp:      pulumi.String("12.0.0.0"),
    			Subnet:       pulumi.String("12.0.0.0 255.0.0.0"),
    			Type:         pulumi.String("ipmask"),
    			Visibility:   pulumi.String("enable"),
    			Wildcard:     pulumi.String("12.0.0.0 255.0.0.0"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = firewall.NewAddrgrp(ctx, "trname", &firewall.AddrgrpArgs{
    			AllowRouting: pulumi.String("disable"),
    			Color:        pulumi.Int(0),
    			Exclude:      pulumi.String("disable"),
    			Visibility:   pulumi.String("enable"),
    			Members: firewall.AddrgrpMemberArray{
    				&firewall.AddrgrpMemberArgs{
    					Name: trname1.Name,
    				},
    			},
    		})
    		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 trname1 = new Fortios.Firewall.Address("trname1", new()
        {
            AllowRouting = "disable",
            CacheTtl = 0,
            Color = 0,
            EndIp = "255.0.0.0",
            StartIp = "12.0.0.0",
            Subnet = "12.0.0.0 255.0.0.0",
            Type = "ipmask",
            Visibility = "enable",
            Wildcard = "12.0.0.0 255.0.0.0",
        });
    
        var trname = new Fortios.Firewall.Addrgrp("trname", new()
        {
            AllowRouting = "disable",
            Color = 0,
            Exclude = "disable",
            Visibility = "enable",
            Members = new[]
            {
                new Fortios.Firewall.Inputs.AddrgrpMemberArgs
                {
                    Name = trname1.Name,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.fortios.firewall.Address;
    import com.pulumi.fortios.firewall.AddressArgs;
    import com.pulumi.fortios.firewall.Addrgrp;
    import com.pulumi.fortios.firewall.AddrgrpArgs;
    import com.pulumi.fortios.firewall.inputs.AddrgrpMemberArgs;
    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 trname1 = new Address("trname1", AddressArgs.builder()        
                .allowRouting("disable")
                .cacheTtl(0)
                .color(0)
                .endIp("255.0.0.0")
                .startIp("12.0.0.0")
                .subnet("12.0.0.0 255.0.0.0")
                .type("ipmask")
                .visibility("enable")
                .wildcard("12.0.0.0 255.0.0.0")
                .build());
    
            var trname = new Addrgrp("trname", AddrgrpArgs.builder()        
                .allowRouting("disable")
                .color(0)
                .exclude("disable")
                .visibility("enable")
                .members(AddrgrpMemberArgs.builder()
                    .name(trname1.name())
                    .build())
                .build());
    
        }
    }
    
    resources:
      trname1:
        type: fortios:firewall:Address
        properties:
          allowRouting: disable
          cacheTtl: 0
          color: 0
          endIp: 255.0.0.0
          startIp: 12.0.0.0
          subnet: 12.0.0.0 255.0.0.0
          type: ipmask
          visibility: enable
          wildcard: 12.0.0.0 255.0.0.0
      trname:
        type: fortios:firewall:Addrgrp
        properties:
          allowRouting: disable
          color: 0
          exclude: disable
          visibility: enable
          members:
            - name: ${trname1.name}
    

    Create Addrgrp Resource

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

    Constructor syntax

    new Addrgrp(name: string, args: AddrgrpArgs, opts?: CustomResourceOptions);
    @overload
    def Addrgrp(resource_name: str,
                args: AddrgrpArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Addrgrp(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                members: Optional[Sequence[AddrgrpMemberArgs]] = None,
                get_all_tables: Optional[str] = None,
                category: Optional[str] = None,
                comment: Optional[str] = None,
                dynamic_sort_subtable: Optional[str] = None,
                exclude: Optional[str] = None,
                exclude_members: Optional[Sequence[AddrgrpExcludeMemberArgs]] = None,
                color: Optional[int] = None,
                allow_routing: Optional[str] = None,
                fabric_object: Optional[str] = None,
                name: Optional[str] = None,
                taggings: Optional[Sequence[AddrgrpTaggingArgs]] = None,
                type: Optional[str] = None,
                uuid: Optional[str] = None,
                vdomparam: Optional[str] = None,
                visibility: Optional[str] = None)
    func NewAddrgrp(ctx *Context, name string, args AddrgrpArgs, opts ...ResourceOption) (*Addrgrp, error)
    public Addrgrp(string name, AddrgrpArgs args, CustomResourceOptions? opts = null)
    public Addrgrp(String name, AddrgrpArgs args)
    public Addrgrp(String name, AddrgrpArgs args, CustomResourceOptions options)
    
    type: fortios:firewall:Addrgrp
    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 AddrgrpArgs
    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 AddrgrpArgs
    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 AddrgrpArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AddrgrpArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AddrgrpArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var addrgrpResource = new Fortios.Firewall.Addrgrp("addrgrpResource", new()
    {
        Members = new[]
        {
            new Fortios.Firewall.Inputs.AddrgrpMemberArgs
            {
                Name = "string",
            },
        },
        GetAllTables = "string",
        Category = "string",
        Comment = "string",
        DynamicSortSubtable = "string",
        Exclude = "string",
        ExcludeMembers = new[]
        {
            new Fortios.Firewall.Inputs.AddrgrpExcludeMemberArgs
            {
                Name = "string",
            },
        },
        Color = 0,
        AllowRouting = "string",
        FabricObject = "string",
        Name = "string",
        Taggings = new[]
        {
            new Fortios.Firewall.Inputs.AddrgrpTaggingArgs
            {
                Category = "string",
                Name = "string",
                Tags = new[]
                {
                    new Fortios.Firewall.Inputs.AddrgrpTaggingTagArgs
                    {
                        Name = "string",
                    },
                },
            },
        },
        Type = "string",
        Uuid = "string",
        Vdomparam = "string",
        Visibility = "string",
    });
    
    example, err := firewall.NewAddrgrp(ctx, "addrgrpResource", &firewall.AddrgrpArgs{
    	Members: firewall.AddrgrpMemberArray{
    		&firewall.AddrgrpMemberArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	GetAllTables:        pulumi.String("string"),
    	Category:            pulumi.String("string"),
    	Comment:             pulumi.String("string"),
    	DynamicSortSubtable: pulumi.String("string"),
    	Exclude:             pulumi.String("string"),
    	ExcludeMembers: firewall.AddrgrpExcludeMemberArray{
    		&firewall.AddrgrpExcludeMemberArgs{
    			Name: pulumi.String("string"),
    		},
    	},
    	Color:        pulumi.Int(0),
    	AllowRouting: pulumi.String("string"),
    	FabricObject: pulumi.String("string"),
    	Name:         pulumi.String("string"),
    	Taggings: firewall.AddrgrpTaggingArray{
    		&firewall.AddrgrpTaggingArgs{
    			Category: pulumi.String("string"),
    			Name:     pulumi.String("string"),
    			Tags: firewall.AddrgrpTaggingTagArray{
    				&firewall.AddrgrpTaggingTagArgs{
    					Name: pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Type:       pulumi.String("string"),
    	Uuid:       pulumi.String("string"),
    	Vdomparam:  pulumi.String("string"),
    	Visibility: pulumi.String("string"),
    })
    
    var addrgrpResource = new Addrgrp("addrgrpResource", AddrgrpArgs.builder()        
        .members(AddrgrpMemberArgs.builder()
            .name("string")
            .build())
        .getAllTables("string")
        .category("string")
        .comment("string")
        .dynamicSortSubtable("string")
        .exclude("string")
        .excludeMembers(AddrgrpExcludeMemberArgs.builder()
            .name("string")
            .build())
        .color(0)
        .allowRouting("string")
        .fabricObject("string")
        .name("string")
        .taggings(AddrgrpTaggingArgs.builder()
            .category("string")
            .name("string")
            .tags(AddrgrpTaggingTagArgs.builder()
                .name("string")
                .build())
            .build())
        .type("string")
        .uuid("string")
        .vdomparam("string")
        .visibility("string")
        .build());
    
    addrgrp_resource = fortios.firewall.Addrgrp("addrgrpResource",
        members=[fortios.firewall.AddrgrpMemberArgs(
            name="string",
        )],
        get_all_tables="string",
        category="string",
        comment="string",
        dynamic_sort_subtable="string",
        exclude="string",
        exclude_members=[fortios.firewall.AddrgrpExcludeMemberArgs(
            name="string",
        )],
        color=0,
        allow_routing="string",
        fabric_object="string",
        name="string",
        taggings=[fortios.firewall.AddrgrpTaggingArgs(
            category="string",
            name="string",
            tags=[fortios.firewall.AddrgrpTaggingTagArgs(
                name="string",
            )],
        )],
        type="string",
        uuid="string",
        vdomparam="string",
        visibility="string")
    
    const addrgrpResource = new fortios.firewall.Addrgrp("addrgrpResource", {
        members: [{
            name: "string",
        }],
        getAllTables: "string",
        category: "string",
        comment: "string",
        dynamicSortSubtable: "string",
        exclude: "string",
        excludeMembers: [{
            name: "string",
        }],
        color: 0,
        allowRouting: "string",
        fabricObject: "string",
        name: "string",
        taggings: [{
            category: "string",
            name: "string",
            tags: [{
                name: "string",
            }],
        }],
        type: "string",
        uuid: "string",
        vdomparam: "string",
        visibility: "string",
    });
    
    type: fortios:firewall:Addrgrp
    properties:
        allowRouting: string
        category: string
        color: 0
        comment: string
        dynamicSortSubtable: string
        exclude: string
        excludeMembers:
            - name: string
        fabricObject: string
        getAllTables: string
        members:
            - name: string
        name: string
        taggings:
            - category: string
              name: string
              tags:
                - name: string
        type: string
        uuid: string
        vdomparam: string
        visibility: string
    

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

    Members List<Pulumiverse.Fortios.Firewall.Inputs.AddrgrpMember>
    Address objects contained within the group. The structure of member block is documented below.
    AllowRouting string
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    Category string
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    Color int
    Color of icon on the GUI.
    Comment string
    Comment.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    Exclude string
    Enable/disable address exclusion. Valid values: enable, disable.
    ExcludeMembers List<Pulumiverse.Fortios.Firewall.Inputs.AddrgrpExcludeMember>
    Address exclusion member. The structure of exclude_member block is documented below.
    FabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Name string
    Address group name.
    Taggings List<Pulumiverse.Fortios.Firewall.Inputs.AddrgrpTagging>
    Config object tagging. The structure of tagging block is documented below.
    Type string
    Address group type. Valid values: default, folder.
    Uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    Visibility string
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    Members []AddrgrpMemberArgs
    Address objects contained within the group. The structure of member block is documented below.
    AllowRouting string
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    Category string
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    Color int
    Color of icon on the GUI.
    Comment string
    Comment.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    Exclude string
    Enable/disable address exclusion. Valid values: enable, disable.
    ExcludeMembers []AddrgrpExcludeMemberArgs
    Address exclusion member. The structure of exclude_member block is documented below.
    FabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Name string
    Address group name.
    Taggings []AddrgrpTaggingArgs
    Config object tagging. The structure of tagging block is documented below.
    Type string
    Address group type. Valid values: default, folder.
    Uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    Visibility string
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    members List<AddrgrpMember>
    Address objects contained within the group. The structure of member block is documented below.
    allowRouting String
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    category String
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    color Integer
    Color of icon on the GUI.
    comment String
    Comment.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    exclude String
    Enable/disable address exclusion. Valid values: enable, disable.
    excludeMembers List<AddrgrpExcludeMember>
    Address exclusion member. The structure of exclude_member block is documented below.
    fabricObject String
    Security Fabric global object setting. Valid values: enable, disable.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name String
    Address group name.
    taggings List<AddrgrpTagging>
    Config object tagging. The structure of tagging block is documented below.
    type String
    Address group type. Valid values: default, folder.
    uuid String
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    visibility String
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    members AddrgrpMember[]
    Address objects contained within the group. The structure of member block is documented below.
    allowRouting string
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    category string
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    color number
    Color of icon on the GUI.
    comment string
    Comment.
    dynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    exclude string
    Enable/disable address exclusion. Valid values: enable, disable.
    excludeMembers AddrgrpExcludeMember[]
    Address exclusion member. The structure of exclude_member block is documented below.
    fabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name string
    Address group name.
    taggings AddrgrpTagging[]
    Config object tagging. The structure of tagging block is documented below.
    type string
    Address group type. Valid values: default, folder.
    uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    visibility string
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    members Sequence[AddrgrpMemberArgs]
    Address objects contained within the group. The structure of member block is documented below.
    allow_routing str
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    category str
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    color int
    Color of icon on the GUI.
    comment str
    Comment.
    dynamic_sort_subtable str
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    exclude str
    Enable/disable address exclusion. Valid values: enable, disable.
    exclude_members Sequence[AddrgrpExcludeMemberArgs]
    Address exclusion member. The structure of exclude_member block is documented below.
    fabric_object str
    Security Fabric global object setting. Valid values: enable, disable.
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name str
    Address group name.
    taggings Sequence[AddrgrpTaggingArgs]
    Config object tagging. The structure of tagging block is documented below.
    type str
    Address group type. Valid values: default, folder.
    uuid str
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    vdomparam str
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    visibility str
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    members List<Property Map>
    Address objects contained within the group. The structure of member block is documented below.
    allowRouting String
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    category String
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    color Number
    Color of icon on the GUI.
    comment String
    Comment.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    exclude String
    Enable/disable address exclusion. Valid values: enable, disable.
    excludeMembers List<Property Map>
    Address exclusion member. The structure of exclude_member block is documented below.
    fabricObject String
    Security Fabric global object setting. Valid values: enable, disable.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    name String
    Address group name.
    taggings List<Property Map>
    Config object tagging. The structure of tagging block is documented below.
    type String
    Address group type. Valid values: default, folder.
    uuid String
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    visibility String
    Enable/disable address visibility in the GUI. Valid values: enable, disable.

    Outputs

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

    Get an existing Addrgrp 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?: AddrgrpState, opts?: CustomResourceOptions): Addrgrp
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allow_routing: Optional[str] = None,
            category: Optional[str] = None,
            color: Optional[int] = None,
            comment: Optional[str] = None,
            dynamic_sort_subtable: Optional[str] = None,
            exclude: Optional[str] = None,
            exclude_members: Optional[Sequence[AddrgrpExcludeMemberArgs]] = None,
            fabric_object: Optional[str] = None,
            get_all_tables: Optional[str] = None,
            members: Optional[Sequence[AddrgrpMemberArgs]] = None,
            name: Optional[str] = None,
            taggings: Optional[Sequence[AddrgrpTaggingArgs]] = None,
            type: Optional[str] = None,
            uuid: Optional[str] = None,
            vdomparam: Optional[str] = None,
            visibility: Optional[str] = None) -> Addrgrp
    func GetAddrgrp(ctx *Context, name string, id IDInput, state *AddrgrpState, opts ...ResourceOption) (*Addrgrp, error)
    public static Addrgrp Get(string name, Input<string> id, AddrgrpState? state, CustomResourceOptions? opts = null)
    public static Addrgrp get(String name, Output<String> id, AddrgrpState 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.
    The following state arguments are supported:
    AllowRouting string
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    Category string
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    Color int
    Color of icon on the GUI.
    Comment string
    Comment.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    Exclude string
    Enable/disable address exclusion. Valid values: enable, disable.
    ExcludeMembers List<Pulumiverse.Fortios.Firewall.Inputs.AddrgrpExcludeMember>
    Address exclusion member. The structure of exclude_member block is documented below.
    FabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Members List<Pulumiverse.Fortios.Firewall.Inputs.AddrgrpMember>
    Address objects contained within the group. The structure of member block is documented below.
    Name string
    Address group name.
    Taggings List<Pulumiverse.Fortios.Firewall.Inputs.AddrgrpTagging>
    Config object tagging. The structure of tagging block is documented below.
    Type string
    Address group type. Valid values: default, folder.
    Uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    Visibility string
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    AllowRouting string
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    Category string
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    Color int
    Color of icon on the GUI.
    Comment string
    Comment.
    DynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    Exclude string
    Enable/disable address exclusion. Valid values: enable, disable.
    ExcludeMembers []AddrgrpExcludeMemberArgs
    Address exclusion member. The structure of exclude_member block is documented below.
    FabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    GetAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    Members []AddrgrpMemberArgs
    Address objects contained within the group. The structure of member block is documented below.
    Name string
    Address group name.
    Taggings []AddrgrpTaggingArgs
    Config object tagging. The structure of tagging block is documented below.
    Type string
    Address group type. Valid values: default, folder.
    Uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    Vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    Visibility string
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    allowRouting String
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    category String
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    color Integer
    Color of icon on the GUI.
    comment String
    Comment.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    exclude String
    Enable/disable address exclusion. Valid values: enable, disable.
    excludeMembers List<AddrgrpExcludeMember>
    Address exclusion member. The structure of exclude_member block is documented below.
    fabricObject String
    Security Fabric global object setting. Valid values: enable, disable.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    members List<AddrgrpMember>
    Address objects contained within the group. The structure of member block is documented below.
    name String
    Address group name.
    taggings List<AddrgrpTagging>
    Config object tagging. The structure of tagging block is documented below.
    type String
    Address group type. Valid values: default, folder.
    uuid String
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    visibility String
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    allowRouting string
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    category string
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    color number
    Color of icon on the GUI.
    comment string
    Comment.
    dynamicSortSubtable string
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    exclude string
    Enable/disable address exclusion. Valid values: enable, disable.
    excludeMembers AddrgrpExcludeMember[]
    Address exclusion member. The structure of exclude_member block is documented below.
    fabricObject string
    Security Fabric global object setting. Valid values: enable, disable.
    getAllTables string
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    members AddrgrpMember[]
    Address objects contained within the group. The structure of member block is documented below.
    name string
    Address group name.
    taggings AddrgrpTagging[]
    Config object tagging. The structure of tagging block is documented below.
    type string
    Address group type. Valid values: default, folder.
    uuid string
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    vdomparam string
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    visibility string
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    allow_routing str
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    category str
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    color int
    Color of icon on the GUI.
    comment str
    Comment.
    dynamic_sort_subtable str
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    exclude str
    Enable/disable address exclusion. Valid values: enable, disable.
    exclude_members Sequence[AddrgrpExcludeMemberArgs]
    Address exclusion member. The structure of exclude_member block is documented below.
    fabric_object str
    Security Fabric global object setting. Valid values: enable, disable.
    get_all_tables str
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    members Sequence[AddrgrpMemberArgs]
    Address objects contained within the group. The structure of member block is documented below.
    name str
    Address group name.
    taggings Sequence[AddrgrpTaggingArgs]
    Config object tagging. The structure of tagging block is documented below.
    type str
    Address group type. Valid values: default, folder.
    uuid str
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    vdomparam str
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    visibility str
    Enable/disable address visibility in the GUI. Valid values: enable, disable.
    allowRouting String
    Enable/disable use of this group in the static route configuration. Valid values: enable, disable.
    category String
    Address group category. Valid values: default, ztna-ems-tag, ztna-geo-tag.
    color Number
    Color of icon on the GUI.
    comment String
    Comment.
    dynamicSortSubtable String
    Sort sub-tables, please do not set this parameter when configuring static sub-tables. Options: [ false, true, natural, alphabetical ]. false: Default value, do not sort tables; true/natural: sort tables in natural order. For example: [ a10, a2 ] -> [ a2, a10 ]; alphabetical: sort tables in alphabetical order. For example: [ a10, a2 ] -> [ a10, a2 ].
    exclude String
    Enable/disable address exclusion. Valid values: enable, disable.
    excludeMembers List<Property Map>
    Address exclusion member. The structure of exclude_member block is documented below.
    fabricObject String
    Security Fabric global object setting. Valid values: enable, disable.
    getAllTables String
    Get all sub-tables including unconfigured tables. Do not set this variable to true if you configure sub-table in another resource, otherwish conflicts and overwrite will occur. Options: [ false, true ]. false: Default value, do not get unconfigured tables; true: get all tables including unconfigured tables.
    members List<Property Map>
    Address objects contained within the group. The structure of member block is documented below.
    name String
    Address group name.
    taggings List<Property Map>
    Config object tagging. The structure of tagging block is documented below.
    type String
    Address group type. Valid values: default, folder.
    uuid String
    Universally Unique Identifier (UUID; automatically assigned but can be manually reset).
    vdomparam String
    Specifies the vdom to which the resource will be applied when the FortiGate unit is running in VDOM mode. Only one vdom can be specified. If you want to inherit the vdom configuration of the provider, please do not set this parameter.
    visibility String
    Enable/disable address visibility in the GUI. Valid values: enable, disable.

    Supporting Types

    AddrgrpExcludeMember, AddrgrpExcludeMemberArgs

    Name string
    Address name.
    Name string
    Address name.
    name String
    Address name.
    name string
    Address name.
    name str
    Address name.
    name String
    Address name.

    AddrgrpMember, AddrgrpMemberArgs

    Name string
    Address name.
    Name string
    Address name.
    name String
    Address name.
    name string
    Address name.
    name str
    Address name.
    name String
    Address name.

    AddrgrpTagging, AddrgrpTaggingArgs

    Category string
    Tag category.
    Name string
    Tagging entry name.
    Tags List<Pulumiverse.Fortios.Firewall.Inputs.AddrgrpTaggingTag>
    Tags. The structure of tags block is documented below.
    Category string
    Tag category.
    Name string
    Tagging entry name.
    Tags []AddrgrpTaggingTag
    Tags. The structure of tags block is documented below.
    category String
    Tag category.
    name String
    Tagging entry name.
    tags List<AddrgrpTaggingTag>
    Tags. The structure of tags block is documented below.
    category string
    Tag category.
    name string
    Tagging entry name.
    tags AddrgrpTaggingTag[]
    Tags. The structure of tags block is documented below.
    category str
    Tag category.
    name str
    Tagging entry name.
    tags Sequence[AddrgrpTaggingTag]
    Tags. The structure of tags block is documented below.
    category String
    Tag category.
    name String
    Tagging entry name.
    tags List<Property Map>
    Tags. The structure of tags block is documented below.

    AddrgrpTaggingTag, AddrgrpTaggingTagArgs

    Name string
    Tag name.
    Name string
    Tag name.
    name String
    Tag name.
    name string
    Tag name.
    name str
    Tag name.
    name String
    Tag name.

    Import

    Firewall Addrgrp can be imported using any of these accepted formats:

    $ pulumi import fortios:firewall/addrgrp:Addrgrp labelname {{name}}
    

    If you do not want to import arguments of block:

    $ export “FORTIOS_IMPORT_TABLE”=“false”

    $ pulumi import fortios:firewall/addrgrp:Addrgrp labelname {{name}}
    

    $ unset “FORTIOS_IMPORT_TABLE”

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    fortios pulumiverse/pulumi-fortios
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the fortios Terraform Provider.
    fortios logo
    Fortios v0.0.5 published on Tuesday, Apr 9, 2024 by pulumiverse