1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. FirewallFilteringSourceGroups
Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler

zia.FirewallFilteringSourceGroups

Explore with Pulumi AI

zia logo
Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler

    The zia_firewall_filtering_ip_source_groups resource allows the creation and management of ZIA Cloud Firewall IP source groups in the Zscaler Internet Access. This resource can then be associated with a ZIA cloud firewall filtering rule.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zia from "@bdzscaler/pulumi-zia";
    
    // Add an IP address or addresses to a new IP Source Group
    const example = new zia.FirewallFilteringSourceGroups("example", {
        description: "Example",
        ipAddresses: [
            "192.168.100.1",
            "192.168.100.2",
            "192.168.100.3",
        ],
    });
    
    import pulumi
    import zscaler_pulumi_zia as zia
    
    # Add an IP address or addresses to a new IP Source Group
    example = zia.FirewallFilteringSourceGroups("example",
        description="Example",
        ip_addresses=[
            "192.168.100.1",
            "192.168.100.2",
            "192.168.100.3",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zia/sdk/go/zia"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Add an IP address or addresses to a new IP Source Group
    		_, err := zia.NewFirewallFilteringSourceGroups(ctx, "example", &zia.FirewallFilteringSourceGroupsArgs{
    			Description: pulumi.String("Example"),
    			IpAddresses: pulumi.StringArray{
    				pulumi.String("192.168.100.1"),
    				pulumi.String("192.168.100.2"),
    				pulumi.String("192.168.100.3"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zia = zscaler.PulumiPackage.Zia;
    
    return await Deployment.RunAsync(() => 
    {
        // Add an IP address or addresses to a new IP Source Group
        var example = new Zia.FirewallFilteringSourceGroups("example", new()
        {
            Description = "Example",
            IpAddresses = new[]
            {
                "192.168.100.1",
                "192.168.100.2",
                "192.168.100.3",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zia.FirewallFilteringSourceGroups;
    import com.pulumi.zia.FirewallFilteringSourceGroupsArgs;
    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) {
            // Add an IP address or addresses to a new IP Source Group
            var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
                .description("Example")
                .ipAddresses(            
                    "192.168.100.1",
                    "192.168.100.2",
                    "192.168.100.3")
                .build());
    
        }
    }
    
    resources:
      # Add an IP address or addresses to a new IP Source Group
      example:
        type: zia:FirewallFilteringSourceGroups
        properties:
          description: Example
          ipAddresses:
            - 192.168.100.1
            - 192.168.100.2
            - 192.168.100.3
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zia from "@bdzscaler/pulumi-zia";
    
    // Add an IP address range(s) to a new IP Source Group
    const example = new zia.FirewallFilteringSourceGroups("example", {
        description: "Example",
        ipAddresses: ["192.0.2.1-192.0.2.10"],
    });
    
    import pulumi
    import zscaler_pulumi_zia as zia
    
    # Add an IP address range(s) to a new IP Source Group
    example = zia.FirewallFilteringSourceGroups("example",
        description="Example",
        ip_addresses=["192.0.2.1-192.0.2.10"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zia/sdk/go/zia"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Add an IP address range(s) to a new IP Source Group
    		_, err := zia.NewFirewallFilteringSourceGroups(ctx, "example", &zia.FirewallFilteringSourceGroupsArgs{
    			Description: pulumi.String("Example"),
    			IpAddresses: pulumi.StringArray{
    				pulumi.String("192.0.2.1-192.0.2.10"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zia = zscaler.PulumiPackage.Zia;
    
    return await Deployment.RunAsync(() => 
    {
        // Add an IP address range(s) to a new IP Source Group
        var example = new Zia.FirewallFilteringSourceGroups("example", new()
        {
            Description = "Example",
            IpAddresses = new[]
            {
                "192.0.2.1-192.0.2.10",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zia.FirewallFilteringSourceGroups;
    import com.pulumi.zia.FirewallFilteringSourceGroupsArgs;
    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) {
            // Add an IP address range(s) to a new IP Source Group
            var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
                .description("Example")
                .ipAddresses("192.0.2.1-192.0.2.10")
                .build());
    
        }
    }
    
    resources:
      # Add an IP address range(s) to a new IP Source Group
      example:
        type: zia:FirewallFilteringSourceGroups
        properties:
          description: Example
          ipAddresses:
            - 192.0.2.1-192.0.2.10
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zia from "@bdzscaler/pulumi-zia";
    
    // Add subnet to a new IP Source Group
    const example = new zia.FirewallFilteringSourceGroups("example", {
        description: "Example",
        ipAddresses: ["203.0.113.0/24"],
    });
    
    import pulumi
    import zscaler_pulumi_zia as zia
    
    # Add subnet to a new IP Source Group
    example = zia.FirewallFilteringSourceGroups("example",
        description="Example",
        ip_addresses=["203.0.113.0/24"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/zscaler/pulumi-zia/sdk/go/zia"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Add subnet to a new IP Source Group
    		_, err := zia.NewFirewallFilteringSourceGroups(ctx, "example", &zia.FirewallFilteringSourceGroupsArgs{
    			Description: pulumi.String("Example"),
    			IpAddresses: pulumi.StringArray{
    				pulumi.String("203.0.113.0/24"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zia = zscaler.PulumiPackage.Zia;
    
    return await Deployment.RunAsync(() => 
    {
        // Add subnet to a new IP Source Group
        var example = new Zia.FirewallFilteringSourceGroups("example", new()
        {
            Description = "Example",
            IpAddresses = new[]
            {
                "203.0.113.0/24",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zia.FirewallFilteringSourceGroups;
    import com.pulumi.zia.FirewallFilteringSourceGroupsArgs;
    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) {
            // Add subnet to a new IP Source Group
            var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
                .description("Example")
                .ipAddresses("203.0.113.0/24")
                .build());
    
        }
    }
    
    resources:
      # Add subnet to a new IP Source Group
      example:
        type: zia:FirewallFilteringSourceGroups
        properties:
          description: Example
          ipAddresses:
            - 203.0.113.0/24
    

    Create FirewallFilteringSourceGroups Resource

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

    Constructor syntax

    new FirewallFilteringSourceGroups(name: string, args: FirewallFilteringSourceGroupsArgs, opts?: CustomResourceOptions);
    @overload
    def FirewallFilteringSourceGroups(resource_name: str,
                                      args: FirewallFilteringSourceGroupsArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def FirewallFilteringSourceGroups(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      ip_addresses: Optional[Sequence[str]] = None,
                                      description: Optional[str] = None,
                                      name: Optional[str] = None)
    func NewFirewallFilteringSourceGroups(ctx *Context, name string, args FirewallFilteringSourceGroupsArgs, opts ...ResourceOption) (*FirewallFilteringSourceGroups, error)
    public FirewallFilteringSourceGroups(string name, FirewallFilteringSourceGroupsArgs args, CustomResourceOptions? opts = null)
    public FirewallFilteringSourceGroups(String name, FirewallFilteringSourceGroupsArgs args)
    public FirewallFilteringSourceGroups(String name, FirewallFilteringSourceGroupsArgs args, CustomResourceOptions options)
    
    type: zia:FirewallFilteringSourceGroups
    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 FirewallFilteringSourceGroupsArgs
    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 FirewallFilteringSourceGroupsArgs
    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 FirewallFilteringSourceGroupsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FirewallFilteringSourceGroupsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FirewallFilteringSourceGroupsArgs
    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 firewallFilteringSourceGroupsResource = new Zia.FirewallFilteringSourceGroups("firewallFilteringSourceGroupsResource", new()
    {
        IpAddresses = new[]
        {
            "string",
        },
        Description = "string",
        Name = "string",
    });
    
    example, err := zia.NewFirewallFilteringSourceGroups(ctx, "firewallFilteringSourceGroupsResource", &zia.FirewallFilteringSourceGroupsArgs{
    	IpAddresses: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	Name:        pulumi.String("string"),
    })
    
    var firewallFilteringSourceGroupsResource = new FirewallFilteringSourceGroups("firewallFilteringSourceGroupsResource", FirewallFilteringSourceGroupsArgs.builder()
        .ipAddresses("string")
        .description("string")
        .name("string")
        .build());
    
    firewall_filtering_source_groups_resource = zia.FirewallFilteringSourceGroups("firewallFilteringSourceGroupsResource",
        ip_addresses=["string"],
        description="string",
        name="string")
    
    const firewallFilteringSourceGroupsResource = new zia.FirewallFilteringSourceGroups("firewallFilteringSourceGroupsResource", {
        ipAddresses: ["string"],
        description: "string",
        name: "string",
    });
    
    type: zia:FirewallFilteringSourceGroups
    properties:
        description: string
        ipAddresses:
            - string
        name: string
    

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

    IpAddresses List<string>
    Description string
    Name string
    IpAddresses []string
    Description string
    Name string
    ipAddresses List<String>
    description String
    name String
    ipAddresses string[]
    description string
    name string
    ip_addresses Sequence[str]
    description str
    name str
    ipAddresses List<String>
    description String
    name String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FirewallFilteringSourceGroups resource produces the following output properties:

    GroupId int
    Id string
    The provider-assigned unique ID for this managed resource.
    GroupId int
    Id string
    The provider-assigned unique ID for this managed resource.
    groupId Integer
    id String
    The provider-assigned unique ID for this managed resource.
    groupId number
    id string
    The provider-assigned unique ID for this managed resource.
    group_id int
    id str
    The provider-assigned unique ID for this managed resource.
    groupId Number
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FirewallFilteringSourceGroups Resource

    Get an existing FirewallFilteringSourceGroups 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?: FirewallFilteringSourceGroupsState, opts?: CustomResourceOptions): FirewallFilteringSourceGroups
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            group_id: Optional[int] = None,
            ip_addresses: Optional[Sequence[str]] = None,
            name: Optional[str] = None) -> FirewallFilteringSourceGroups
    func GetFirewallFilteringSourceGroups(ctx *Context, name string, id IDInput, state *FirewallFilteringSourceGroupsState, opts ...ResourceOption) (*FirewallFilteringSourceGroups, error)
    public static FirewallFilteringSourceGroups Get(string name, Input<string> id, FirewallFilteringSourceGroupsState? state, CustomResourceOptions? opts = null)
    public static FirewallFilteringSourceGroups get(String name, Output<String> id, FirewallFilteringSourceGroupsState 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:
    Description string
    GroupId int
    IpAddresses List<string>
    Name string
    Description string
    GroupId int
    IpAddresses []string
    Name string
    description String
    groupId Integer
    ipAddresses List<String>
    name String
    description string
    groupId number
    ipAddresses string[]
    name string
    description str
    group_id int
    ip_addresses Sequence[str]
    name str
    description String
    groupId Number
    ipAddresses List<String>
    name String

    Import

    Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language.

    Visit

    zia_firewall_filtering_ip_source_groups can be imported by using <GROUP_ID> or <GROUP_NAME> as the import ID.

    For example:

    $ pulumi import zia:index/firewallFilteringSourceGroups:FirewallFilteringSourceGroups example <group_id>
    

    or

    $ pulumi import zia:index/firewallFilteringSourceGroups:FirewallFilteringSourceGroups example <group_name>
    

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

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    MIT
    Notes
    This Pulumi package is based on the zia Terraform Provider.
    zia logo
    Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler