zia logo
Zscaler Internet Access v0.0.3, Jan 30 23

zia.Firewall.FirewallFilteringServiceGroups

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

Example Usage

using System.Collections.Generic;
using Pulumi;
using Zia = Pulumi.Zia;
using Zia = zscaler.PulumiPackage.Zia;

return await Deployment.RunAsync(() => 
{
    var example1 = Zia.Firewall.GetFirewallFilteringNetworkServices.Invoke(new()
    {
        Name = "FTP",
    });

    var example2 = Zia.Firewall.GetFirewallFilteringNetworkServices.Invoke(new()
    {
        Name = "NETBIOS",
    });

    var example3 = Zia.Firewall.GetFirewallFilteringNetworkServices.Invoke(new()
    {
        Name = "DNS",
    });

    // Add network services to a network services group
    var example = new Zia.Firewall.FirewallFilteringServiceGroups("example", new()
    {
        Description = "example",
        Services = new[]
        {
            new Zia.Firewall.Inputs.FirewallFilteringServiceGroupsServiceArgs
            {
                Ids = new[]
                {
                    example1.Apply(getFirewallFilteringNetworkServicesResult => getFirewallFilteringNetworkServicesResult.Id),
                    example2.Apply(getFirewallFilteringNetworkServicesResult => getFirewallFilteringNetworkServicesResult.Id),
                    example3.Apply(getFirewallFilteringNetworkServicesResult => getFirewallFilteringNetworkServicesResult.Id),
                },
            },
        },
    });

});
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/zscaler/pulumi-zia/sdk/go/zia/Firewall"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example1, err := Firewall.GetFirewallFilteringNetworkServices(ctx, &firewall.GetFirewallFilteringNetworkServicesArgs{
			Name: pulumi.StringRef("FTP"),
		}, nil)
		if err != nil {
			return err
		}
		example2, err := Firewall.GetFirewallFilteringNetworkServices(ctx, &firewall.GetFirewallFilteringNetworkServicesArgs{
			Name: pulumi.StringRef("NETBIOS"),
		}, nil)
		if err != nil {
			return err
		}
		example3, err := Firewall.GetFirewallFilteringNetworkServices(ctx, &firewall.GetFirewallFilteringNetworkServicesArgs{
			Name: pulumi.StringRef("DNS"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = Firewall.NewFirewallFilteringServiceGroups(ctx, "example", &Firewall.FirewallFilteringServiceGroupsArgs{
			Description: pulumi.String("example"),
			Services: firewall.FirewallFilteringServiceGroupsServiceArray{
				&firewall.FirewallFilteringServiceGroupsServiceArgs{
					Ids: pulumi.IntArray{
						*pulumi.Int(example1.Id),
						*pulumi.Int(example2.Id),
						*pulumi.Int(example3.Id),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.Firewall.FirewallFunctions;
import com.pulumi.zia.Firewall.inputs.GetFirewallFilteringNetworkServicesArgs;
import com.pulumi.zia.Firewall.FirewallFilteringServiceGroups;
import com.pulumi.zia.Firewall.FirewallFilteringServiceGroupsArgs;
import com.pulumi.zia.Firewall.inputs.FirewallFilteringServiceGroupsServiceArgs;
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) {
        final var example1 = FirewallFunctions.getFirewallFilteringNetworkServices(GetFirewallFilteringNetworkServicesArgs.builder()
            .name("FTP")
            .build());

        final var example2 = FirewallFunctions.getFirewallFilteringNetworkServices(GetFirewallFilteringNetworkServicesArgs.builder()
            .name("NETBIOS")
            .build());

        final var example3 = FirewallFunctions.getFirewallFilteringNetworkServices(GetFirewallFilteringNetworkServicesArgs.builder()
            .name("DNS")
            .build());

        var example = new FirewallFilteringServiceGroups("example", FirewallFilteringServiceGroupsArgs.builder()        
            .description("example")
            .services(FirewallFilteringServiceGroupsServiceArgs.builder()
                .ids(                
                    example1.applyValue(getFirewallFilteringNetworkServicesResult -> getFirewallFilteringNetworkServicesResult.id()),
                    example2.applyValue(getFirewallFilteringNetworkServicesResult -> getFirewallFilteringNetworkServicesResult.id()),
                    example3.applyValue(getFirewallFilteringNetworkServicesResult -> getFirewallFilteringNetworkServicesResult.id()))
                .build())
            .build());

    }
}
import pulumi
import pulumi_zia as zia
import zscaler_pulumi_zia as zia

example1 = zia.Firewall.get_firewall_filtering_network_services(name="FTP")
example2 = zia.Firewall.get_firewall_filtering_network_services(name="NETBIOS")
example3 = zia.Firewall.get_firewall_filtering_network_services(name="DNS")
# Add network services to a network services group
example = zia.firewall.FirewallFilteringServiceGroups("example",
    description="example",
    services=[zia.firewall.FirewallFilteringServiceGroupsServiceArgs(
        ids=[
            example1.id,
            example2.id,
            example3.id,
        ],
    )])
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@pulumi/zia";
import * as zia from "@zscaler/pulumi-zia";

const example1 = zia.Firewall.getFirewallFilteringNetworkServices({
    name: "FTP",
});
const example2 = zia.Firewall.getFirewallFilteringNetworkServices({
    name: "NETBIOS",
});
const example3 = zia.Firewall.getFirewallFilteringNetworkServices({
    name: "DNS",
});
// Add network services to a network services group
const example = new zia.firewall.FirewallFilteringServiceGroups("example", {
    description: "example",
    services: [{
        ids: [
            example1.then(example1 => example1.id),
            example2.then(example2 => example2.id),
            example3.then(example3 => example3.id),
        ],
    }],
});
resources:
  # Add network services to a network services group
  example:
    type: zia:Firewall:FirewallFilteringServiceGroups
    properties:
      description: example
      services:
        - ids:
            - ${example1.id}
            - ${example2.id}
            - ${example3.id}
variables:
  example1:
    fn::invoke:
      Function: zia:Firewall:getFirewallFilteringNetworkServices
      Arguments:
        name: FTP
  example2:
    fn::invoke:
      Function: zia:Firewall:getFirewallFilteringNetworkServices
      Arguments:
        name: NETBIOS
  example3:
    fn::invoke:
      Function: zia:Firewall:getFirewallFilteringNetworkServices
      Arguments:
        name: DNS

Create FirewallFilteringServiceGroups Resource

new FirewallFilteringServiceGroups(name: string, args?: FirewallFilteringServiceGroupsArgs, opts?: CustomResourceOptions);
@overload
def FirewallFilteringServiceGroups(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   description: Optional[str] = None,
                                   name: Optional[str] = None,
                                   services: Optional[Sequence[_firewall.FirewallFilteringServiceGroupsServiceArgs]] = None)
@overload
def FirewallFilteringServiceGroups(resource_name: str,
                                   args: Optional[FirewallFilteringServiceGroupsArgs] = None,
                                   opts: Optional[ResourceOptions] = None)
func NewFirewallFilteringServiceGroups(ctx *Context, name string, args *FirewallFilteringServiceGroupsArgs, opts ...ResourceOption) (*FirewallFilteringServiceGroups, error)
public FirewallFilteringServiceGroups(string name, FirewallFilteringServiceGroupsArgs? args = null, CustomResourceOptions? opts = null)
public FirewallFilteringServiceGroups(String name, FirewallFilteringServiceGroupsArgs args)
public FirewallFilteringServiceGroups(String name, FirewallFilteringServiceGroupsArgs args, CustomResourceOptions options)
type: zia:Firewall:FirewallFilteringServiceGroups
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FirewallFilteringServiceGroupsArgs
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 FirewallFilteringServiceGroupsArgs
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 FirewallFilteringServiceGroupsArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FirewallFilteringServiceGroupsArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FirewallFilteringServiceGroupsArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

Description string

Description of the network services group

Name string

Name of the network service group

Services List<zscaler.PulumiPackage.Zia.Firewall.Inputs.FirewallFilteringServiceGroupsServiceArgs>

Any number of network services ID to be added to the group

Description string

Description of the network services group

Name string

Name of the network service group

Services []FirewallFilteringServiceGroupsServiceArgs

Any number of network services ID to be added to the group

description String

Description of the network services group

name String

Name of the network service group

services List<FilteringServiceGroupsServiceArgs>

Any number of network services ID to be added to the group

description string

Description of the network services group

name string

Name of the network service group

services FirewallFilteringServiceGroupsServiceArgs[]

Any number of network services ID to be added to the group

description str

Description of the network services group

name str

Name of the network service group

services FirewallFilteringServiceGroupsServiceArgs]

Any number of network services ID to be added to the group

description String

Description of the network services group

name String

Name of the network service group

services List<Property Map>

Any number of network services ID to be added to the group

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

NetworkServiceGroupId int
Id string

The provider-assigned unique ID for this managed resource.

NetworkServiceGroupId int
id String

The provider-assigned unique ID for this managed resource.

networkServiceGroupId Integer
id string

The provider-assigned unique ID for this managed resource.

networkServiceGroupId number
id str

The provider-assigned unique ID for this managed resource.

network_service_group_id int
id String

The provider-assigned unique ID for this managed resource.

networkServiceGroupId Number

Look up Existing FirewallFilteringServiceGroups Resource

Get an existing FirewallFilteringServiceGroups 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?: FirewallFilteringServiceGroupsState, opts?: CustomResourceOptions): FirewallFilteringServiceGroups
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        network_service_group_id: Optional[int] = None,
        services: Optional[Sequence[_firewall.FirewallFilteringServiceGroupsServiceArgs]] = None) -> FirewallFilteringServiceGroups
func GetFirewallFilteringServiceGroups(ctx *Context, name string, id IDInput, state *FirewallFilteringServiceGroupsState, opts ...ResourceOption) (*FirewallFilteringServiceGroups, error)
public static FirewallFilteringServiceGroups Get(string name, Input<string> id, FirewallFilteringServiceGroupsState? state, CustomResourceOptions? opts = null)
public static FirewallFilteringServiceGroups get(String name, Output<String> id, FirewallFilteringServiceGroupsState 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

Description of the network services group

Name string

Name of the network service group

NetworkServiceGroupId int
Services List<zscaler.PulumiPackage.Zia.Firewall.Inputs.FirewallFilteringServiceGroupsServiceArgs>

Any number of network services ID to be added to the group

Description string

Description of the network services group

Name string

Name of the network service group

NetworkServiceGroupId int
Services []FirewallFilteringServiceGroupsServiceArgs

Any number of network services ID to be added to the group

description String

Description of the network services group

name String

Name of the network service group

networkServiceGroupId Integer
services List<FilteringServiceGroupsServiceArgs>

Any number of network services ID to be added to the group

description string

Description of the network services group

name string

Name of the network service group

networkServiceGroupId number
services FirewallFilteringServiceGroupsServiceArgs[]

Any number of network services ID to be added to the group

description str

Description of the network services group

name str

Name of the network service group

network_service_group_id int
services FirewallFilteringServiceGroupsServiceArgs]

Any number of network services ID to be added to the group

description String

Description of the network services group

name String

Name of the network service group

networkServiceGroupId Number
services List<Property Map>

Any number of network services ID to be added to the group

Supporting Types

FirewallFilteringServiceGroupsService

Ids List<int>
Ids []int
ids List<Integer>
ids number[]
ids Sequence[int]
ids List<Number>

Package Details

Repository
zia zscaler/pulumi-zia
License
MIT
Notes

This Pulumi package is based on the zia Terraform Provider.