zia.FirewallFilteringSourceGroups
Explore with Pulumi AI
The zia_firewall_filtering_ip_source_groups resource allows the creation and management of ZIA Cloud Firewall IP source 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";
// Add an IP address or addresses to a new IP Source Group
const example = new zia.FirewallFilteringSourceGroups("example", {
description: "Example",
ipAddresses: [
"192.168.100.1",
"192.168.100.2",
"192.168.100.3",
],
});
import pulumi
import zscaler_pulumi_zia as zia
# Add an IP address or addresses to a new IP Source Group
example = zia.FirewallFilteringSourceGroups("example",
description="Example",
ip_addresses=[
"192.168.100.1",
"192.168.100.2",
"192.168.100.3",
])
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 {
// Add an IP address or addresses to a new IP Source Group
_, err := zia.NewFirewallFilteringSourceGroups(ctx, "example", &zia.FirewallFilteringSourceGroupsArgs{
Description: pulumi.String("Example"),
IpAddresses: pulumi.StringArray{
pulumi.String("192.168.100.1"),
pulumi.String("192.168.100.2"),
pulumi.String("192.168.100.3"),
},
})
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(() =>
{
// Add an IP address or addresses to a new IP Source Group
var example = new Zia.FirewallFilteringSourceGroups("example", new()
{
Description = "Example",
IpAddresses = new[]
{
"192.168.100.1",
"192.168.100.2",
"192.168.100.3",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.FirewallFilteringSourceGroups;
import com.pulumi.zia.FirewallFilteringSourceGroupsArgs;
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) {
// Add an IP address or addresses to a new IP Source Group
var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
.description("Example")
.ipAddresses(
"192.168.100.1",
"192.168.100.2",
"192.168.100.3")
.build());
}
}
resources:
# Add an IP address or addresses to a new IP Source Group
example:
type: zia:FirewallFilteringSourceGroups
properties:
description: Example
ipAddresses:
- 192.168.100.1
- 192.168.100.2
- 192.168.100.3
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
// Add an IP address range(s) to a new IP Source Group
const example = new zia.FirewallFilteringSourceGroups("example", {
description: "Example",
ipAddresses: ["192.0.2.1-192.0.2.10"],
});
import pulumi
import zscaler_pulumi_zia as zia
# Add an IP address range(s) to a new IP Source Group
example = zia.FirewallFilteringSourceGroups("example",
description="Example",
ip_addresses=["192.0.2.1-192.0.2.10"])
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 {
// Add an IP address range(s) to a new IP Source Group
_, err := zia.NewFirewallFilteringSourceGroups(ctx, "example", &zia.FirewallFilteringSourceGroupsArgs{
Description: pulumi.String("Example"),
IpAddresses: pulumi.StringArray{
pulumi.String("192.0.2.1-192.0.2.10"),
},
})
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(() =>
{
// Add an IP address range(s) to a new IP Source Group
var example = new Zia.FirewallFilteringSourceGroups("example", new()
{
Description = "Example",
IpAddresses = new[]
{
"192.0.2.1-192.0.2.10",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.FirewallFilteringSourceGroups;
import com.pulumi.zia.FirewallFilteringSourceGroupsArgs;
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) {
// Add an IP address range(s) to a new IP Source Group
var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
.description("Example")
.ipAddresses("192.0.2.1-192.0.2.10")
.build());
}
}
resources:
# Add an IP address range(s) to a new IP Source Group
example:
type: zia:FirewallFilteringSourceGroups
properties:
description: Example
ipAddresses:
- 192.0.2.1-192.0.2.10
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@bdzscaler/pulumi-zia";
// Add subnet to a new IP Source Group
const example = new zia.FirewallFilteringSourceGroups("example", {
description: "Example",
ipAddresses: ["203.0.113.0/24"],
});
import pulumi
import zscaler_pulumi_zia as zia
# Add subnet to a new IP Source Group
example = zia.FirewallFilteringSourceGroups("example",
description="Example",
ip_addresses=["203.0.113.0/24"])
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 {
// Add subnet to a new IP Source Group
_, err := zia.NewFirewallFilteringSourceGroups(ctx, "example", &zia.FirewallFilteringSourceGroupsArgs{
Description: pulumi.String("Example"),
IpAddresses: pulumi.StringArray{
pulumi.String("203.0.113.0/24"),
},
})
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(() =>
{
// Add subnet to a new IP Source Group
var example = new Zia.FirewallFilteringSourceGroups("example", new()
{
Description = "Example",
IpAddresses = new[]
{
"203.0.113.0/24",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.FirewallFilteringSourceGroups;
import com.pulumi.zia.FirewallFilteringSourceGroupsArgs;
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) {
// Add subnet to a new IP Source Group
var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
.description("Example")
.ipAddresses("203.0.113.0/24")
.build());
}
}
resources:
# Add subnet to a new IP Source Group
example:
type: zia:FirewallFilteringSourceGroups
properties:
description: Example
ipAddresses:
- 203.0.113.0/24
Create FirewallFilteringSourceGroups Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FirewallFilteringSourceGroups(name: string, args: FirewallFilteringSourceGroupsArgs, opts?: CustomResourceOptions);
@overload
def FirewallFilteringSourceGroups(resource_name: str,
args: FirewallFilteringSourceGroupsArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FirewallFilteringSourceGroups(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_addresses: Optional[Sequence[str]] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewFirewallFilteringSourceGroups(ctx *Context, name string, args FirewallFilteringSourceGroupsArgs, opts ...ResourceOption) (*FirewallFilteringSourceGroups, error)
public FirewallFilteringSourceGroups(string name, FirewallFilteringSourceGroupsArgs args, CustomResourceOptions? opts = null)
public FirewallFilteringSourceGroups(String name, FirewallFilteringSourceGroupsArgs args)
public FirewallFilteringSourceGroups(String name, FirewallFilteringSourceGroupsArgs args, CustomResourceOptions options)
type: zia:FirewallFilteringSourceGroups
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 FirewallFilteringSourceGroupsArgs
- 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 FirewallFilteringSourceGroupsArgs
- 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 FirewallFilteringSourceGroupsArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FirewallFilteringSourceGroupsArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FirewallFilteringSourceGroupsArgs
- 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 firewallFilteringSourceGroupsResource = new Zia.FirewallFilteringSourceGroups("firewallFilteringSourceGroupsResource", new()
{
IpAddresses = new[]
{
"string",
},
Description = "string",
Name = "string",
});
example, err := zia.NewFirewallFilteringSourceGroups(ctx, "firewallFilteringSourceGroupsResource", &zia.FirewallFilteringSourceGroupsArgs{
IpAddresses: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var firewallFilteringSourceGroupsResource = new FirewallFilteringSourceGroups("firewallFilteringSourceGroupsResource", FirewallFilteringSourceGroupsArgs.builder()
.ipAddresses("string")
.description("string")
.name("string")
.build());
firewall_filtering_source_groups_resource = zia.FirewallFilteringSourceGroups("firewallFilteringSourceGroupsResource",
ip_addresses=["string"],
description="string",
name="string")
const firewallFilteringSourceGroupsResource = new zia.FirewallFilteringSourceGroups("firewallFilteringSourceGroupsResource", {
ipAddresses: ["string"],
description: "string",
name: "string",
});
type: zia:FirewallFilteringSourceGroups
properties:
description: string
ipAddresses:
- string
name: string
FirewallFilteringSourceGroups Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The FirewallFilteringSourceGroups resource accepts the following input properties:
- Ip
Addresses List<string> - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- Description string
- Description of the source IP group
- Name string
- Source IP group name
- Ip
Addresses []string - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- Description string
- Description of the source IP group
- Name string
- Source IP group name
- ip
Addresses List<String> - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- description String
- Description of the source IP group
- name String
- Source IP group name
- ip
Addresses string[] - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- description string
- Description of the source IP group
- name string
- Source IP group name
- ip_
addresses Sequence[str] - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- description str
- Description of the source IP group
- name str
- Source IP group name
- ip
Addresses List<String> - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- description String
- Description of the source IP group
- name String
- Source IP group name
Outputs
All input properties are implicitly available as output properties. Additionally, the FirewallFilteringSourceGroups resource produces the following output properties:
Look up Existing FirewallFilteringSourceGroups Resource
Get an existing FirewallFilteringSourceGroups 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?: FirewallFilteringSourceGroupsState, opts?: CustomResourceOptions): FirewallFilteringSourceGroups
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
group_id: Optional[int] = None,
ip_addresses: Optional[Sequence[str]] = None,
name: Optional[str] = None) -> FirewallFilteringSourceGroups
func GetFirewallFilteringSourceGroups(ctx *Context, name string, id IDInput, state *FirewallFilteringSourceGroupsState, opts ...ResourceOption) (*FirewallFilteringSourceGroups, error)
public static FirewallFilteringSourceGroups Get(string name, Input<string> id, FirewallFilteringSourceGroupsState? state, CustomResourceOptions? opts = null)
public static FirewallFilteringSourceGroups get(String name, Output<String> id, FirewallFilteringSourceGroupsState 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
- Description of the source IP group
- Group
Id int - Ip
Addresses List<string> - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- Name string
- Source IP group name
- Description string
- Description of the source IP group
- Group
Id int - Ip
Addresses []string - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- Name string
- Source IP group name
- description String
- Description of the source IP group
- group
Id Integer - ip
Addresses List<String> - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- name String
- Source IP group name
- description string
- Description of the source IP group
- group
Id number - ip
Addresses string[] - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- name string
- Source IP group name
- description str
- Description of the source IP group
- group_
id int - ip_
addresses Sequence[str] - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- name str
- Source IP group name
- description String
- Description of the source IP group
- group
Id Number - ip
Addresses List<String> - Source IP addresses to be added to the group. Enter any number of IP addresses. You can enter:
- An IP address (198.51.100.100)
- A range of IP addresses 192.0.2.1-192.0.2.10
- An IP address with a netmask 203.0.113.0/24
- name String
- Source IP group name
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_ip_source_groups can be imported by using <GROUP_ID>
or <GROUP_NAME>
as the import ID.
For example:
$ pulumi import zia:index/firewallFilteringSourceGroups:FirewallFilteringSourceGroups example <group_id>
or
$ pulumi import zia:index/firewallFilteringSourceGroups:FirewallFilteringSourceGroups 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.