zia.Firewall.FirewallFilteringSourceGroups
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
using System.Collections.Generic;
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.Firewall.FirewallFilteringSourceGroups("example", new()
{
Description = "Example",
IpAddresses = new[]
{
"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/Firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Firewall.NewFirewallFilteringSourceGroups(ctx, "example", &Firewall.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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.Firewall.FirewallFilteringSourceGroups;
import com.pulumi.zia.Firewall.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) {
var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
.description("Example")
.ipAddresses(
"192.168.100.1",
"192.168.100.2",
"192.168.100.3")
.build());
}
}
import pulumi
import zscaler_pulumi_zia as zia
# Add an IP address or addresses to a new IP Source Group
example = zia.firewall.FirewallFilteringSourceGroups("example",
description="Example",
ip_addresses=[
"192.168.100.1",
"192.168.100.2",
"192.168.100.3",
])
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@zscaler/pulumi-zia";
// Add an IP address or addresses to a new IP Source Group
const example = new zia.firewall.FirewallFilteringSourceGroups("example", {
description: "Example",
ipAddresses: [
"192.168.100.1",
"192.168.100.2",
"192.168.100.3",
],
});
resources:
# Add an IP address or addresses to a new IP Source Group
example:
type: zia:Firewall:FirewallFilteringSourceGroups
properties:
description: Example
ipAddresses:
- 192.168.100.1
- 192.168.100.2
- 192.168.100.3
using System.Collections.Generic;
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.Firewall.FirewallFilteringSourceGroups("example", new()
{
Description = "Example",
IpAddresses = new[]
{
"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/Firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Firewall.NewFirewallFilteringSourceGroups(ctx, "example", &Firewall.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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.Firewall.FirewallFilteringSourceGroups;
import com.pulumi.zia.Firewall.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) {
var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
.description("Example")
.ipAddresses("192.0.2.1-192.0.2.10")
.build());
}
}
import pulumi
import zscaler_pulumi_zia as zia
# Add an IP address range(s) to a new IP Source Group
example = zia.firewall.FirewallFilteringSourceGroups("example",
description="Example",
ip_addresses=["192.0.2.1-192.0.2.10"])
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@zscaler/pulumi-zia";
// Add an IP address range(s) to a new IP Source Group
const example = new zia.firewall.FirewallFilteringSourceGroups("example", {
description: "Example",
ipAddresses: ["192.0.2.1-192.0.2.10"],
});
resources:
# Add an IP address range(s) to a new IP Source Group
example:
type: zia:Firewall:FirewallFilteringSourceGroups
properties:
description: Example
ipAddresses:
- 192.0.2.1-192.0.2.10
using System.Collections.Generic;
using Pulumi;
using Zia = zscaler.PulumiPackage.Zia;
return await Deployment.RunAsync(() =>
{
// Add subnet to a new IP Source Group
var example = new Zia.Firewall.FirewallFilteringSourceGroups("example", new()
{
Description = "Example",
IpAddresses = new[]
{
"203.0.113.0/24",
},
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/zscaler/pulumi-zia/sdk/go/zia/Firewall"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Firewall.NewFirewallFilteringSourceGroups(ctx, "example", &Firewall.FirewallFilteringSourceGroupsArgs{
Description: pulumi.String("Example"),
IpAddresses: pulumi.StringArray{
pulumi.String("203.0.113.0/24"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.zia.Firewall.FirewallFilteringSourceGroups;
import com.pulumi.zia.Firewall.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) {
var example = new FirewallFilteringSourceGroups("example", FirewallFilteringSourceGroupsArgs.builder()
.description("Example")
.ipAddresses("203.0.113.0/24")
.build());
}
}
import pulumi
import zscaler_pulumi_zia as zia
# Add subnet to a new IP Source Group
example = zia.firewall.FirewallFilteringSourceGroups("example",
description="Example",
ip_addresses=["203.0.113.0/24"])
import * as pulumi from "@pulumi/pulumi";
import * as zia from "@zscaler/pulumi-zia";
// Add subnet to a new IP Source Group
const example = new zia.firewall.FirewallFilteringSourceGroups("example", {
description: "Example",
ipAddresses: ["203.0.113.0/24"],
});
resources:
# Add subnet to a new IP Source Group
example:
type: zia:Firewall:FirewallFilteringSourceGroups
properties:
description: Example
ipAddresses:
- 203.0.113.0/24
Create FirewallFilteringSourceGroups Resource
new FirewallFilteringSourceGroups(name: string, args: FirewallFilteringSourceGroupsArgs, opts?: CustomResourceOptions);
@overload
def FirewallFilteringSourceGroups(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ip_addresses: Optional[Sequence[str]] = None,
name: Optional[str] = None)
@overload
def FirewallFilteringSourceGroups(resource_name: str,
args: FirewallFilteringSourceGroupsArgs,
opts: Optional[ResourceOptions] = 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:Firewall:FirewallFilteringSourceGroups
properties: # The arguments to resource properties.
options: # 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.
- 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.
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:
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Source intGroup Id
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Source intGroup Id
- id String
The provider-assigned unique ID for this managed resource.
- ip
Source IntegerGroup Id
- id string
The provider-assigned unique ID for this managed resource.
- ip
Source numberGroup Id
- id str
The provider-assigned unique ID for this managed resource.
- ip_
source_ intgroup_ id
- id String
The provider-assigned unique ID for this managed resource.
- ip
Source NumberGroup Id
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,
ip_addresses: Optional[Sequence[str]] = None,
ip_source_group_id: Optional[int] = 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
- 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
- Ip
Source intGroup Id - Name string
Source IP group name
- Description string
Description of the source IP group
- 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
- Ip
Source intGroup Id - Name string
Source IP group name
- description String
Description of the source IP group
- 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
- ip
Source IntegerGroup Id - name String
Source IP group name
- description string
Description of the source IP group
- 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
- ip
Source numberGroup Id - name string
Source IP group name
- description str
Description of the source IP group
- 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
- ip_
source_ intgroup_ id - name str
Source IP group name
- description String
Description of the source IP group
- 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
- ip
Source NumberGroup Id - name String
Source IP group name
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
This Pulumi package is based on the
zia
Terraform Provider.