zia.FirewallFilteringServiceGroups
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
import * as zia from "@pulumi/zia";
const example1 = zia.getFirewallFilteringNetworkServices({
name: "FTP",
});
const example2 = zia.getFirewallFilteringNetworkServices({
name: "NETBIOS",
});
const example3 = zia.getFirewallFilteringNetworkServices({
name: "DNS",
});
// Add network services to a network services group
const example = new zia.FirewallFilteringServiceGroups("example", {
description: "example",
services: [{
ids: [
example1.then(example1 => example1.id),
example2.then(example2 => example2.id),
example3.then(example3 => example3.id),
],
}],
});
import pulumi
import pulumi_zia as zia
import zscaler_pulumi_zia as zia
example1 = zia.get_firewall_filtering_network_services(name="FTP")
example2 = zia.get_firewall_filtering_network_services(name="NETBIOS")
example3 = zia.get_firewall_filtering_network_services(name="DNS")
# Add network services to a network services group
example = zia.FirewallFilteringServiceGroups("example",
description="example",
services=[zia.FirewallFilteringServiceGroupsServiceArgs(
ids=[
example1.id,
example2.id,
example3.id,
],
)])
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 {
example1, err := zia.LookupFirewallFilteringNetworkServices(ctx, &zia.LookupFirewallFilteringNetworkServicesArgs{
Name: pulumi.StringRef("FTP"),
}, nil)
if err != nil {
return err
}
example2, err := zia.LookupFirewallFilteringNetworkServices(ctx, &zia.LookupFirewallFilteringNetworkServicesArgs{
Name: pulumi.StringRef("NETBIOS"),
}, nil)
if err != nil {
return err
}
example3, err := zia.LookupFirewallFilteringNetworkServices(ctx, &zia.LookupFirewallFilteringNetworkServicesArgs{
Name: pulumi.StringRef("DNS"),
}, nil)
if err != nil {
return err
}
// Add network services to a network services group
_, err = zia.NewFirewallFilteringServiceGroups(ctx, "example", &zia.FirewallFilteringServiceGroupsArgs{
Description: pulumi.String("example"),
Services: zia.FirewallFilteringServiceGroupsServiceArray{
&zia.FirewallFilteringServiceGroupsServiceArgs{
Ids: pulumi.IntArray{
pulumi.Int(example1.Id),
pulumi.Int(example2.Id),
pulumi.Int(example3.Id),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Zia = Pulumi.Zia;
using Zia = zscaler.PulumiPackage.Zia;
return await Deployment.RunAsync(() =>
{
var example1 = Zia.GetFirewallFilteringNetworkServices.Invoke(new()
{
Name = "FTP",
});
var example2 = Zia.GetFirewallFilteringNetworkServices.Invoke(new()
{
Name = "NETBIOS",
});
var example3 = Zia.GetFirewallFilteringNetworkServices.Invoke(new()
{
Name = "DNS",
});
// Add network services to a network services group
var example = new Zia.FirewallFilteringServiceGroups("example", new()
{
Description = "example",
Services = new[]
{
new Zia.Inputs.FirewallFilteringServiceGroupsServiceArgs
{
Ids = new[]
{
example1.Apply(getFirewallFilteringNetworkServicesResult => getFirewallFilteringNetworkServicesResult.Id),
example2.Apply(getFirewallFilteringNetworkServicesResult => getFirewallFilteringNetworkServicesResult.Id),
example3.Apply(getFirewallFilteringNetworkServicesResult => getFirewallFilteringNetworkServicesResult.Id),
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.ZiaFunctions;
import com.pulumi.zia.inputs.GetFirewallFilteringNetworkServicesArgs;
import com.pulumi.zia.FirewallFilteringServiceGroups;
import com.pulumi.zia.FirewallFilteringServiceGroupsArgs;
import com.pulumi.zia.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 = ZiaFunctions.getFirewallFilteringNetworkServices(GetFirewallFilteringNetworkServicesArgs.builder()
.name("FTP")
.build());
final var example2 = ZiaFunctions.getFirewallFilteringNetworkServices(GetFirewallFilteringNetworkServicesArgs.builder()
.name("NETBIOS")
.build());
final var example3 = ZiaFunctions.getFirewallFilteringNetworkServices(GetFirewallFilteringNetworkServicesArgs.builder()
.name("DNS")
.build());
// Add network services to a network services group
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());
}
}
resources:
# Add network services to a network services group
example:
type: zia:FirewallFilteringServiceGroups
properties:
description: example
services:
- ids:
- ${example1.id}
- ${example2.id}
- ${example3.id}
variables:
example1:
fn::invoke:
Function: zia:getFirewallFilteringNetworkServices
Arguments:
name: FTP
example2:
fn::invoke:
Function: zia:getFirewallFilteringNetworkServices
Arguments:
name: NETBIOS
example3:
fn::invoke:
Function: zia:getFirewallFilteringNetworkServices
Arguments:
name: DNS
Create FirewallFilteringServiceGroups Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FirewallFilteringServiceGroups(name: string, args?: FirewallFilteringServiceGroupsArgs, opts?: CustomResourceOptions);
@overload
def FirewallFilteringServiceGroups(resource_name: str,
args: Optional[FirewallFilteringServiceGroupsArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def FirewallFilteringServiceGroups(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
services: Optional[Sequence[FirewallFilteringServiceGroupsServiceArgs]] = 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:FirewallFilteringServiceGroups
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 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var firewallFilteringServiceGroupsResource = new Zia.FirewallFilteringServiceGroups("firewallFilteringServiceGroupsResource", new()
{
Description = "string",
Name = "string",
Services = new[]
{
new Zia.Inputs.FirewallFilteringServiceGroupsServiceArgs
{
Ids = new[]
{
0,
},
},
},
});
example, err := zia.NewFirewallFilteringServiceGroups(ctx, "firewallFilteringServiceGroupsResource", &zia.FirewallFilteringServiceGroupsArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
Services: zia.FirewallFilteringServiceGroupsServiceArray{
&zia.FirewallFilteringServiceGroupsServiceArgs{
Ids: pulumi.IntArray{
pulumi.Int(0),
},
},
},
})
var firewallFilteringServiceGroupsResource = new FirewallFilteringServiceGroups("firewallFilteringServiceGroupsResource", FirewallFilteringServiceGroupsArgs.builder()
.description("string")
.name("string")
.services(FirewallFilteringServiceGroupsServiceArgs.builder()
.ids(0)
.build())
.build());
firewall_filtering_service_groups_resource = zia.FirewallFilteringServiceGroups("firewallFilteringServiceGroupsResource",
description="string",
name="string",
services=[{
"ids": [0],
}])
const firewallFilteringServiceGroupsResource = new zia.FirewallFilteringServiceGroups("firewallFilteringServiceGroupsResource", {
description: "string",
name: "string",
services: [{
ids: [0],
}],
});
type: zia:FirewallFilteringServiceGroups
properties:
description: string
name: string
services:
- ids:
- 0
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FirewallFilteringServiceGroups resource accepts the following input properties:
- Description string
- Name string
- Services
List<zscaler.
Pulumi Package. Zia. Inputs. Firewall Filtering Service Groups Service> - list of services IDs
- Description string
- Name string
- Services
[]Firewall
Filtering Service Groups Service Args - list of services IDs
- description String
- name String
- services
List<Firewall
Filtering Service Groups Service> - list of services IDs
- description string
- name string
- services
Firewall
Filtering Service Groups Service[] - list of services IDs
- description str
- name str
- services
Sequence[Firewall
Filtering Service Groups Service Args] - list of services IDs
- description String
- name String
- services List<Property Map>
- list of services IDs
Outputs
All input properties are implicitly available as output properties. Additionally, the FirewallFilteringServiceGroups resource produces the following output properties:
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,
group_id: Optional[int] = None,
name: Optional[str] = None,
services: Optional[Sequence[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.
- Description string
- Group
Id int - Name string
- Services
List<zscaler.
Pulumi Package. Zia. Inputs. Firewall Filtering Service Groups Service> - list of services IDs
- Description string
- Group
Id int - Name string
- Services
[]Firewall
Filtering Service Groups Service Args - list of services IDs
- description String
- group
Id Integer - name String
- services
List<Firewall
Filtering Service Groups Service> - list of services IDs
- description string
- group
Id number - name string
- services
Firewall
Filtering Service Groups Service[] - list of services IDs
- description str
- group_
id int - name str
- services
Sequence[Firewall
Filtering Service Groups Service Args] - list of services IDs
- description String
- group
Id Number - name String
- services List<Property Map>
- list of services IDs
Supporting Types
FirewallFilteringServiceGroupsService, FirewallFilteringServiceGroupsServiceArgs
- Ids List<int>
- Ids []int
- ids List<Integer>
- ids number[]
- ids Sequence[int]
- ids List<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
firewall_filtering_network_service_groups can be imported by using <GROUP_ID>
or <GROUP_NAME>
as the import ID.
For example:
$ pulumi import zia:index/firewallFilteringServiceGroups:FirewallFilteringServiceGroups example <group_id>
or
$ pulumi import zia:index/firewallFilteringServiceGroups:FirewallFilteringServiceGroups example <group_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.