1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getTrafficForwardingGRETunnel
Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler

zia.getTrafficForwardingGRETunnel

Explore with Pulumi AI

zia logo
Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler

    The zia_traffic_forwarding_gre_tunnel data source to get information about provisioned GRE tunnel information created in the Zscaler Internet Access portal.

    Example Usage

    Retrieve GRE Tunnel By Source IP

    data "zia_traffic_forwarding_gre_tunnel" "example" {
      source_ip = "1.1.1.1"
    }
    

    Retrieve GRE Tunnel By ID

    data "zia_traffic_forwarding_gre_tunnel" "example" {
      id = 1419395
    }
    

    Using getTrafficForwardingGRETunnel

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getTrafficForwardingGRETunnel(args: GetTrafficForwardingGRETunnelArgs, opts?: InvokeOptions): Promise<GetTrafficForwardingGRETunnelResult>
    function getTrafficForwardingGRETunnelOutput(args: GetTrafficForwardingGRETunnelOutputArgs, opts?: InvokeOptions): Output<GetTrafficForwardingGRETunnelResult>
    def get_traffic_forwarding_gre_tunnel(id: Optional[int] = None,
                                          source_ip: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetTrafficForwardingGRETunnelResult
    def get_traffic_forwarding_gre_tunnel_output(id: Optional[pulumi.Input[int]] = None,
                                          source_ip: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetTrafficForwardingGRETunnelResult]
    func LookupTrafficForwardingGRETunnel(ctx *Context, args *LookupTrafficForwardingGRETunnelArgs, opts ...InvokeOption) (*LookupTrafficForwardingGRETunnelResult, error)
    func LookupTrafficForwardingGRETunnelOutput(ctx *Context, args *LookupTrafficForwardingGRETunnelOutputArgs, opts ...InvokeOption) LookupTrafficForwardingGRETunnelResultOutput

    > Note: This function is named LookupTrafficForwardingGRETunnel in the Go SDK.

    public static class GetTrafficForwardingGRETunnel 
    {
        public static Task<GetTrafficForwardingGRETunnelResult> InvokeAsync(GetTrafficForwardingGRETunnelArgs args, InvokeOptions? opts = null)
        public static Output<GetTrafficForwardingGRETunnelResult> Invoke(GetTrafficForwardingGRETunnelInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrafficForwardingGRETunnelResult> getTrafficForwardingGRETunnel(GetTrafficForwardingGRETunnelArgs args, InvokeOptions options)
    public static Output<GetTrafficForwardingGRETunnelResult> getTrafficForwardingGRETunnel(GetTrafficForwardingGRETunnelArgs args, InvokeOptions options)
    
    fn::invoke:
      function: zia:index/getTrafficForwardingGRETunnel:getTrafficForwardingGRETunnel
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    SourceIp string

    The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.

    NOTE source_ip is the public IP address (Static IP) associated with the GRE Tunnel

    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    SourceIp string

    The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.

    NOTE source_ip is the public IP address (Static IP) associated with the GRE Tunnel

    id Integer
    Unique identifier of the static IP address that is associated to a GRE tunnel
    sourceIp String

    The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.

    NOTE source_ip is the public IP address (Static IP) associated with the GRE Tunnel

    id number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    sourceIp string

    The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.

    NOTE source_ip is the public IP address (Static IP) associated with the GRE Tunnel

    id int
    Unique identifier of the static IP address that is associated to a 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.

    NOTE source_ip is the public IP address (Static IP) associated with the GRE Tunnel

    id Number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    sourceIp String

    The source IP address of the GRE tunnel. This is typically a static IP address in the organization or SD-WAN.

    NOTE source_ip is the public IP address (Static IP) associated with the GRE Tunnel

    getTrafficForwardingGRETunnel Result

    The following output properties are available:

    Comment string
    (String) Additional information about this GRE tunnel
    InternalIpRange string
    (String) The start of the internal IP address in /29 CIDR range. Automatically set by the provider if ip_unnumbered is set to false.
    IpUnnumbered bool
    (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
    LastModificationTime int
    LastModifiedBies List<zscaler.PulumiPackage.Zia.Outputs.GetTrafficForwardingGRETunnelLastModifiedBy>
    ManagedBies List<zscaler.PulumiPackage.Zia.Outputs.GetTrafficForwardingGRETunnelManagedBy>
    PrimaryDestVips List<zscaler.PulumiPackage.Zia.Outputs.GetTrafficForwardingGRETunnelPrimaryDestVip>
    **` (List) The primary destination data center and virtual IP address (VIP) of the GRE tunnel.
    SecondaryDestVips List<zscaler.PulumiPackage.Zia.Outputs.GetTrafficForwardingGRETunnelSecondaryDestVip>
    (List) The secondary destination data center and virtual IP address (VIP) of the GRE tunnel.
    WithinCountry bool
    (Boolean) Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
    Id int
    (Number) Unique identifer of the GRE virtual IP address (VIP)
    SourceIp string
    Comment string
    (String) Additional information about this GRE tunnel
    InternalIpRange string
    (String) The start of the internal IP address in /29 CIDR range. Automatically set by the provider if ip_unnumbered is set to false.
    IpUnnumbered bool
    (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
    LastModificationTime int
    LastModifiedBies []GetTrafficForwardingGRETunnelLastModifiedBy
    ManagedBies []GetTrafficForwardingGRETunnelManagedBy
    PrimaryDestVips []GetTrafficForwardingGRETunnelPrimaryDestVip
    **` (List) The primary destination data center and virtual IP address (VIP) of the GRE tunnel.
    SecondaryDestVips []GetTrafficForwardingGRETunnelSecondaryDestVip
    (List) The secondary destination data center and virtual IP address (VIP) of the GRE tunnel.
    WithinCountry bool
    (Boolean) Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
    Id int
    (Number) Unique identifer of the GRE virtual IP address (VIP)
    SourceIp string
    comment String
    (String) Additional information about this GRE tunnel
    internalIpRange String
    (String) The start of the internal IP address in /29 CIDR range. Automatically set by the provider if ip_unnumbered is set to false.
    ipUnnumbered Boolean
    (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
    lastModificationTime Integer
    lastModifiedBies List<GetTrafficForwardingGRETunnelLastModifiedBy>
    managedBies List<GetTrafficForwardingGRETunnelManagedBy>
    primaryDestVips List<GetTrafficForwardingGRETunnelPrimaryDestVip>
    **` (List) The primary destination data center and virtual IP address (VIP) of the GRE tunnel.
    secondaryDestVips List<GetTrafficForwardingGRETunnelSecondaryDestVip>
    (List) The secondary destination data center and virtual IP address (VIP) of the GRE tunnel.
    withinCountry Boolean
    (Boolean) Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
    id Integer
    (Number) Unique identifer of the GRE virtual IP address (VIP)
    sourceIp String
    comment string
    (String) Additional information about this GRE tunnel
    internalIpRange string
    (String) The start of the internal IP address in /29 CIDR range. Automatically set by the provider if ip_unnumbered is set to false.
    ipUnnumbered boolean
    (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
    lastModificationTime number
    lastModifiedBies GetTrafficForwardingGRETunnelLastModifiedBy[]
    managedBies GetTrafficForwardingGRETunnelManagedBy[]
    primaryDestVips GetTrafficForwardingGRETunnelPrimaryDestVip[]
    **` (List) The primary destination data center and virtual IP address (VIP) of the GRE tunnel.
    secondaryDestVips GetTrafficForwardingGRETunnelSecondaryDestVip[]
    (List) The secondary destination data center and virtual IP address (VIP) of the GRE tunnel.
    withinCountry boolean
    (Boolean) Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
    id number
    (Number) Unique identifer of the GRE virtual IP address (VIP)
    sourceIp string
    comment str
    (String) Additional information about this GRE tunnel
    internal_ip_range str
    (String) The start of the internal IP address in /29 CIDR range. Automatically set by the provider if ip_unnumbered is set to false.
    ip_unnumbered bool
    (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
    last_modification_time int
    last_modified_bies Sequence[GetTrafficForwardingGRETunnelLastModifiedBy]
    managed_bies Sequence[GetTrafficForwardingGRETunnelManagedBy]
    primary_dest_vips Sequence[GetTrafficForwardingGRETunnelPrimaryDestVip]
    **` (List) The primary destination data center and virtual IP address (VIP) of the GRE tunnel.
    secondary_dest_vips Sequence[GetTrafficForwardingGRETunnelSecondaryDestVip]
    (List) The secondary destination data center and virtual IP address (VIP) of the GRE tunnel.
    within_country bool
    (Boolean) Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
    id int
    (Number) Unique identifer of the GRE virtual IP address (VIP)
    source_ip str
    comment String
    (String) Additional information about this GRE tunnel
    internalIpRange String
    (String) The start of the internal IP address in /29 CIDR range. Automatically set by the provider if ip_unnumbered is set to false.
    ipUnnumbered Boolean
    (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
    lastModificationTime Number
    lastModifiedBies List<Property Map>
    managedBies List<Property Map>
    primaryDestVips List<Property Map>
    **` (List) The primary destination data center and virtual IP address (VIP) of the GRE tunnel.
    secondaryDestVips List<Property Map>
    (List) The secondary destination data center and virtual IP address (VIP) of the GRE tunnel.
    withinCountry Boolean
    (Boolean) Restrict the data center virtual IP addresses (VIPs) only to those within the same country as the source IP address
    id Number
    (Number) Unique identifer of the GRE virtual IP address (VIP)
    sourceIp String

    Supporting Types

    GetTrafficForwardingGRETunnelLastModifiedBy

    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    Name string
    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    Name string
    id Integer
    Unique identifier of the static IP address that is associated to a GRE tunnel
    name String
    id number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    name string
    id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    name str
    id Number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    name String

    GetTrafficForwardingGRETunnelManagedBy

    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    Name string
    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    Name string
    id Integer
    Unique identifier of the static IP address that is associated to a GRE tunnel
    name String
    id number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    name string
    id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    name str
    id Number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    name String

    GetTrafficForwardingGRETunnelPrimaryDestVip

    City string
    CountryCode string
    (String) When within_country is enabled, you must set this to the country code.
    Datacenter string
    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    Latitude int
    Longitude int
    PrivateServiceEdge bool
    Region string
    VirtualIp string
    (String) GRE cluster virtual IP address (VIP)
    City string
    CountryCode string
    (String) When within_country is enabled, you must set this to the country code.
    Datacenter string
    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    Latitude int
    Longitude int
    PrivateServiceEdge bool
    Region string
    VirtualIp string
    (String) GRE cluster virtual IP address (VIP)
    city String
    countryCode String
    (String) When within_country is enabled, you must set this to the country code.
    datacenter String
    id Integer
    Unique identifier of the static IP address that is associated to a GRE tunnel
    latitude Integer
    longitude Integer
    privateServiceEdge Boolean
    region String
    virtualIp String
    (String) GRE cluster virtual IP address (VIP)
    city string
    countryCode string
    (String) When within_country is enabled, you must set this to the country code.
    datacenter string
    id number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    latitude number
    longitude number
    privateServiceEdge boolean
    region string
    virtualIp string
    (String) GRE cluster virtual IP address (VIP)
    city str
    country_code str
    (String) When within_country is enabled, you must set this to the country code.
    datacenter str
    id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    latitude int
    longitude int
    private_service_edge bool
    region str
    virtual_ip str
    (String) GRE cluster virtual IP address (VIP)
    city String
    countryCode String
    (String) When within_country is enabled, you must set this to the country code.
    datacenter String
    id Number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    latitude Number
    longitude Number
    privateServiceEdge Boolean
    region String
    virtualIp String
    (String) GRE cluster virtual IP address (VIP)

    GetTrafficForwardingGRETunnelSecondaryDestVip

    City string
    CountryCode string
    (String) When within_country is enabled, you must set this to the country code.
    Datacenter string
    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    Latitude int
    Longitude int
    PrivateServiceEdge bool
    Region string
    VirtualIp string
    (String) GRE cluster virtual IP address (VIP)
    City string
    CountryCode string
    (String) When within_country is enabled, you must set this to the country code.
    Datacenter string
    Id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    Latitude int
    Longitude int
    PrivateServiceEdge bool
    Region string
    VirtualIp string
    (String) GRE cluster virtual IP address (VIP)
    city String
    countryCode String
    (String) When within_country is enabled, you must set this to the country code.
    datacenter String
    id Integer
    Unique identifier of the static IP address that is associated to a GRE tunnel
    latitude Integer
    longitude Integer
    privateServiceEdge Boolean
    region String
    virtualIp String
    (String) GRE cluster virtual IP address (VIP)
    city string
    countryCode string
    (String) When within_country is enabled, you must set this to the country code.
    datacenter string
    id number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    latitude number
    longitude number
    privateServiceEdge boolean
    region string
    virtualIp string
    (String) GRE cluster virtual IP address (VIP)
    city str
    country_code str
    (String) When within_country is enabled, you must set this to the country code.
    datacenter str
    id int
    Unique identifier of the static IP address that is associated to a GRE tunnel
    latitude int
    longitude int
    private_service_edge bool
    region str
    virtual_ip str
    (String) GRE cluster virtual IP address (VIP)
    city String
    countryCode String
    (String) When within_country is enabled, you must set this to the country code.
    datacenter String
    id Number
    Unique identifier of the static IP address that is associated to a GRE tunnel
    latitude Number
    longitude Number
    privateServiceEdge Boolean
    region String
    virtualIp String
    (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.
    zia logo
    Zscaler Internet Access v1.0.1 published on Friday, Jun 6, 2025 by Zscaler