1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. FwNetworkService
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler
zia logo
Viewing docs for pulumi-resource-zia v1.3.8
published on Friday, Mar 13, 2026 by Zscaler

    The zia_fw_network_service resource manages firewall network services in the Zscaler Internet Access (ZIA) cloud service. Network services define the TCP/UDP port ranges used in firewall filtering rules.

    For more information, see the ZIA Firewall Policies documentation.

    Example Usage

    Basic Network Service

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as zia from "@bdzscaler/pulumi-zia";
    
    const example = new zia.FwNetworkService("example", {
        name: "Example Network Service",
        description: "Custom network service",
        destTcpPorts: [
            { start: 443, end: 443 },
            { start: 8080, end: 8090 },
        ],
    });
    
    import zscaler_pulumi_zia as zia
    
    example = zia.FwNetworkService("example",
        name="Example Network Service",
        description="Custom network service",
        dest_tcp_ports=[
            {"start": 443, "end": 443},
            {"start": 8080, "end": 8090},
        ],
    )
    
    resources:
      example:
        type: zia:FwNetworkService
        properties:
          name: Example Network Service
          description: Custom network service
          destTcpPorts:
            - start: 443
              end: 443
            - start: 8080
              end: 8090
    

    Create FwNetworkService Resource

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

    Constructor syntax

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

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

    Description string
    Additional information about the network service.
    DestTcpPorts List<zscaler.PulumiPackage.Zia.Inputs.NetworkPortInput>
    Destination TCP port ranges. Each entry specifies a start and end port.
    DestUdpPorts List<zscaler.PulumiPackage.Zia.Inputs.NetworkPortInput>
    Destination UDP port ranges. Each entry specifies a start and end port.
    IsNameL10nTag bool
    Indicates whether the name is a localization tag.
    Name string
    The name of the network service.
    SrcTcpPorts List<zscaler.PulumiPackage.Zia.Inputs.NetworkPortInput>
    Source TCP port ranges. Each entry specifies a start and end port.
    SrcUdpPorts List<zscaler.PulumiPackage.Zia.Inputs.NetworkPortInput>
    Source UDP port ranges. Each entry specifies a start and end port.
    Tag string
    The tag associated with the network service.
    Type string
    The network service type. Valid values: STANDARD, PREDEFINED, CUSTOM.
    Description string
    Additional information about the network service.
    DestTcpPorts []NetworkPortInputArgs
    Destination TCP port ranges. Each entry specifies a start and end port.
    DestUdpPorts []NetworkPortInputArgs
    Destination UDP port ranges. Each entry specifies a start and end port.
    IsNameL10nTag bool
    Indicates whether the name is a localization tag.
    Name string
    The name of the network service.
    SrcTcpPorts []NetworkPortInputArgs
    Source TCP port ranges. Each entry specifies a start and end port.
    SrcUdpPorts []NetworkPortInputArgs
    Source UDP port ranges. Each entry specifies a start and end port.
    Tag string
    The tag associated with the network service.
    Type string
    The network service type. Valid values: STANDARD, PREDEFINED, CUSTOM.
    description String
    Additional information about the network service.
    destTcpPorts List<NetworkPortInput>
    Destination TCP port ranges. Each entry specifies a start and end port.
    destUdpPorts List<NetworkPortInput>
    Destination UDP port ranges. Each entry specifies a start and end port.
    isNameL10nTag Boolean
    Indicates whether the name is a localization tag.
    name String
    The name of the network service.
    srcTcpPorts List<NetworkPortInput>
    Source TCP port ranges. Each entry specifies a start and end port.
    srcUdpPorts List<NetworkPortInput>
    Source UDP port ranges. Each entry specifies a start and end port.
    tag String
    The tag associated with the network service.
    type String
    The network service type. Valid values: STANDARD, PREDEFINED, CUSTOM.
    description string
    Additional information about the network service.
    destTcpPorts NetworkPortInput[]
    Destination TCP port ranges. Each entry specifies a start and end port.
    destUdpPorts NetworkPortInput[]
    Destination UDP port ranges. Each entry specifies a start and end port.
    isNameL10nTag boolean
    Indicates whether the name is a localization tag.
    name string
    The name of the network service.
    srcTcpPorts NetworkPortInput[]
    Source TCP port ranges. Each entry specifies a start and end port.
    srcUdpPorts NetworkPortInput[]
    Source UDP port ranges. Each entry specifies a start and end port.
    tag string
    The tag associated with the network service.
    type string
    The network service type. Valid values: STANDARD, PREDEFINED, CUSTOM.
    description str
    Additional information about the network service.
    dest_tcp_ports Sequence[NetworkPortInputArgs]
    Destination TCP port ranges. Each entry specifies a start and end port.
    dest_udp_ports Sequence[NetworkPortInputArgs]
    Destination UDP port ranges. Each entry specifies a start and end port.
    is_name_l10n_tag bool
    Indicates whether the name is a localization tag.
    name str
    The name of the network service.
    src_tcp_ports Sequence[NetworkPortInputArgs]
    Source TCP port ranges. Each entry specifies a start and end port.
    src_udp_ports Sequence[NetworkPortInputArgs]
    Source UDP port ranges. Each entry specifies a start and end port.
    tag str
    The tag associated with the network service.
    type str
    The network service type. Valid values: STANDARD, PREDEFINED, CUSTOM.
    description String
    Additional information about the network service.
    destTcpPorts List<Property Map>
    Destination TCP port ranges. Each entry specifies a start and end port.
    destUdpPorts List<Property Map>
    Destination UDP port ranges. Each entry specifies a start and end port.
    isNameL10nTag Boolean
    Indicates whether the name is a localization tag.
    name String
    The name of the network service.
    srcTcpPorts List<Property Map>
    Source TCP port ranges. Each entry specifies a start and end port.
    srcUdpPorts List<Property Map>
    Source UDP port ranges. Each entry specifies a start and end port.
    tag String
    The tag associated with the network service.
    type String
    The network service type. Valid values: STANDARD, PREDEFINED, CUSTOM.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkServiceId int
    The system-generated ID of the network service.
    Id string
    The provider-assigned unique ID for this managed resource.
    NetworkServiceId int
    The system-generated ID of the network service.
    id String
    The provider-assigned unique ID for this managed resource.
    networkServiceId Integer
    The system-generated ID of the network service.
    id string
    The provider-assigned unique ID for this managed resource.
    networkServiceId number
    The system-generated ID of the network service.
    id str
    The provider-assigned unique ID for this managed resource.
    network_service_id int
    The system-generated ID of the network service.
    id String
    The provider-assigned unique ID for this managed resource.
    networkServiceId Number
    The system-generated ID of the network service.

    Supporting Types

    NetworkPortInput, NetworkPortInputArgs

    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

    An existing network service can be imported using its resource ID, e.g.

    $ pulumi import zia:index:FwNetworkService example 12345
    

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

    Package Details

    Repository
    zia zscaler/pulumi-zia
    License
    zia logo
    Viewing docs for pulumi-resource-zia v1.3.8
    published on Friday, Mar 13, 2026 by Zscaler
      Try Pulumi Cloud free. Your team will thank you.