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

zia.FirewallFilteringApplicationGroups

Explore with Pulumi AI

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

    The zia_firewall_filtering_network_application_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 applications to a network application group
    const example = new zia.FirewallFilteringApplicationGroups("example", {
        description: "Example",
        networkApplications: [
            "LDAP",
            "LDAPS",
            "SRVLOC",
        ],
    });
    
    import pulumi
    import zscaler_pulumi_zia as zia
    
    # Add applications to a network application group
    example = zia.FirewallFilteringApplicationGroups("example",
        description="Example",
        network_applications=[
            "LDAP",
            "LDAPS",
            "SRVLOC",
        ])
    
    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 applications to a network application group
    		_, err := zia.NewFirewallFilteringApplicationGroups(ctx, "example", &zia.FirewallFilteringApplicationGroupsArgs{
    			Description: pulumi.String("Example"),
    			NetworkApplications: pulumi.StringArray{
    				pulumi.String("LDAP"),
    				pulumi.String("LDAPS"),
    				pulumi.String("SRVLOC"),
    			},
    		})
    		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 applications to a network application group
        var example = new Zia.FirewallFilteringApplicationGroups("example", new()
        {
            Description = "Example",
            NetworkApplications = new[]
            {
                "LDAP",
                "LDAPS",
                "SRVLOC",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zia.FirewallFilteringApplicationGroups;
    import com.pulumi.zia.FirewallFilteringApplicationGroupsArgs;
    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 applications to a network application group
            var example = new FirewallFilteringApplicationGroups("example", FirewallFilteringApplicationGroupsArgs.builder()
                .description("Example")
                .networkApplications(            
                    "LDAP",
                    "LDAPS",
                    "SRVLOC")
                .build());
    
        }
    }
    
    resources:
      # Add applications to a network application group
      example:
        type: zia:FirewallFilteringApplicationGroups
        properties:
          description: Example
          networkApplications:
            - LDAP
            - LDAPS
            - SRVLOC
    

    Create FirewallFilteringApplicationGroups Resource

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

    Constructor syntax

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

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

    Description string
    Name string
    NetworkApplications List<string>
    Description string
    Name string
    NetworkApplications []string
    description String
    name String
    networkApplications List<String>
    description string
    name string
    networkApplications string[]
    description String
    name String
    networkApplications List<String>

    Outputs

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

    AppId int
    Id string
    The provider-assigned unique ID for this managed resource.
    AppId int
    Id string
    The provider-assigned unique ID for this managed resource.
    appId Integer
    id String
    The provider-assigned unique ID for this managed resource.
    appId number
    id string
    The provider-assigned unique ID for this managed resource.
    app_id int
    id str
    The provider-assigned unique ID for this managed resource.
    appId Number
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing FirewallFilteringApplicationGroups Resource

    Get an existing FirewallFilteringApplicationGroups 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?: FirewallFilteringApplicationGroupsState, opts?: CustomResourceOptions): FirewallFilteringApplicationGroups
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_id: Optional[int] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            network_applications: Optional[Sequence[str]] = None) -> FirewallFilteringApplicationGroups
    func GetFirewallFilteringApplicationGroups(ctx *Context, name string, id IDInput, state *FirewallFilteringApplicationGroupsState, opts ...ResourceOption) (*FirewallFilteringApplicationGroups, error)
    public static FirewallFilteringApplicationGroups Get(string name, Input<string> id, FirewallFilteringApplicationGroupsState? state, CustomResourceOptions? opts = null)
    public static FirewallFilteringApplicationGroups get(String name, Output<String> id, FirewallFilteringApplicationGroupsState 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:
    AppId int
    Description string
    Name string
    NetworkApplications List<string>
    AppId int
    Description string
    Name string
    NetworkApplications []string
    appId Integer
    description String
    name String
    networkApplications List<String>
    appId number
    description string
    name string
    networkApplications string[]
    appId Number
    description String
    name String
    networkApplications List<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_network_application_groups can be imported by using <GROUP_ID> or <GROUP_NAME> as the import ID.

    For example:

    $ pulumi import zia:index/firewallFilteringApplicationGroups:FirewallFilteringApplicationGroups example <group_id>
    

    or

    $ pulumi import zia:index/firewallFilteringApplicationGroups:FirewallFilteringApplicationGroups 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