1. Packages
  2. Zscaler Internet Access (ZIA)
  3. API Docs
  4. getTrafficForwardingStaticIP
Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler

zia.getTrafficForwardingStaticIP

Explore with Pulumi AI

zia logo
Zscaler Internet Access v0.0.7 published on Tuesday, Jul 30, 2024 by Zscaler

    Use the zia_traffic_forwarding_static_ip data source to get information about all provisioned static IP addresses. This resource can then be utilized when creating a GRE Tunnel or VPN Credential resource of Type IP

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as zia from "@pulumi/zia";
    
    const example = zia.getTrafficForwardingStaticIP({
        ipAddress: "1.1.1.1",
    });
    
    import pulumi
    import pulumi_zia as zia
    
    example = zia.get_traffic_forwarding_static_ip(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.LookupTrafficForwardingStaticIP(ctx, &zia.LookupTrafficForwardingStaticIPArgs{
    			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.GetTrafficForwardingStaticIP.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.GetTrafficForwardingStaticIPArgs;
    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.getTrafficForwardingStaticIP(GetTrafficForwardingStaticIPArgs.builder()
                .ipAddress("1.1.1.1")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: zia:getTrafficForwardingStaticIP
          Arguments:
            ipAddress: 1.1.1.1
    

    Using getTrafficForwardingStaticIP

    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 getTrafficForwardingStaticIP(args: GetTrafficForwardingStaticIPArgs, opts?: InvokeOptions): Promise<GetTrafficForwardingStaticIPResult>
    function getTrafficForwardingStaticIPOutput(args: GetTrafficForwardingStaticIPOutputArgs, opts?: InvokeOptions): Output<GetTrafficForwardingStaticIPResult>
    def get_traffic_forwarding_static_ip(id: Optional[int] = None,
                                         ip_address: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetTrafficForwardingStaticIPResult
    def get_traffic_forwarding_static_ip_output(id: Optional[pulumi.Input[int]] = None,
                                         ip_address: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetTrafficForwardingStaticIPResult]
    func LookupTrafficForwardingStaticIP(ctx *Context, args *LookupTrafficForwardingStaticIPArgs, opts ...InvokeOption) (*LookupTrafficForwardingStaticIPResult, error)
    func LookupTrafficForwardingStaticIPOutput(ctx *Context, args *LookupTrafficForwardingStaticIPOutputArgs, opts ...InvokeOption) LookupTrafficForwardingStaticIPResultOutput

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

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

    The following arguments are supported:

    Id int
    The unique identifier for the static IP address
    IpAddress string
    The static IP address
    Id int
    The unique identifier for the static IP address
    IpAddress string
    The static IP address
    id Integer
    The unique identifier for the static IP address
    ipAddress String
    The static IP address
    id number
    The unique identifier for the static IP address
    ipAddress string
    The static IP address
    id int
    The unique identifier for the static IP address
    ip_address str
    The static IP address
    id Number
    The unique identifier for the static IP address
    ipAddress String
    The static IP address

    getTrafficForwardingStaticIP Result

    The following output properties are available:

    Cities List<zscaler.PulumiPackage.Zia.Outputs.GetTrafficForwardingStaticIPCity>
    Comment string
    (String) Additional information about this static IP address
    GeoOverride bool
    (Boolean) If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
    Id int
    (String) Identifier that uniquely identifies an entity
    IpAddress string
    (String) The static IP address
    LastModificationTime int
    (Number) When the static IP address was last modified
    LastModifiedBies List<zscaler.PulumiPackage.Zia.Outputs.GetTrafficForwardingStaticIPLastModifiedBy>
    (Set of Object)
    Latitude double
    (Number) Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
    Longitude double
    (Number) Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
    ManagedBies List<zscaler.PulumiPackage.Zia.Outputs.GetTrafficForwardingStaticIPManagedBy>
    (Set of Object)
    RoutableIp bool
    (Boolean) Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
    Cities []GetTrafficForwardingStaticIPCity
    Comment string
    (String) Additional information about this static IP address
    GeoOverride bool
    (Boolean) If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
    Id int
    (String) Identifier that uniquely identifies an entity
    IpAddress string
    (String) The static IP address
    LastModificationTime int
    (Number) When the static IP address was last modified
    LastModifiedBies []GetTrafficForwardingStaticIPLastModifiedBy
    (Set of Object)
    Latitude float64
    (Number) Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
    Longitude float64
    (Number) Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
    ManagedBies []GetTrafficForwardingStaticIPManagedBy
    (Set of Object)
    RoutableIp bool
    (Boolean) Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
    cities List<GetTrafficForwardingStaticIPCity>
    comment String
    (String) Additional information about this static IP address
    geoOverride Boolean
    (Boolean) If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
    id Integer
    (String) Identifier that uniquely identifies an entity
    ipAddress String
    (String) The static IP address
    lastModificationTime Integer
    (Number) When the static IP address was last modified
    lastModifiedBies List<GetTrafficForwardingStaticIPLastModifiedBy>
    (Set of Object)
    latitude Double
    (Number) Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
    longitude Double
    (Number) Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
    managedBies List<GetTrafficForwardingStaticIPManagedBy>
    (Set of Object)
    routableIp Boolean
    (Boolean) Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
    cities GetTrafficForwardingStaticIPCity[]
    comment string
    (String) Additional information about this static IP address
    geoOverride boolean
    (Boolean) If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
    id number
    (String) Identifier that uniquely identifies an entity
    ipAddress string
    (String) The static IP address
    lastModificationTime number
    (Number) When the static IP address was last modified
    lastModifiedBies GetTrafficForwardingStaticIPLastModifiedBy[]
    (Set of Object)
    latitude number
    (Number) Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
    longitude number
    (Number) Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
    managedBies GetTrafficForwardingStaticIPManagedBy[]
    (Set of Object)
    routableIp boolean
    (Boolean) Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
    cities Sequence[GetTrafficForwardingStaticIPCity]
    comment str
    (String) Additional information about this static IP address
    geo_override bool
    (Boolean) If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
    id int
    (String) Identifier that uniquely identifies an entity
    ip_address str
    (String) The static IP address
    last_modification_time int
    (Number) When the static IP address was last modified
    last_modified_bies Sequence[GetTrafficForwardingStaticIPLastModifiedBy]
    (Set of Object)
    latitude float
    (Number) Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
    longitude float
    (Number) Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
    managed_bies Sequence[GetTrafficForwardingStaticIPManagedBy]
    (Set of Object)
    routable_ip bool
    (Boolean) Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.
    cities List<Property Map>
    comment String
    (String) Additional information about this static IP address
    geoOverride Boolean
    (Boolean) If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
    id Number
    (String) Identifier that uniquely identifies an entity
    ipAddress String
    (String) The static IP address
    lastModificationTime Number
    (Number) When the static IP address was last modified
    lastModifiedBies List<Property Map>
    (Set of Object)
    latitude Number
    (Number) Required only if the geoOverride attribute is set. Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees.
    longitude Number
    (Number) Required only if the geoOverride attribute is set. Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees.
    managedBies List<Property Map>
    (Set of Object)
    routableIp Boolean
    (Boolean) Indicates whether a non-RFC 1918 IP address is publicly routable. This attribute is ignored if there is no ZIA Private Service Edge associated to the organization.

    Supporting Types

    GetTrafficForwardingStaticIPCity

    Id int
    The unique identifier for the static IP address
    Name string
    (String) The configured name of the entity
    Id int
    The unique identifier for the static IP address
    Name string
    (String) The configured name of the entity
    id Integer
    The unique identifier for the static IP address
    name String
    (String) The configured name of the entity
    id number
    The unique identifier for the static IP address
    name string
    (String) The configured name of the entity
    id int
    The unique identifier for the static IP address
    name str
    (String) The configured name of the entity
    id Number
    The unique identifier for the static IP address
    name String
    (String) The configured name of the entity

    GetTrafficForwardingStaticIPLastModifiedBy

    Extensions Dictionary<string, string>
    (Map of String)
    Id int
    The unique identifier for the static IP address
    Name string
    (String) The configured name of the entity
    Extensions map[string]string
    (Map of String)
    Id int
    The unique identifier for the static IP address
    Name string
    (String) The configured name of the entity
    extensions Map<String,String>
    (Map of String)
    id Integer
    The unique identifier for the static IP address
    name String
    (String) The configured name of the entity
    extensions {[key: string]: string}
    (Map of String)
    id number
    The unique identifier for the static IP address
    name string
    (String) The configured name of the entity
    extensions Mapping[str, str]
    (Map of String)
    id int
    The unique identifier for the static IP address
    name str
    (String) The configured name of the entity
    extensions Map<String>
    (Map of String)
    id Number
    The unique identifier for the static IP address
    name String
    (String) The configured name of the entity

    GetTrafficForwardingStaticIPManagedBy

    Id int
    The unique identifier for the static IP address
    Name string
    (String) The configured name of the entity
    Id int
    The unique identifier for the static IP address
    Name string
    (String) The configured name of the entity
    id Integer
    The unique identifier for the static IP address
    name String
    (String) The configured name of the entity
    id number
    The unique identifier for the static IP address
    name string
    (String) The configured name of the entity
    id int
    The unique identifier for the static IP address
    name str
    (String) The configured name of the entity
    id Number
    The unique identifier for the static IP address
    name String
    (String) The configured name of the entity

    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.7 published on Tuesday, Jul 30, 2024 by Zscaler