zia.FirewallFilteringNetworkServices
Explore with Pulumi AI
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:
- Description string
- Dest
Tcp List<zscaler.Ports Pulumi Package. Zia. Inputs. Firewall Filtering Network Services Dest Tcp Port> - dest tcp ports
- Dest
Udp List<zscaler.Ports Pulumi Package. Zia. Inputs. Firewall Filtering Network Services Dest Udp Port> - dest udp ports
- Is
Name boolL10n Tag - Name string
- Src
Tcp List<zscaler.Ports Pulumi Package. Zia. Inputs. Firewall Filtering Network Services Src Tcp Port> - src tcp ports
- Src
Udp List<zscaler.Ports Pulumi Package. Zia. Inputs. Firewall Filtering Network Services Src Udp Port> - src udp ports
- Tag string
- Type string
- Description string
- Dest
Tcp []FirewallPorts Filtering Network Services Dest Tcp Port Args - dest tcp ports
- Dest
Udp []FirewallPorts Filtering Network Services Dest Udp Port Args - dest udp ports
- Is
Name boolL10n Tag - Name string
- Src
Tcp []FirewallPorts Filtering Network Services Src Tcp Port Args - src tcp ports
- Src
Udp []FirewallPorts Filtering Network Services Src Udp Port Args - src udp ports
- Tag string
- Type string
- description String
- dest
Tcp List<FirewallPorts Filtering Network Services Dest Tcp Port> - dest tcp ports
- dest
Udp List<FirewallPorts Filtering Network Services Dest Udp Port> - dest udp ports
- is
Name BooleanL10n Tag - name String
- src
Tcp List<FirewallPorts Filtering Network Services Src Tcp Port> - src tcp ports
- src
Udp List<FirewallPorts Filtering Network Services Src Udp Port> - src udp ports
- tag String
- type String
- description string
- dest
Tcp FirewallPorts Filtering Network Services Dest Tcp Port[] - dest tcp ports
- dest
Udp FirewallPorts Filtering Network Services Dest Udp Port[] - dest udp ports
- is
Name booleanL10n Tag - name string
- src
Tcp FirewallPorts Filtering Network Services Src Tcp Port[] - src tcp ports
- src
Udp FirewallPorts Filtering Network Services Src Udp Port[] - src udp ports
- tag string
- type string
- description str
- dest_
tcp_ Sequence[Firewallports Filtering Network Services Dest Tcp Port Args] - dest tcp ports
- dest_
udp_ Sequence[Firewallports Filtering Network Services Dest Udp Port Args] - dest udp ports
- is_
name_ booll10n_ tag - name str
- src_
tcp_ Sequence[Firewallports Filtering Network Services Src Tcp Port Args] - src tcp ports
- src_
udp_ Sequence[Firewallports Filtering Network Services Src Udp Port Args] - src udp ports
- tag str
- type str
- description String
- dest
Tcp List<Property Map>Ports - dest tcp ports
- dest
Udp List<Property Map>Ports - dest udp ports
- is
Name BooleanL10n Tag - name String
- src
Tcp List<Property Map>Ports - src tcp ports
- src
Udp List<Property Map>Ports - src udp ports
- tag String
- type String
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.
- Network
Service intId
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Service intId
- id String
- The provider-assigned unique ID for this managed resource.
- network
Service IntegerId
- id string
- The provider-assigned unique ID for this managed resource.
- network
Service numberId
- id str
- The provider-assigned unique ID for this managed resource.
- network_
service_ intid
- id String
- The provider-assigned unique ID for this managed resource.
- network
Service NumberId
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.
- Description string
- Dest
Tcp List<zscaler.Ports Pulumi Package. Zia. Inputs. Firewall Filtering Network Services Dest Tcp Port> - dest tcp ports
- Dest
Udp List<zscaler.Ports Pulumi Package. Zia. Inputs. Firewall Filtering Network Services Dest Udp Port> - dest udp ports
- Is
Name boolL10n Tag - Name string
- Network
Service intId - Src
Tcp List<zscaler.Ports Pulumi Package. Zia. Inputs. Firewall Filtering Network Services Src Tcp Port> - src tcp ports
- Src
Udp List<zscaler.Ports Pulumi Package. Zia. Inputs. Firewall Filtering Network Services Src Udp Port> - src udp ports
- Tag string
- Type string
- Description string
- Dest
Tcp []FirewallPorts Filtering Network Services Dest Tcp Port Args - dest tcp ports
- Dest
Udp []FirewallPorts Filtering Network Services Dest Udp Port Args - dest udp ports
- Is
Name boolL10n Tag - Name string
- Network
Service intId - Src
Tcp []FirewallPorts Filtering Network Services Src Tcp Port Args - src tcp ports
- Src
Udp []FirewallPorts Filtering Network Services Src Udp Port Args - src udp ports
- Tag string
- Type string
- description String
- dest
Tcp List<FirewallPorts Filtering Network Services Dest Tcp Port> - dest tcp ports
- dest
Udp List<FirewallPorts Filtering Network Services Dest Udp Port> - dest udp ports
- is
Name BooleanL10n Tag - name String
- network
Service IntegerId - src
Tcp List<FirewallPorts Filtering Network Services Src Tcp Port> - src tcp ports
- src
Udp List<FirewallPorts Filtering Network Services Src Udp Port> - src udp ports
- tag String
- type String
- description string
- dest
Tcp FirewallPorts Filtering Network Services Dest Tcp Port[] - dest tcp ports
- dest
Udp FirewallPorts Filtering Network Services Dest Udp Port[] - dest udp ports
- is
Name booleanL10n Tag - name string
- network
Service numberId - src
Tcp FirewallPorts Filtering Network Services Src Tcp Port[] - src tcp ports
- src
Udp FirewallPorts Filtering Network Services Src Udp Port[] - src udp ports
- tag string
- type string
- description str
- dest_
tcp_ Sequence[Firewallports Filtering Network Services Dest Tcp Port Args] - dest tcp ports
- dest_
udp_ Sequence[Firewallports Filtering Network Services Dest Udp Port Args] - dest udp ports
- is_
name_ booll10n_ tag - name str
- network_
service_ intid - src_
tcp_ Sequence[Firewallports Filtering Network Services Src Tcp Port Args] - src tcp ports
- src_
udp_ Sequence[Firewallports Filtering Network Services Src Udp Port Args] - src udp ports
- tag str
- type str
- description String
- dest
Tcp List<Property Map>Ports - dest tcp ports
- dest
Udp List<Property Map>Ports - dest udp ports
- is
Name BooleanL10n Tag - name String
- network
Service NumberId - src
Tcp List<Property Map>Ports - src tcp ports
- src
Udp List<Property Map>Ports - src udp ports
- tag String
- type String
Supporting Types
FirewallFilteringNetworkServicesDestTcpPort, FirewallFilteringNetworkServicesDestTcpPortArgs
FirewallFilteringNetworkServicesDestUdpPort, FirewallFilteringNetworkServicesDestUdpPortArgs
FirewallFilteringNetworkServicesSrcTcpPort, FirewallFilteringNetworkServicesSrcTcpPortArgs
FirewallFilteringNetworkServicesSrcUdpPort, FirewallFilteringNetworkServicesSrcUdpPortArgs
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.