The zia_traffic_forwarding_static_ip resource allows the creation and management of static IP addresses in the Zscaler Internet Access cloud. The resource can then be associated with other resources such as:
- VPN Credentials of type
IP - Location Management
- GRE Tunnel
π― Automatic Coordinate Determination (v4.6.2+)
Starting with version 4.6.2, the provider automatically determines latitude and longitude coordinates from the IP address, even when geo_override </span>= true. This means:
- β No manual coordinate lookups - Provider handles it automatically
- β No drift issues - State always contains exact API values
- β
Simpler configuration - Omit
latitudeandlongitudefor automatic determination - β Fully backward compatible - Explicit coordinates still work if provided
In short: You can now use geo_override </span>= true without specifying coordinates! See examples below.
Example Usage
Example 1: Auto-Determined Coordinates (Recommended)
# ZIA Traffic Forwarding - Static IP
# The provider automatically determines latitude and longitude from the IP address
resource "zia_traffic_forwarding_static_ip" "example"{
ip_address = "122.164.82.249"
routable_ip = true
comment = "Static IP with auto-determined coordinates"
geo_override = true
# latitude and longitude are omitted - provider will auto-determine them
# State will be populated with exact API values (e.g., latitude=13.0895, longitude=80.2739)
}
Example 2: User-Specified Coordinates (Optional)
# You can still explicitly provide coordinates if needed
resource "zia_traffic_forwarding_static_ip" "custom_location"{
ip_address = "1.1.1.1"
routable_ip = true
comment = "Static IP with custom coordinates"
geo_override = true
latitude = -36.848461
longitude = 174.763336
}
Example 3: Automatic Geolocation (geo_override = false)
# When geo_override is false or omitted, all geo information is auto-determined
resource "zia_traffic_forwarding_static_ip" "auto_geo"{
ip_address = "8.8.8.8"
routable_ip = true
comment = "Fully automatic geolocation"
# geo_override defaults to false
# latitude and longitude auto-determined and populated in state
}
How Latitude and Longitude Are Determined
The provider handles coordinates intelligently based on your configuration:
When geo_override </span>= false (or omitted)
- β Provider behavior: Latitude and longitude are automatically determined by the ZIA API based on the IP address
- β State file: Will contain the API-determined coordinates
- β User action: None required - fully automatic
When geo_override </span>= true WITHOUT coordinates
- β
Provider behavior:
- Creates the static IP with
geo_override </span>= falsefirst - Retrieves the auto-determined coordinates from the API
- Updates the static IP with
geo_override </span>= trueusing those coordinates
- Creates the static IP with
- β State file: Will contain the auto-determined coordinates
- β User action: None required - provider handles it automatically
- β
Result: You get
geo_override </span>= truewithout manually looking up coordinates
When geo_override </span>= true WITH coordinates
- β Provider behavior: Uses your specified coordinates
- β State file: Will contain the exact values returned by the API (may have minor precision adjustments)
- β
User action: Provide
latitudeandlongitudevalues - β Result: Your custom coordinates are used
Key Benefits
- π― No drift issues - State always contains exact API values
- π― No manual lookups - API determines accurate coordinates from IP
- π― Flexible - Can override coordinates when needed
- π― Always accurate - Coordinates match the IP address geolocation
Common Use Cases
Use Case 1: GRE Tunnel with Auto-Determined Coordinates
# Create static IP without specifying coordinates
resource "zia_traffic_forwarding_static_ip" "gre_endpoint" {
ip_address = "203.0.113.10"
routable_ip = true
comment = "GRE tunnel endpoint"
geo_override = true
}
# Use the static IP with GRE VIP recommendation
data "zia_traffic_forwarding_gre_vip_recommended_list" "vips" {
source_ip = zia_traffic_forwarding_static_ip.gre_endpoint.ip_address
required_count = 2
}
# Create GRE tunnel
resource "zia_traffic_forwarding_gre_tunnel" "main" {
source_ip = zia_traffic_forwarding_static_ip.gre_endpoint.ip_address
comment = "Main GRE tunnel"
within_country = false
ip_unnumbered = false
primary_dest_vip {
datacenter = data.zia_traffic_forwarding_gre_vip_recommended_list.vips.list[0].datacenter
id = data.zia_traffic_forwarding_gre_vip_recommended_list.vips.list[0].id
virtual_ip = data.zia_traffic_forwarding_gre_vip_recommended_list.vips.list[0].virtual_ip
}
secondary_dest_vip {
datacenter = data.zia_traffic_forwarding_gre_vip_recommended_list.vips.list[1].datacenter
id = data.zia_traffic_forwarding_gre_vip_recommended_list.vips.list[1].id
virtual_ip = data.zia_traffic_forwarding_gre_vip_recommended_list.vips.list[1].virtual_ip
}
}
# Output showing auto-determined coordinates
output "static_ip_coordinates" {
value = {
ip = zia_traffic_forwarding_static_ip.gre_endpoint.ip_address
latitude = zia_traffic_forwarding_static_ip.gre_endpoint.latitude
longitude = zia_traffic_forwarding_static_ip.gre_endpoint.longitude
}
}
Use Case 2: Multiple Static IPs with<span pulumi-lang-nodejs=" forEach
" pulumi-lang-dotnet=" ForEach " pulumi-lang-go=" forEach " pulumi-lang-python=" for_each " pulumi-lang-yaml=" forEach " pulumi-lang-java=" forEach “> for_each
locals {
office_ips = {
mumbai = "103.21.244.1"
chennai = "122.164.82.249"
singapore = "203.0.113.50"
tokyo = "203.0.113.100"
}
}
# Create multiple static IPs without specifying coordinates
resource "zia_traffic_forwarding_static_ip" "offices" {
for_each = local.office_ips
ip_address = each.value
routable_ip = true
comment = "Office in ${each.key}"
geo_override = true
# No coordinates specified for any of them!
# Provider auto-determines all coordinates
}
# Output all coordinates
output "office_coordinates" {
value = {
for name, ip in zia_traffic_forwarding_static_ip.offices :
name => {
ip_address = ip.ip_address
latitude = ip.latitude
longitude = ip.longitude
}
}
}
Use Case 3: VPN Credentials Integration
# Static IP with auto-determined coordinates
resource "zia_traffic_forwarding_static_ip" "vpn_endpoint" {
ip_address = "198.51.100.25"
routable_ip = true
comment = "VPN endpoint"
geo_override = true
}
# VPN credentials using the static IP
resource "zia_traffic_forwarding_vpn_credentials" "branch_office" {
type = "IP"
ip_address = zia_traffic_forwarding_static_ip.vpn_endpoint.ip_address
comments = "Branch office VPN"
}
Frequently Asked Questions (FAQ)
Q: Do I need to specify latitude and longitude when using geo_override = true?
A: No! The provider will automatically determine coordinates from the IP address if you don’t provide them. This is the recommended approach to avoid drift issues.
Q: What if I want to use specific coordinates?
A: You can still provide latitude and longitude explicitly. The provider will use your values if provided.
Q: Will there be drift if I don’t specify coordinates?
A: No! The state file will contain the exact coordinates returned by the ZIA API. Subsequent pulumi preview commands will show no changes.
Q: What happens if I provide coordinates that don’t match the IP location?
A: The API will accept your coordinates, but they may be adjusted for precision. The state file will always reflect the actual API response values.
Q: Can I change from auto-determined to custom coordinates later?
A: Yes! Simply add latitude and longitude to your configuration and run pulumi up. The provider will update the static IP with your custom coordinates.
Q: What precision does the API use for coordinates?
A: The API typically returns 4-7 decimal places depending on the IP location. The provider stores these exact values without rounding.
Q: Why does my state show geo_override = true but I didn’t set it?
A: The geo_override attribute has Computed: true, meaning it’s populated from the API response. The API may set it based on other factors.
Troubleshooting
Error: “Missing geo Coordinates”
This error should no longer occur with the updated provider. If you still see it:
- Ensure you’re using provider version 4.6.2 or later
- Check if coordinates are being populated:
terraform state show zia_traffic_forwarding_static_ip.<name> - Enable debug logging:
export TF_LOG=DEBUGand check for auto-population messages
Unexpected Drift Detected
If pulumi preview shows coordinate changes:
- Solution: Remove explicit
latitudeandlongitudefrom your configuration - Reason: API values may differ slightly from user-provided values due to precision
- After removal: Run
pulumi uponce - state will sync with API values - Future plans: Will show no changes
Coordinates Not in Expected Location
The coordinates reflect the IP address’s actual geolocation as determined by Zscaler’s geolocation database. If you need different coordinates:
- Set
geo_override </span>= true - Provide your desired
latitudeandlongitudeexplicitly - The API will use your values
Best Practices
β Recommended: Let the Provider Auto-Determine Coordinates
resource "zia_traffic_forwarding_static_ip" "best_practice" {
ip_address = "203.0.113.10"
routable_ip = true
comment = "Production endpoint"
geo_override = true
# Omit latitude and longitude
# Provider will auto-determine accurate coordinates
# No drift, no manual lookups, always accurate
}
Why this is recommended:
- β No manual coordinate lookups required
- β Zero drift - state always matches API
- β Accurate - API knows the correct geolocation for each IP
- β Maintainable - no hardcoded coordinates to update
β οΈ Use Custom Coordinates Only When Necessary
Only provide explicit coordinates if you have a specific requirement:
resource "zia_traffic_forwarding_static_ip" "custom" {
ip_address = "203.0.113.10"
routable_ip = true
comment = "Custom location for testing"
geo_override = true
latitude = 40.7128 # Only if you need specific coordinates
longitude = -74.0060 # Only if you need specific coordinates
}
When to use custom coordinates:
- Testing with specific geographic locations
- Compliance requirements for specific geo-coordinates
- Override API’s geolocation database for special cases
Migration Guide for Existing Users
If you’re upgrading from an older provider version (< 4.6.2), you may have configurations like this:
Old Configuration (Still Works, But Not Recommended)
resource "zia_traffic_forwarding_static_ip" "old_style" {
ip_address = "122.164.82.249"
routable_ip = true
comment = "Old configuration"
geo_override = true
latitude = 13.0895 # Manually specified
longitude = 80.2739 # Manually specified
}
Migrating to New Approach (Recommended)
Step 1: Remove latitude and longitude from your configuration
resource "zia_traffic_forwarding_static_ip" "old_style" {
ip_address = "122.164.82.249"
routable_ip = true
comment = "Migrated configuration"
geo_override = true
# Removed: latitude and longitude
}
Step 2: Run pulumi preview
pulumi preview
You’ll see Terraform wants to update the resource (to remove explicitly set coordinates from state).
Step 3: Apply the changes
pulumi up
The provider will:
- Keep the same static IP (no destruction)
- Auto-determine coordinates from the IP
- Update state with API values
- No infrastructure change - just cleaner config!
Step 4: Verify no drift
pulumi preview
# Expected: No changes. Your infrastructure matches the configuration.
Migration Example: Full Before/After
Before Migration:
# β Old way - manual coordinates required
resource "zia_traffic_forwarding_static_ip" "chennai" {
ip_address = "122.164.82.249"
routable_ip = true
comment = "Chennai office"
geo_override = true
latitude = 13.0895 # Had to look this up
longitude = 80.2739 # Had to look this up
}
resource "zia_traffic_forwarding_static_ip" "mumbai" {
ip_address = "103.21.244.1"
routable_ip = true
comment = "Mumbai office"
geo_override = true
latitude = 19.0760 # Had to look this up
longitude = 72.8777 # Had to look this up
}
After Migration:
# β
New way - auto-determined coordinates
resource "zia_traffic_forwarding_static_ip" "chennai" {
ip_address = "122.164.82.249"
routable_ip = true
comment = "Chennai office"
geo_override = true
# No coordinates needed!
}
resource "zia_traffic_forwarding_static_ip" "mumbai" {
ip_address = "103.21.244.1"
routable_ip = true
comment = "Mumbai office"
geo_override = true
# No coordinates needed!
}
Migration Impact:
- Configuration: 8 lines removed (cleaner)
- API calls: No additional overhead after migration
- Drift: Eliminated
- Maintenance: Easier
Create TrafficForwardingStaticIP Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TrafficForwardingStaticIP(name: string, args: TrafficForwardingStaticIPArgs, opts?: CustomResourceOptions);@overload
def TrafficForwardingStaticIP(resource_name: str,
args: TrafficForwardingStaticIPArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TrafficForwardingStaticIP(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip_address: Optional[str] = None,
comment: Optional[str] = None,
geo_override: Optional[bool] = None,
latitude: Optional[float] = None,
longitude: Optional[float] = None,
routable_ip: Optional[bool] = None)func NewTrafficForwardingStaticIP(ctx *Context, name string, args TrafficForwardingStaticIPArgs, opts ...ResourceOption) (*TrafficForwardingStaticIP, error)public TrafficForwardingStaticIP(string name, TrafficForwardingStaticIPArgs args, CustomResourceOptions? opts = null)
public TrafficForwardingStaticIP(String name, TrafficForwardingStaticIPArgs args)
public TrafficForwardingStaticIP(String name, TrafficForwardingStaticIPArgs args, CustomResourceOptions options)
type: zia:TrafficForwardingStaticIP
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 TrafficForwardingStaticIPArgs
- 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 TrafficForwardingStaticIPArgs
- 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 TrafficForwardingStaticIPArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TrafficForwardingStaticIPArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TrafficForwardingStaticIPArgs
- 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 trafficForwardingStaticIPResource = new Zia.TrafficForwardingStaticIP("trafficForwardingStaticIPResource", new()
{
IpAddress = "string",
Comment = "string",
GeoOverride = false,
Latitude = 0,
Longitude = 0,
RoutableIp = false,
});
example, err := zia.NewTrafficForwardingStaticIP(ctx, "trafficForwardingStaticIPResource", &zia.TrafficForwardingStaticIPArgs{
IpAddress: pulumi.String("string"),
Comment: pulumi.String("string"),
GeoOverride: pulumi.Bool(false),
Latitude: pulumi.Float64(0),
Longitude: pulumi.Float64(0),
RoutableIp: pulumi.Bool(false),
})
var trafficForwardingStaticIPResource = new TrafficForwardingStaticIP("trafficForwardingStaticIPResource", TrafficForwardingStaticIPArgs.builder()
.ipAddress("string")
.comment("string")
.geoOverride(false)
.latitude(0.0)
.longitude(0.0)
.routableIp(false)
.build());
traffic_forwarding_static_ip_resource = zia.TrafficForwardingStaticIP("trafficForwardingStaticIPResource",
ip_address="string",
comment="string",
geo_override=False,
latitude=0,
longitude=0,
routable_ip=False)
const trafficForwardingStaticIPResource = new zia.TrafficForwardingStaticIP("trafficForwardingStaticIPResource", {
ipAddress: "string",
comment: "string",
geoOverride: false,
latitude: 0,
longitude: 0,
routableIp: false,
});
type: zia:TrafficForwardingStaticIP
properties:
comment: string
geoOverride: false
ipAddress: string
latitude: 0
longitude: 0
routableIp: false
TrafficForwardingStaticIP 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 TrafficForwardingStaticIP resource accepts the following input properties:
- Ip
Address string - The static IP address
- Comment string
- Additional information about this static IP address
- Geo
Override bool - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- Latitude double
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- Longitude double
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- Routable
Ip bool - 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.
- Ip
Address string - The static IP address
- Comment string
- Additional information about this static IP address
- Geo
Override bool - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- Latitude float64
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- Longitude float64
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- Routable
Ip bool - 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.
- ip
Address String - The static IP address
- comment String
- Additional information about this static IP address
- geo
Override Boolean - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- latitude Double
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- longitude Double
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- routable
Ip 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.
- ip
Address string - The static IP address
- comment string
- Additional information about this static IP address
- geo
Override boolean - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- latitude number
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- longitude number
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- routable
Ip 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.
- ip_
address str - The static IP address
- comment str
- Additional information about this static IP address
- geo_
override bool - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- latitude float
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- longitude float
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- routable_
ip bool - 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.
- ip
Address String - The static IP address
- comment String
- Additional information about this static IP address
- geo
Override Boolean - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- latitude Number
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- longitude Number
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- routable
Ip 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the TrafficForwardingStaticIP resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Static
Ip intId - The ID of the Static IP.
- Id string
- The provider-assigned unique ID for this managed resource.
- Static
Ip intId - The ID of the Static IP.
- id String
- The provider-assigned unique ID for this managed resource.
- static
Ip IntegerId - The ID of the Static IP.
- id string
- The provider-assigned unique ID for this managed resource.
- static
Ip numberId - The ID of the Static IP.
- id str
- The provider-assigned unique ID for this managed resource.
- static_
ip_ intid - The ID of the Static IP.
- id String
- The provider-assigned unique ID for this managed resource.
- static
Ip NumberId - The ID of the Static IP.
Look up Existing TrafficForwardingStaticIP Resource
Get an existing TrafficForwardingStaticIP 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?: TrafficForwardingStaticIPState, opts?: CustomResourceOptions): TrafficForwardingStaticIP@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
geo_override: Optional[bool] = None,
ip_address: Optional[str] = None,
latitude: Optional[float] = None,
longitude: Optional[float] = None,
routable_ip: Optional[bool] = None,
static_ip_id: Optional[int] = None) -> TrafficForwardingStaticIPfunc GetTrafficForwardingStaticIP(ctx *Context, name string, id IDInput, state *TrafficForwardingStaticIPState, opts ...ResourceOption) (*TrafficForwardingStaticIP, error)public static TrafficForwardingStaticIP Get(string name, Input<string> id, TrafficForwardingStaticIPState? state, CustomResourceOptions? opts = null)public static TrafficForwardingStaticIP get(String name, Output<String> id, TrafficForwardingStaticIPState state, CustomResourceOptions options)resources: _: type: zia:TrafficForwardingStaticIP get: id: ${id}- 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 static IP address
- Geo
Override bool - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- Ip
Address string - The static IP address
- Latitude double
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- Longitude double
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- Routable
Ip bool - 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.
- Static
Ip intId - The ID of the Static IP.
- Comment string
- Additional information about this static IP address
- Geo
Override bool - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- Ip
Address string - The static IP address
- Latitude float64
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- Longitude float64
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- Routable
Ip bool - 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.
- Static
Ip intId - The ID of the Static IP.
- comment String
- Additional information about this static IP address
- geo
Override Boolean - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- ip
Address String - The static IP address
- latitude Double
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- longitude Double
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- routable
Ip 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.
- static
Ip IntegerId - The ID of the Static IP.
- comment string
- Additional information about this static IP address
- geo
Override boolean - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- ip
Address string - The static IP address
- latitude number
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- longitude number
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- routable
Ip 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.
- static
Ip numberId - The ID of the Static IP.
- comment str
- Additional information about this static IP address
- geo_
override bool - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- ip_
address str - The static IP address
- latitude float
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- longitude float
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- routable_
ip bool - 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.
- static_
ip_ intid - The ID of the Static IP.
- comment String
- Additional information about this static IP address
- geo
Override Boolean - If not set, geographic coordinates and city are automatically determined from the IP address. Otherwise, the latitude and longitude coordinates must be provided.
- ip
Address String - The static IP address
- latitude Number
- Latitude with 7 digit precision after decimal point, ranges between -90 and 90 degrees. If not provided, the API will automatically determine it from the IP address.
- longitude Number
- Longitude with 7 digit precision after decimal point, ranges between -180 and 180 degrees. If not provided, the API will automatically determine it from the IP address.
- routable
Ip 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.
- static
Ip NumberId - The ID of the Static IP.
Import
Zscaler offers a dedicated tool called Zscaler-Terraformer to allow the automated import of ZIA configurations into Terraform-compliant HashiCorp Configuration Language. Visit
Static IP resources can be imported by using <STATIC IP ID> or <IP ADDRESS> as the import ID.
Import by Static IP ID
$ pulumi import zia:index/trafficForwardingStaticIP:TrafficForwardingStaticIP example <static_ip_id>
Example:
$ pulumi import zia:index/trafficForwardingStaticIP:TrafficForwardingStaticIP chennai 3030759
Import by IP Address
$ pulumi import zia:index/trafficForwardingStaticIP:TrafficForwardingStaticIP example <ip_address>
Example:
$ pulumi import zia:index/trafficForwardingStaticIP:TrafficForwardingStaticIP chennai 122.164.82.249
After Import:
- The state will include all attributes including latitude and longitude
- You can omit coordinates from your configuration - state will remain accurate
- Run
pulumi previewto see what configuration should look like
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- zia zscaler/pulumi-zia
- License
- MIT
- Notes
- This Pulumi package is based on the
ziaTerraform Provider.
