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

zia.FirewallFilteringNetworkServices

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_service resource allows the creation and management of ZIA Cloud Firewall IP network services in the Zscaler Internet Access. This resource can then be associated with a ZIA cloud firewall filtering rule and network service group resources.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.FirewallFilteringNetworkServices("example", {
        description: "example",
        destTcpPorts: [
            {
                start: 5000,
            },
            {
                start: 5001,
            },
            {
                end: 5005,
                start: 5003,
            },
        ],
        srcTcpPorts: [
            {
                start: 5000,
            },
            {
                start: 5001,
            },
            {
                end: 5005,
                start: 5002,
            },
        ],
        type: "CUSTOM",
    });
    
    import pulumi
    import zscaler_pulumi_zia as zia
    
    example = zia.FirewallFilteringNetworkServices("example",
        description="example",
        dest_tcp_ports=[
            zia.FirewallFilteringNetworkServicesDestTcpPortArgs(
                start=5000,
            ),
            zia.FirewallFilteringNetworkServicesDestTcpPortArgs(
                start=5001,
            ),
            zia.FirewallFilteringNetworkServicesDestTcpPortArgs(
                end=5005,
                start=5003,
            ),
        ],
        src_tcp_ports=[
            zia.FirewallFilteringNetworkServicesSrcTcpPortArgs(
                start=5000,
            ),
            zia.FirewallFilteringNetworkServicesSrcTcpPortArgs(
                start=5001,
            ),
            zia.FirewallFilteringNetworkServicesSrcTcpPortArgs(
                end=5005,
                start=5002,
            ),
        ],
        type="CUSTOM")
    
    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 {
    		_, err := zia.NewFirewallFilteringNetworkServices(ctx, "example", &zia.FirewallFilteringNetworkServicesArgs{
    			Description: pulumi.String("example"),
    			DestTcpPorts: zia.FirewallFilteringNetworkServicesDestTcpPortArray{
    				&zia.FirewallFilteringNetworkServicesDestTcpPortArgs{
    					Start: pulumi.Int(5000),
    				},
    				&zia.FirewallFilteringNetworkServicesDestTcpPortArgs{
    					Start: pulumi.Int(5001),
    				},
    				&zia.FirewallFilteringNetworkServicesDestTcpPortArgs{
    					End:   pulumi.Int(5005),
    					Start: pulumi.Int(5003),
    				},
    			},
    			SrcTcpPorts: zia.FirewallFilteringNetworkServicesSrcTcpPortArray{
    				&zia.FirewallFilteringNetworkServicesSrcTcpPortArgs{
    					Start: pulumi.Int(5000),
    				},
    				&zia.FirewallFilteringNetworkServicesSrcTcpPortArgs{
    					Start: pulumi.Int(5001),
    				},
    				&zia.FirewallFilteringNetworkServicesSrcTcpPortArgs{
    					End:   pulumi.Int(5005),
    					Start: pulumi.Int(5002),
    				},
    			},
    			Type: pulumi.String("CUSTOM"),
    		})
    		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(() => 
    {
        var example = new Zia.FirewallFilteringNetworkServices("example", new()
        {
            Description = "example",
            DestTcpPorts = new[]
            {
                new Zia.Inputs.FirewallFilteringNetworkServicesDestTcpPortArgs
                {
                    Start = 5000,
                },
                new Zia.Inputs.FirewallFilteringNetworkServicesDestTcpPortArgs
                {
                    Start = 5001,
                },
                new Zia.Inputs.FirewallFilteringNetworkServicesDestTcpPortArgs
                {
                    End = 5005,
                    Start = 5003,
                },
            },
            SrcTcpPorts = new[]
            {
                new Zia.Inputs.FirewallFilteringNetworkServicesSrcTcpPortArgs
                {
                    Start = 5000,
                },
                new Zia.Inputs.FirewallFilteringNetworkServicesSrcTcpPortArgs
                {
                    Start = 5001,
                },
                new Zia.Inputs.FirewallFilteringNetworkServicesSrcTcpPortArgs
                {
                    End = 5005,
                    Start = 5002,
                },
            },
            Type = "CUSTOM",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zia.FirewallFilteringNetworkServices;
    import com.pulumi.zia.FirewallFilteringNetworkServicesArgs;
    import com.pulumi.zia.inputs.FirewallFilteringNetworkServicesDestTcpPortArgs;
    import com.pulumi.zia.inputs.FirewallFilteringNetworkServicesSrcTcpPortArgs;
    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 example = new FirewallFilteringNetworkServices("example", FirewallFilteringNetworkServicesArgs.builder()
                .description("example")
                .destTcpPorts(            
                    FirewallFilteringNetworkServicesDestTcpPortArgs.builder()
                        .start(5000)
                        .build(),
                    FirewallFilteringNetworkServicesDestTcpPortArgs.builder()
                        .start(5001)
                        .build(),
                    FirewallFilteringNetworkServicesDestTcpPortArgs.builder()
                        .end(5005)
                        .start(5003)
                        .build())
                .srcTcpPorts(            
                    FirewallFilteringNetworkServicesSrcTcpPortArgs.builder()
                        .start(5000)
                        .build(),
                    FirewallFilteringNetworkServicesSrcTcpPortArgs.builder()
                        .start(5001)
                        .build(),
                    FirewallFilteringNetworkServicesSrcTcpPortArgs.builder()
                        .end(5005)
                        .start(5002)
                        .build())
                .type("CUSTOM")
                .build());
    
        }
    }
    
    resources:
      example:
        type: zia:FirewallFilteringNetworkServices
        properties:
          description: example
          destTcpPorts:
            - start: 5000
            - start: 5001
            - end: 5005
              start: 5003
          srcTcpPorts:
            - start: 5000
            - start: 5001
            - end: 5005
              start: 5002
          type: CUSTOM
    

    Create FirewallFilteringNetworkServices Resource

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

    Constructor syntax

    new FirewallFilteringNetworkServices(name: string, args?: FirewallFilteringNetworkServicesArgs, opts?: CustomResourceOptions);
    @overload
    def FirewallFilteringNetworkServices(resource_name: str,
                                         args: Optional[FirewallFilteringNetworkServicesArgs] = None,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def FirewallFilteringNetworkServices(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         description: Optional[str] = None,
                                         dest_tcp_ports: Optional[Sequence[FirewallFilteringNetworkServicesDestTcpPortArgs]] = None,
                                         dest_udp_ports: Optional[Sequence[FirewallFilteringNetworkServicesDestUdpPortArgs]] = None,
                                         is_name_l10n_tag: Optional[bool] = None,
                                         name: Optional[str] = None,
                                         src_tcp_ports: Optional[Sequence[FirewallFilteringNetworkServicesSrcTcpPortArgs]] = None,
                                         src_udp_ports: Optional[Sequence[FirewallFilteringNetworkServicesSrcUdpPortArgs]] = None,
                                         tag: Optional[str] = None,
                                         type: Optional[str] = None)
    func NewFirewallFilteringNetworkServices(ctx *Context, name string, args *FirewallFilteringNetworkServicesArgs, opts ...ResourceOption) (*FirewallFilteringNetworkServices, error)
    public FirewallFilteringNetworkServices(string name, FirewallFilteringNetworkServicesArgs? args = null, CustomResourceOptions? opts = null)
    public FirewallFilteringNetworkServices(String name, FirewallFilteringNetworkServicesArgs args)
    public FirewallFilteringNetworkServices(String name, FirewallFilteringNetworkServicesArgs args, CustomResourceOptions options)
    
    type: zia:FirewallFilteringNetworkServices
    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 FirewallFilteringNetworkServicesArgs
    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 FirewallFilteringNetworkServicesArgs
    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 FirewallFilteringNetworkServicesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FirewallFilteringNetworkServicesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FirewallFilteringNetworkServicesArgs
    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 firewallFilteringNetworkServicesResource = new Zia.FirewallFilteringNetworkServices("firewallFilteringNetworkServicesResource", new()
    {
        Description = "string",
        DestTcpPorts = new[]
        {
            new Zia.Inputs.FirewallFilteringNetworkServicesDestTcpPortArgs
            {
                End = 0,
                Start = 0,
            },
        },
        DestUdpPorts = new[]
        {
            new Zia.Inputs.FirewallFilteringNetworkServicesDestUdpPortArgs
            {
                End = 0,
                Start = 0,
            },
        },
        IsNameL10nTag = false,
        Name = "string",
        SrcTcpPorts = new[]
        {
            new Zia.Inputs.FirewallFilteringNetworkServicesSrcTcpPortArgs
            {
                End = 0,
                Start = 0,
            },
        },
        SrcUdpPorts = new[]
        {
            new Zia.Inputs.FirewallFilteringNetworkServicesSrcUdpPortArgs
            {
                End = 0,
                Start = 0,
            },
        },
        Tag = "string",
        Type = "string",
    });
    
    example, err := zia.NewFirewallFilteringNetworkServices(ctx, "firewallFilteringNetworkServicesResource", &zia.FirewallFilteringNetworkServicesArgs{
    	Description: pulumi.String("string"),
    	DestTcpPorts: zia.FirewallFilteringNetworkServicesDestTcpPortArray{
    		&zia.FirewallFilteringNetworkServicesDestTcpPortArgs{
    			End:   pulumi.Int(0),
    			Start: pulumi.Int(0),
    		},
    	},
    	DestUdpPorts: zia.FirewallFilteringNetworkServicesDestUdpPortArray{
    		&zia.FirewallFilteringNetworkServicesDestUdpPortArgs{
    			End:   pulumi.Int(0),
    			Start: pulumi.Int(0),
    		},
    	},
    	IsNameL10nTag: pulumi.Bool(false),
    	Name:          pulumi.String("string"),
    	SrcTcpPorts: zia.FirewallFilteringNetworkServicesSrcTcpPortArray{
    		&zia.FirewallFilteringNetworkServicesSrcTcpPortArgs{
    			End:   pulumi.Int(0),
    			Start: pulumi.Int(0),
    		},
    	},
    	SrcUdpPorts: zia.FirewallFilteringNetworkServicesSrcUdpPortArray{
    		&zia.FirewallFilteringNetworkServicesSrcUdpPortArgs{
    			End:   pulumi.Int(0),
    			Start: pulumi.Int(0),
    		},
    	},
    	Tag:  pulumi.String("string"),
    	Type: pulumi.String("string"),
    })
    
    var firewallFilteringNetworkServicesResource = new FirewallFilteringNetworkServices("firewallFilteringNetworkServicesResource", FirewallFilteringNetworkServicesArgs.builder()
        .description("string")
        .destTcpPorts(FirewallFilteringNetworkServicesDestTcpPortArgs.builder()
            .end(0)
            .start(0)
            .build())
        .destUdpPorts(FirewallFilteringNetworkServicesDestUdpPortArgs.builder()
            .end(0)
            .start(0)
            .build())
        .isNameL10nTag(false)
        .name("string")
        .srcTcpPorts(FirewallFilteringNetworkServicesSrcTcpPortArgs.builder()
            .end(0)
            .start(0)
            .build())
        .srcUdpPorts(FirewallFilteringNetworkServicesSrcUdpPortArgs.builder()
            .end(0)
            .start(0)
            .build())
        .tag("string")
        .type("string")
        .build());
    
    firewall_filtering_network_services_resource = zia.FirewallFilteringNetworkServices("firewallFilteringNetworkServicesResource",
        description="string",
        dest_tcp_ports=[{
            "end": 0,
            "start": 0,
        }],
        dest_udp_ports=[{
            "end": 0,
            "start": 0,
        }],
        is_name_l10n_tag=False,
        name="string",
        src_tcp_ports=[{
            "end": 0,
            "start": 0,
        }],
        src_udp_ports=[{
            "end": 0,
            "start": 0,
        }],
        tag="string",
        type="string")
    
    const firewallFilteringNetworkServicesResource = new zia.FirewallFilteringNetworkServices("firewallFilteringNetworkServicesResource", {
        description: "string",
        destTcpPorts: [{
            end: 0,
            start: 0,
        }],
        destUdpPorts: [{
            end: 0,
            start: 0,
        }],
        isNameL10nTag: false,
        name: "string",
        srcTcpPorts: [{
            end: 0,
            start: 0,
        }],
        srcUdpPorts: [{
            end: 0,
            start: 0,
        }],
        tag: "string",
        type: "string",
    });
    
    type: zia:FirewallFilteringNetworkServices
    properties:
        description: string
        destTcpPorts:
            - end: 0
              start: 0
        destUdpPorts:
            - end: 0
              start: 0
        isNameL10nTag: false
        name: string
        srcTcpPorts:
            - end: 0
              start: 0
        srcUdpPorts:
            - end: 0
              start: 0
        tag: string
        type: string
    

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

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkServiceId int
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkServiceId int
    id String
    The provider-assigned unique ID for this managed resource.
    networkServiceId Integer
    id string
    The provider-assigned unique ID for this managed resource.
    networkServiceId number
    id str
    The provider-assigned unique ID for this managed resource.
    network_service_id int
    id String
    The provider-assigned unique ID for this managed resource.
    networkServiceId Number

    Look up Existing FirewallFilteringNetworkServices Resource

    Get an existing FirewallFilteringNetworkServices 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?: FirewallFilteringNetworkServicesState, opts?: CustomResourceOptions): FirewallFilteringNetworkServices
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            dest_tcp_ports: Optional[Sequence[FirewallFilteringNetworkServicesDestTcpPortArgs]] = None,
            dest_udp_ports: Optional[Sequence[FirewallFilteringNetworkServicesDestUdpPortArgs]] = None,
            is_name_l10n_tag: Optional[bool] = None,
            name: Optional[str] = None,
            network_service_id: Optional[int] = None,
            src_tcp_ports: Optional[Sequence[FirewallFilteringNetworkServicesSrcTcpPortArgs]] = None,
            src_udp_ports: Optional[Sequence[FirewallFilteringNetworkServicesSrcUdpPortArgs]] = None,
            tag: Optional[str] = None,
            type: Optional[str] = None) -> FirewallFilteringNetworkServices
    func GetFirewallFilteringNetworkServices(ctx *Context, name string, id IDInput, state *FirewallFilteringNetworkServicesState, opts ...ResourceOption) (*FirewallFilteringNetworkServices, error)
    public static FirewallFilteringNetworkServices Get(string name, Input<string> id, FirewallFilteringNetworkServicesState? state, CustomResourceOptions? opts = null)
    public static FirewallFilteringNetworkServices get(String name, Output<String> id, FirewallFilteringNetworkServicesState 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:

    Supporting Types

    FirewallFilteringNetworkServicesDestTcpPort, FirewallFilteringNetworkServicesDestTcpPortArgs

    End int
    Start int
    End int
    Start int
    end Integer
    start Integer
    end number
    start number
    end int
    start int
    end Number
    start Number

    FirewallFilteringNetworkServicesDestUdpPort, FirewallFilteringNetworkServicesDestUdpPortArgs

    End int
    Start int
    End int
    Start int
    end Integer
    start Integer
    end number
    start number
    end int
    start int
    end Number
    start Number

    FirewallFilteringNetworkServicesSrcTcpPort, FirewallFilteringNetworkServicesSrcTcpPortArgs

    End int
    Start int
    End int
    Start int
    end Integer
    start Integer
    end number
    start number
    end int
    start int
    end Number
    start Number

    FirewallFilteringNetworkServicesSrcUdpPort, FirewallFilteringNetworkServicesSrcUdpPortArgs

    End int
    Start int
    End int
    Start int
    end Integer
    start Integer
    end number
    start number
    end int
    start int
    end Number
    start Number

    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_service can be imported by using <SERVICE_ID> or <SERVICE_NAME> as the import ID.

    For example:

    $ pulumi import zia:index/firewallFilteringNetworkServices:FirewallFilteringNetworkServices example <service_id>
    

    or

    $ pulumi import zia:index/firewallFilteringNetworkServices:FirewallFilteringNetworkServices example <service_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