1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getTrafficForwardingGRETunnelInfo
Zscaler Internet Access v0.0.6 published on Wednesday, Apr 10, 2024 by Zscaler

zia.getTrafficForwardingGRETunnelInfo

Explore with Pulumi AI

zia logo
Zscaler Internet Access v0.0.6 published on Wednesday, Apr 10, 2024 by Zscaler

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

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zia from "@pulumi/zia";
    
    const example = zia.getTrafficForwardingGRETunnelInfo({
        ipAddress: "1.1.1.1",
    });
    
    import pulumi
    import pulumi_zia as zia
    
    example = zia.get_traffic_forwarding_gre_tunnel_info(ip_address="1.1.1.1")
    
    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 {
    		_, err := zia.GetTrafficForwardingGRETunnelInfo(ctx, &zia.GetTrafficForwardingGRETunnelInfoArgs{
    			IpAddress: pulumi.StringRef("1.1.1.1"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zia = Pulumi.Zia;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Zia.GetTrafficForwardingGRETunnelInfo.Invoke(new()
        {
            IpAddress = "1.1.1.1",
        });
    
    });
    
    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.GetTrafficForwardingGRETunnelInfoArgs;
    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 example = ZiaFunctions.getTrafficForwardingGRETunnelInfo(GetTrafficForwardingGRETunnelInfoArgs.builder()
                .ipAddress("1.1.1.1")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zia:getTrafficForwardingGRETunnelInfo
          Arguments:
            ipAddress: 1.1.1.1
    

    Using getTrafficForwardingGRETunnelInfo

    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 getTrafficForwardingGRETunnelInfo(args: GetTrafficForwardingGRETunnelInfoArgs, opts?: InvokeOptions): Promise<GetTrafficForwardingGRETunnelInfoResult>
    function getTrafficForwardingGRETunnelInfoOutput(args: GetTrafficForwardingGRETunnelInfoOutputArgs, opts?: InvokeOptions): Output<GetTrafficForwardingGRETunnelInfoResult>
    def get_traffic_forwarding_gre_tunnel_info(gre_enabled: Optional[bool] = None,
                                               ip_address: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetTrafficForwardingGRETunnelInfoResult
    def get_traffic_forwarding_gre_tunnel_info_output(gre_enabled: Optional[pulumi.Input[bool]] = None,
                                               ip_address: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetTrafficForwardingGRETunnelInfoResult]
    func GetTrafficForwardingGRETunnelInfo(ctx *Context, args *GetTrafficForwardingGRETunnelInfoArgs, opts ...InvokeOption) (*GetTrafficForwardingGRETunnelInfoResult, error)
    func GetTrafficForwardingGRETunnelInfoOutput(ctx *Context, args *GetTrafficForwardingGRETunnelInfoOutputArgs, opts ...InvokeOption) GetTrafficForwardingGRETunnelInfoResultOutput

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

    public static class GetTrafficForwardingGRETunnelInfo 
    {
        public static Task<GetTrafficForwardingGRETunnelInfoResult> InvokeAsync(GetTrafficForwardingGRETunnelInfoArgs args, InvokeOptions? opts = null)
        public static Output<GetTrafficForwardingGRETunnelInfoResult> Invoke(GetTrafficForwardingGRETunnelInfoInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTrafficForwardingGRETunnelInfoResult> getTrafficForwardingGRETunnelInfo(GetTrafficForwardingGRETunnelInfoArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: zia:index/getTrafficForwardingGRETunnelInfo:getTrafficForwardingGRETunnelInfo
      arguments:
        # arguments dictionary

    The following arguments are supported:

    GreEnabled bool

    Displays only ip addresses with GRE tunnel enabled

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

    IpAddress string
    Filter based on an IP address range.
    GreEnabled bool

    Displays only ip addresses with GRE tunnel enabled

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

    IpAddress string
    Filter based on an IP address range.
    greEnabled Boolean

    Displays only ip addresses with GRE tunnel enabled

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

    ipAddress String
    Filter based on an IP address range.
    greEnabled boolean

    Displays only ip addresses with GRE tunnel enabled

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

    ipAddress string
    Filter based on an IP address range.
    gre_enabled bool

    Displays only ip addresses with GRE tunnel enabled

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

    ip_address str
    Filter based on an IP address range.
    greEnabled Boolean

    Displays only ip addresses with GRE tunnel enabled

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

    ipAddress String
    Filter based on an IP address range.

    getTrafficForwardingGRETunnelInfo Result

    The following output properties are available:

    GreRangePrimary string
    (String)
    GreRangeSecondary string
    (String)
    GreTunnelIp string
    (String) The start of the internal IP address in /29 CIDR range
    Id string
    The provider-assigned unique ID for this managed resource.
    PrimaryGw string
    (String)
    SecondaryGw string
    (String)
    TunId int
    (Number)
    GreEnabled bool
    IpAddress string
    GreRangePrimary string
    (String)
    GreRangeSecondary string
    (String)
    GreTunnelIp string
    (String) The start of the internal IP address in /29 CIDR range
    Id string
    The provider-assigned unique ID for this managed resource.
    PrimaryGw string
    (String)
    SecondaryGw string
    (String)
    TunId int
    (Number)
    GreEnabled bool
    IpAddress string
    greRangePrimary String
    (String)
    greRangeSecondary String
    (String)
    greTunnelIp String
    (String) The start of the internal IP address in /29 CIDR range
    id String
    The provider-assigned unique ID for this managed resource.
    primaryGw String
    (String)
    secondaryGw String
    (String)
    tunId Integer
    (Number)
    greEnabled Boolean
    ipAddress String
    greRangePrimary string
    (String)
    greRangeSecondary string
    (String)
    greTunnelIp string
    (String) The start of the internal IP address in /29 CIDR range
    id string
    The provider-assigned unique ID for this managed resource.
    primaryGw string
    (String)
    secondaryGw string
    (String)
    tunId number
    (Number)
    greEnabled boolean
    ipAddress string
    gre_range_primary str
    (String)
    gre_range_secondary str
    (String)
    gre_tunnel_ip str
    (String) The start of the internal IP address in /29 CIDR range
    id str
    The provider-assigned unique ID for this managed resource.
    primary_gw str
    (String)
    secondary_gw str
    (String)
    tun_id int
    (Number)
    gre_enabled bool
    ip_address str
    greRangePrimary String
    (String)
    greRangeSecondary String
    (String)
    greTunnelIp String
    (String) The start of the internal IP address in /29 CIDR range
    id String
    The provider-assigned unique ID for this managed resource.
    primaryGw String
    (String)
    secondaryGw String
    (String)
    tunId Number
    (Number)
    greEnabled Boolean
    ipAddress String

    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 v0.0.6 published on Wednesday, Apr 10, 2024 by Zscaler