published on Friday, Mar 13, 2026 by Zscaler
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.
- Dest
Tcp List<zscaler.Ports Pulumi Package. Zia. Inputs. Network Port Input> - Destination TCP port ranges. Each entry specifies a start and end port.
- Dest
Udp List<zscaler.Ports Pulumi Package. Zia. Inputs. Network Port Input> - Destination UDP port ranges. Each entry specifies a start and end port.
- Is
Name boolL10n Tag - Indicates whether the name is a localization tag.
- Name string
- The name of the network service.
- Src
Tcp List<zscaler.Ports Pulumi Package. Zia. Inputs. Network Port Input> - Source TCP port ranges. Each entry specifies a start and end port.
- Src
Udp List<zscaler.Ports Pulumi Package. Zia. Inputs. Network Port Input> - 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.
- Dest
Tcp []NetworkPorts Port Input Args - Destination TCP port ranges. Each entry specifies a start and end port.
- Dest
Udp []NetworkPorts Port Input Args - Destination UDP port ranges. Each entry specifies a start and end port.
- Is
Name boolL10n Tag - Indicates whether the name is a localization tag.
- Name string
- The name of the network service.
- Src
Tcp []NetworkPorts Port Input Args - Source TCP port ranges. Each entry specifies a start and end port.
- Src
Udp []NetworkPorts Port Input Args - 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.
- dest
Tcp List<NetworkPorts Port Input> - Destination TCP port ranges. Each entry specifies a start and end port.
- dest
Udp List<NetworkPorts Port Input> - Destination UDP port ranges. Each entry specifies a start and end port.
- is
Name BooleanL10n Tag - Indicates whether the name is a localization tag.
- name String
- The name of the network service.
- src
Tcp List<NetworkPorts Port Input> - Source TCP port ranges. Each entry specifies a start and end port.
- src
Udp List<NetworkPorts Port Input> - 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.
- dest
Tcp NetworkPorts Port Input[] - Destination TCP port ranges. Each entry specifies a start and end port.
- dest
Udp NetworkPorts Port Input[] - Destination UDP port ranges. Each entry specifies a start and end port.
- is
Name booleanL10n Tag - Indicates whether the name is a localization tag.
- name string
- The name of the network service.
- src
Tcp NetworkPorts Port Input[] - Source TCP port ranges. Each entry specifies a start and end port.
- src
Udp NetworkPorts Port Input[] - 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_ Sequence[Networkports Port Input Args] - Destination TCP port ranges. Each entry specifies a start and end port.
- dest_
udp_ Sequence[Networkports Port Input Args] - Destination UDP port ranges. Each entry specifies a start and end port.
- is_
name_ booll10n_ tag - Indicates whether the name is a localization tag.
- name str
- The name of the network service.
- src_
tcp_ Sequence[Networkports Port Input Args] - Source TCP port ranges. Each entry specifies a start and end port.
- src_
udp_ Sequence[Networkports Port Input Args] - 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.
- dest
Tcp List<Property Map>Ports - Destination TCP port ranges. Each entry specifies a start and end port.
- dest
Udp List<Property Map>Ports - Destination UDP port ranges. Each entry specifies a start and end port.
- is
Name BooleanL10n Tag - Indicates whether the name is a localization tag.
- name String
- The name of the network service.
- src
Tcp List<Property Map>Ports - Source TCP port ranges. Each entry specifies a start and end port.
- src
Udp List<Property Map>Ports - 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.
- Network
Service intId - The system-generated ID of the network service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Service intId - The system-generated ID of the network service.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Service IntegerId - The system-generated ID of the network service.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Service numberId - The system-generated ID of the network service.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
service_ intid - The system-generated ID of the network service.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Service NumberId - The system-generated ID of the network service.
Supporting Types
NetworkPortInput, NetworkPortInputArgs
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
published on Friday, Mar 13, 2026 by Zscaler
