zia.TrafficForwardingGRETunnel
Explore with Pulumi AI
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_traffic_forwarding_gre_tunnel can be imported by using <TUNNEL_ID>
as the import ID.
For example:
$ pulumi import zia:index/trafficForwardingGRETunnel:TrafficForwardingGRETunnel example <tunnel_id>
or
$ pulumi import zia:index/trafficForwardingGRETunnel:TrafficForwardingGRETunnel example <engine_name>
Create TrafficForwardingGRETunnel Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficForwardingGRETunnel(name: string, args: TrafficForwardingGRETunnelArgs, opts?: CustomResourceOptions);
@overload
def TrafficForwardingGRETunnel(resource_name: str,
args: TrafficForwardingGRETunnelArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficForwardingGRETunnel(resource_name: str,
opts: Optional[ResourceOptions] = None,
source_ip: Optional[str] = None,
comment: Optional[str] = None,
country_code: Optional[str] = None,
internal_ip_range: Optional[str] = None,
ip_unnumbered: Optional[bool] = None,
primary_dest_vips: Optional[Sequence[TrafficForwardingGRETunnelPrimaryDestVipArgs]] = None,
secondary_dest_vips: Optional[Sequence[TrafficForwardingGRETunnelSecondaryDestVipArgs]] = None,
within_country: Optional[bool] = None)
func NewTrafficForwardingGRETunnel(ctx *Context, name string, args TrafficForwardingGRETunnelArgs, opts ...ResourceOption) (*TrafficForwardingGRETunnel, error)
public TrafficForwardingGRETunnel(string name, TrafficForwardingGRETunnelArgs args, CustomResourceOptions? opts = null)
public TrafficForwardingGRETunnel(String name, TrafficForwardingGRETunnelArgs args)
public TrafficForwardingGRETunnel(String name, TrafficForwardingGRETunnelArgs args, CustomResourceOptions options)
type: zia:TrafficForwardingGRETunnel
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 TrafficForwardingGRETunnelArgs
- 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 TrafficForwardingGRETunnelArgs
- 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 TrafficForwardingGRETunnelArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficForwardingGRETunnelArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficForwardingGRETunnelArgs
- 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 trafficForwardingGRETunnelResource = new Zia.TrafficForwardingGRETunnel("trafficForwardingGRETunnelResource", new()
{
SourceIp = "string",
Comment = "string",
CountryCode = "string",
InternalIpRange = "string",
IpUnnumbered = false,
PrimaryDestVips = new[]
{
new Zia.Inputs.TrafficForwardingGRETunnelPrimaryDestVipArgs
{
Datacenter = "string",
Id = 0,
VirtualIp = "string",
},
},
SecondaryDestVips = new[]
{
new Zia.Inputs.TrafficForwardingGRETunnelSecondaryDestVipArgs
{
Datacenter = "string",
Id = 0,
VirtualIp = "string",
},
},
WithinCountry = false,
});
example, err := zia.NewTrafficForwardingGRETunnel(ctx, "trafficForwardingGRETunnelResource", &zia.TrafficForwardingGRETunnelArgs{
SourceIp: pulumi.String("string"),
Comment: pulumi.String("string"),
CountryCode: pulumi.String("string"),
InternalIpRange: pulumi.String("string"),
IpUnnumbered: pulumi.Bool(false),
PrimaryDestVips: zia.TrafficForwardingGRETunnelPrimaryDestVipArray{
&zia.TrafficForwardingGRETunnelPrimaryDestVipArgs{
Datacenter: pulumi.String("string"),
Id: pulumi.Int(0),
VirtualIp: pulumi.String("string"),
},
},
SecondaryDestVips: zia.TrafficForwardingGRETunnelSecondaryDestVipArray{
&zia.TrafficForwardingGRETunnelSecondaryDestVipArgs{
Datacenter: pulumi.String("string"),
Id: pulumi.Int(0),
VirtualIp: pulumi.String("string"),
},
},
WithinCountry: pulumi.Bool(false),
})
var trafficForwardingGRETunnelResource = new TrafficForwardingGRETunnel("trafficForwardingGRETunnelResource", TrafficForwardingGRETunnelArgs.builder()
.sourceIp("string")
.comment("string")
.countryCode("string")
.internalIpRange("string")
.ipUnnumbered(false)
.primaryDestVips(TrafficForwardingGRETunnelPrimaryDestVipArgs.builder()
.datacenter("string")
.id(0)
.virtualIp("string")
.build())
.secondaryDestVips(TrafficForwardingGRETunnelSecondaryDestVipArgs.builder()
.datacenter("string")
.id(0)
.virtualIp("string")
.build())
.withinCountry(false)
.build());
traffic_forwarding_gre_tunnel_resource = zia.TrafficForwardingGRETunnel("trafficForwardingGRETunnelResource",
source_ip="string",
comment="string",
country_code="string",
internal_ip_range="string",
ip_unnumbered=False,
primary_dest_vips=[{
"datacenter": "string",
"id": 0,
"virtual_ip": "string",
}],
secondary_dest_vips=[{
"datacenter": "string",
"id": 0,
"virtual_ip": "string",
}],
within_country=False)
const trafficForwardingGRETunnelResource = new zia.TrafficForwardingGRETunnel("trafficForwardingGRETunnelResource", {
sourceIp: "string",
comment: "string",
countryCode: "string",
internalIpRange: "string",
ipUnnumbered: false,
primaryDestVips: [{
datacenter: "string",
id: 0,
virtualIp: "string",
}],
secondaryDestVips: [{
datacenter: "string",
id: 0,
virtualIp: "string",
}],
withinCountry: false,
});
type: zia:TrafficForwardingGRETunnel
properties:
comment: string
countryCode: string
internalIpRange: string
ipUnnumbered: false
primaryDestVips:
- datacenter: string
id: 0
virtualIp: string
secondaryDestVips:
- datacenter: string
id: 0
virtualIp: string
sourceIp: string
withinCountry: false
TrafficForwardingGRETunnel 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 TrafficForwardingGRETunnel resource accepts the following input properties:
- Source
Ip string - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- Comment string
- Additional information about this GRE tunnel
- Country
Code string - When within_country is enabled, you must set this to the country code.
- Internal
Ip stringRange - The start of the internal IP address in /29 CIDR range
- Ip
Unnumbered bool - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- Primary
Dest List<zscaler.Vips Pulumi Package. Zia. Inputs. Traffic Forwarding GRETunnel Primary Dest Vip> - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- Secondary
Dest List<zscaler.Vips Pulumi Package. Zia. Inputs. Traffic Forwarding GRETunnel Secondary Dest Vip> - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- Within
Country bool - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- Source
Ip string - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- Comment string
- Additional information about this GRE tunnel
- Country
Code string - When within_country is enabled, you must set this to the country code.
- Internal
Ip stringRange - The start of the internal IP address in /29 CIDR range
- Ip
Unnumbered bool - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- Primary
Dest []TrafficVips Forwarding GRETunnel Primary Dest Vip Args - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- Secondary
Dest []TrafficVips Forwarding GRETunnel Secondary Dest Vip Args - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- Within
Country bool - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- source
Ip String - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- comment String
- Additional information about this GRE tunnel
- country
Code String - When within_country is enabled, you must set this to the country code.
- internal
Ip StringRange - The start of the internal IP address in /29 CIDR range
- ip
Unnumbered Boolean - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- primary
Dest List<TrafficVips Forwarding GRETunnel Primary Dest Vip> - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- secondary
Dest List<TrafficVips Forwarding GRETunnel Secondary Dest Vip> - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- within
Country Boolean - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- source
Ip string - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- comment string
- Additional information about this GRE tunnel
- country
Code string - When within_country is enabled, you must set this to the country code.
- internal
Ip stringRange - The start of the internal IP address in /29 CIDR range
- ip
Unnumbered boolean - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- primary
Dest TrafficVips Forwarding GRETunnel Primary Dest Vip[] - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- secondary
Dest TrafficVips Forwarding GRETunnel Secondary Dest Vip[] - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- within
Country boolean - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- source_
ip str - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- comment str
- Additional information about this GRE tunnel
- country_
code str - When within_country is enabled, you must set this to the country code.
- internal_
ip_ strrange - The start of the internal IP address in /29 CIDR range
- ip_
unnumbered bool - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- primary_
dest_ Sequence[Trafficvips Forwarding GRETunnel Primary Dest Vip Args] - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- secondary_
dest_ Sequence[Trafficvips Forwarding GRETunnel Secondary Dest Vip Args] - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- within_
country bool - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- source
Ip String - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- comment String
- Additional information about this GRE tunnel
- country
Code String - When within_country is enabled, you must set this to the country code.
- internal
Ip StringRange - The start of the internal IP address in /29 CIDR range
- ip
Unnumbered Boolean - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- primary
Dest List<Property Map>Vips - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- secondary
Dest List<Property Map>Vips - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- within
Country Boolean - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficForwardingGRETunnel resource produces the following output properties:
Look up Existing TrafficForwardingGRETunnel Resource
Get an existing TrafficForwardingGRETunnel 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?: TrafficForwardingGRETunnelState, opts?: CustomResourceOptions): TrafficForwardingGRETunnel
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
country_code: Optional[str] = None,
internal_ip_range: Optional[str] = None,
ip_unnumbered: Optional[bool] = None,
primary_dest_vips: Optional[Sequence[TrafficForwardingGRETunnelPrimaryDestVipArgs]] = None,
secondary_dest_vips: Optional[Sequence[TrafficForwardingGRETunnelSecondaryDestVipArgs]] = None,
source_ip: Optional[str] = None,
tunnel_id: Optional[int] = None,
within_country: Optional[bool] = None) -> TrafficForwardingGRETunnel
func GetTrafficForwardingGRETunnel(ctx *Context, name string, id IDInput, state *TrafficForwardingGRETunnelState, opts ...ResourceOption) (*TrafficForwardingGRETunnel, error)
public static TrafficForwardingGRETunnel Get(string name, Input<string> id, TrafficForwardingGRETunnelState? state, CustomResourceOptions? opts = null)
public static TrafficForwardingGRETunnel get(String name, Output<String> id, TrafficForwardingGRETunnelState 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.
- Comment string
- Additional information about this GRE tunnel
- Country
Code string - When within_country is enabled, you must set this to the country code.
- Internal
Ip stringRange - The start of the internal IP address in /29 CIDR range
- Ip
Unnumbered bool - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- Primary
Dest List<zscaler.Vips Pulumi Package. Zia. Inputs. Traffic Forwarding GRETunnel Primary Dest Vip> - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- Secondary
Dest List<zscaler.Vips Pulumi Package. Zia. Inputs. Traffic Forwarding GRETunnel Secondary Dest Vip> - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- Source
Ip string - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- Tunnel
Id int - The ID of the GRE tunnel.
- Within
Country bool - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- Comment string
- Additional information about this GRE tunnel
- Country
Code string - When within_country is enabled, you must set this to the country code.
- Internal
Ip stringRange - The start of the internal IP address in /29 CIDR range
- Ip
Unnumbered bool - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- Primary
Dest []TrafficVips Forwarding GRETunnel Primary Dest Vip Args - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- Secondary
Dest []TrafficVips Forwarding GRETunnel Secondary Dest Vip Args - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- Source
Ip string - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- Tunnel
Id int - The ID of the GRE tunnel.
- Within
Country bool - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- comment String
- Additional information about this GRE tunnel
- country
Code String - When within_country is enabled, you must set this to the country code.
- internal
Ip StringRange - The start of the internal IP address in /29 CIDR range
- ip
Unnumbered Boolean - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- primary
Dest List<TrafficVips Forwarding GRETunnel Primary Dest Vip> - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- secondary
Dest List<TrafficVips Forwarding GRETunnel Secondary Dest Vip> - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- source
Ip String - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- tunnel
Id Integer - The ID of the GRE tunnel.
- within
Country Boolean - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- comment string
- Additional information about this GRE tunnel
- country
Code string - When within_country is enabled, you must set this to the country code.
- internal
Ip stringRange - The start of the internal IP address in /29 CIDR range
- ip
Unnumbered boolean - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- primary
Dest TrafficVips Forwarding GRETunnel Primary Dest Vip[] - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- secondary
Dest TrafficVips Forwarding GRETunnel Secondary Dest Vip[] - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- source
Ip string - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- tunnel
Id number - The ID of the GRE tunnel.
- within
Country boolean - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- comment str
- Additional information about this GRE tunnel
- country_
code str - When within_country is enabled, you must set this to the country code.
- internal_
ip_ strrange - The start of the internal IP address in /29 CIDR range
- ip_
unnumbered bool - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- primary_
dest_ Sequence[Trafficvips Forwarding GRETunnel Primary Dest Vip Args] - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- secondary_
dest_ Sequence[Trafficvips Forwarding GRETunnel Secondary Dest Vip Args] - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- source_
ip str - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- tunnel_
id int - The ID of the GRE tunnel.
- within_
country bool - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
- comment String
- Additional information about this GRE tunnel
- country
Code String - When within_country is enabled, you must set this to the country code.
- internal
Ip StringRange - The start of the internal IP address in /29 CIDR range
- ip
Unnumbered Boolean - This is required to support the automated SD-WAN provisioning of GRE tunnels, when set to true gre_tun_ip and gre_tun_id are set to null
- primary
Dest List<Property Map>Vips - The primary destination data center and virtual IP address (VIP) of the GRE tunnel
- secondary
Dest List<Property Map>Vips - The secondary destination data center and virtual IP address (VIP) of the GRE tunnel
- source
Ip String - The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.
- tunnel
Id Number - The ID of the GRE tunnel.
- within
Country Boolean - Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
Supporting Types
TrafficForwardingGRETunnelPrimaryDestVip, TrafficForwardingGRETunnelPrimaryDestVipArgs
- Datacenter string
- Data center information
- Id int
- GRE cluster virtual IP ID
- Virtual
Ip string - GRE cluster virtual IP address (VIP)
- Datacenter string
- Data center information
- Id int
- GRE cluster virtual IP ID
- Virtual
Ip string - GRE cluster virtual IP address (VIP)
- datacenter String
- Data center information
- id Integer
- GRE cluster virtual IP ID
- virtual
Ip String - GRE cluster virtual IP address (VIP)
- datacenter string
- Data center information
- id number
- GRE cluster virtual IP ID
- virtual
Ip string - GRE cluster virtual IP address (VIP)
- datacenter str
- Data center information
- id int
- GRE cluster virtual IP ID
- virtual_
ip str - GRE cluster virtual IP address (VIP)
- datacenter String
- Data center information
- id Number
- GRE cluster virtual IP ID
- virtual
Ip String - GRE cluster virtual IP address (VIP)
TrafficForwardingGRETunnelSecondaryDestVip, TrafficForwardingGRETunnelSecondaryDestVipArgs
- Datacenter string
- Data center information
- Id int
- GRE cluster virtual IP ID
- Virtual
Ip string - GRE cluster virtual IP address (VIP)
- Datacenter string
- Data center information
- Id int
- GRE cluster virtual IP ID
- Virtual
Ip string - GRE cluster virtual IP address (VIP)
- datacenter String
- Data center information
- id Integer
- GRE cluster virtual IP ID
- virtual
Ip String - GRE cluster virtual IP address (VIP)
- datacenter string
- Data center information
- id number
- GRE cluster virtual IP ID
- virtual
Ip string - GRE cluster virtual IP address (VIP)
- datacenter str
- Data center information
- id int
- GRE cluster virtual IP ID
- virtual_
ip str - GRE cluster virtual IP address (VIP)
- datacenter String
- Data center information
- id Number
- GRE cluster virtual IP ID
- virtual
Ip String - GRE cluster virtual IP address (VIP)
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
zia
Terraform Provider.