1. Packages
  2. Linode Provider
  3. API Docs
  4. getNetworkingIp
Linode v4.37.0 published on Thursday, Apr 10, 2025 by Pulumi

linode.getNetworkingIp

Explore with Pulumi AI

Linode v4.37.0 published on Thursday, Apr 10, 2025 by Pulumi

Provides information about a Linode Networking IP Address For more information, see the Linode APIv4 docs.

Example Usage

The following example shows how one might use this data source to access information about a Linode Networking IP Address.

import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const ns1LinodeCom = linode.getNetworkingIp({
    address: "162.159.27.72",
});
Copy
import pulumi
import pulumi_linode as linode

ns1_linode_com = linode.get_networking_ip(address="162.159.27.72")
Copy
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.LookupNetworkingIp(ctx, &linode.LookupNetworkingIpArgs{
			Address: "162.159.27.72",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;

return await Deployment.RunAsync(() => 
{
    var ns1LinodeCom = Linode.GetNetworkingIp.Invoke(new()
    {
        Address = "162.159.27.72",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetNetworkingIpArgs;
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 ns1LinodeCom = LinodeFunctions.getNetworkingIp(GetNetworkingIpArgs.builder()
            .address("162.159.27.72")
            .build());

    }
}
Copy
variables:
  ns1LinodeCom:
    fn::invoke:
      function: linode:getNetworkingIp
      arguments:
        address: 162.159.27.72
Copy

Using getNetworkingIp

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 getNetworkingIp(args: GetNetworkingIpArgs, opts?: InvokeOptions): Promise<GetNetworkingIpResult>
function getNetworkingIpOutput(args: GetNetworkingIpOutputArgs, opts?: InvokeOptions): Output<GetNetworkingIpResult>
Copy
def get_networking_ip(address: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetNetworkingIpResult
def get_networking_ip_output(address: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingIpResult]
Copy
func LookupNetworkingIp(ctx *Context, args *LookupNetworkingIpArgs, opts ...InvokeOption) (*LookupNetworkingIpResult, error)
func LookupNetworkingIpOutput(ctx *Context, args *LookupNetworkingIpOutputArgs, opts ...InvokeOption) LookupNetworkingIpResultOutput
Copy

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

public static class GetNetworkingIp 
{
    public static Task<GetNetworkingIpResult> InvokeAsync(GetNetworkingIpArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkingIpResult> Invoke(GetNetworkingIpInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetNetworkingIpResult> getNetworkingIp(GetNetworkingIpArgs args, InvokeOptions options)
public static Output<GetNetworkingIpResult> getNetworkingIp(GetNetworkingIpArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: linode:index/getNetworkingIp:getNetworkingIp
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Address This property is required. string
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
Address This property is required. string
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
address This property is required. String
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
address This property is required. string
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
address This property is required. str
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
address This property is required. String
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.

getNetworkingIp Result

The following output properties are available:

Address string
The IPv4 address that is configured as a 1:1 NAT for this VPC interface.
Gateway string
The default gateway for this address.
Id string
LinodeId int
The ID of the Linode this address currently belongs to.
Prefix int
The number of bits set in the subnet mask.
Public bool
Whether this is a public or private IP address.
Rdns string
The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.
Region string
The Region this IP address resides in. See all regions here.
Reserved bool
Whether this IP address is a reserved IP.
SubnetMask string
The mask that separates host bits from network bits for this address.
Type string
The type of address this is (ipv4, ipv6, ipv6/pool, ipv6/range).
VpcNat11 GetNetworkingIpVpcNat11
Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
Address string
The IPv4 address that is configured as a 1:1 NAT for this VPC interface.
Gateway string
The default gateway for this address.
Id string
LinodeId int
The ID of the Linode this address currently belongs to.
Prefix int
The number of bits set in the subnet mask.
Public bool
Whether this is a public or private IP address.
Rdns string
The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.
Region string
The Region this IP address resides in. See all regions here.
Reserved bool
Whether this IP address is a reserved IP.
SubnetMask string
The mask that separates host bits from network bits for this address.
Type string
The type of address this is (ipv4, ipv6, ipv6/pool, ipv6/range).
VpcNat11 GetNetworkingIpVpcNat11
Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
address String
The IPv4 address that is configured as a 1:1 NAT for this VPC interface.
gateway String
The default gateway for this address.
id String
linodeId Integer
The ID of the Linode this address currently belongs to.
prefix Integer
The number of bits set in the subnet mask.
public_ Boolean
Whether this is a public or private IP address.
rdns String
The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.
region String
The Region this IP address resides in. See all regions here.
reserved Boolean
Whether this IP address is a reserved IP.
subnetMask String
The mask that separates host bits from network bits for this address.
type String
The type of address this is (ipv4, ipv6, ipv6/pool, ipv6/range).
vpcNat11 GetNetworkingIpVpcNat11
Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
address string
The IPv4 address that is configured as a 1:1 NAT for this VPC interface.
gateway string
The default gateway for this address.
id string
linodeId number
The ID of the Linode this address currently belongs to.
prefix number
The number of bits set in the subnet mask.
public boolean
Whether this is a public or private IP address.
rdns string
The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.
region string
The Region this IP address resides in. See all regions here.
reserved boolean
Whether this IP address is a reserved IP.
subnetMask string
The mask that separates host bits from network bits for this address.
type string
The type of address this is (ipv4, ipv6, ipv6/pool, ipv6/range).
vpcNat11 GetNetworkingIpVpcNat11
Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
address str
The IPv4 address that is configured as a 1:1 NAT for this VPC interface.
gateway str
The default gateway for this address.
id str
linode_id int
The ID of the Linode this address currently belongs to.
prefix int
The number of bits set in the subnet mask.
public bool
Whether this is a public or private IP address.
rdns str
The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.
region str
The Region this IP address resides in. See all regions here.
reserved bool
Whether this IP address is a reserved IP.
subnet_mask str
The mask that separates host bits from network bits for this address.
type str
The type of address this is (ipv4, ipv6, ipv6/pool, ipv6/range).
vpc_nat11 GetNetworkingIpVpcNat11
Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
address String
The IPv4 address that is configured as a 1:1 NAT for this VPC interface.
gateway String
The default gateway for this address.
id String
linodeId Number
The ID of the Linode this address currently belongs to.
prefix Number
The number of bits set in the subnet mask.
public Boolean
Whether this is a public or private IP address.
rdns String
The reverse DNS assigned to this address. For public IPv4 addresses, this will be set to a default value provided by Linode if not explicitly set.
region String
The Region this IP address resides in. See all regions here.
reserved Boolean
Whether this IP address is a reserved IP.
subnetMask String
The mask that separates host bits from network bits for this address.
type String
The type of address this is (ipv4, ipv6, ipv6/pool, ipv6/range).
vpcNat11 Property Map
Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.

Supporting Types

GetNetworkingIpVpcNat11

Address This property is required. string
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
SubnetId This property is required. int
The id of the VPC Subnet for this Interface.
VpcId This property is required. int
The id of the VPC configured for this Interface.
Address This property is required. string
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
SubnetId This property is required. int
The id of the VPC Subnet for this Interface.
VpcId This property is required. int
The id of the VPC configured for this Interface.
address This property is required. String
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
subnetId This property is required. Integer
The id of the VPC Subnet for this Interface.
vpcId This property is required. Integer
The id of the VPC configured for this Interface.
address This property is required. string
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
subnetId This property is required. number
The id of the VPC Subnet for this Interface.
vpcId This property is required. number
The id of the VPC configured for this Interface.
address This property is required. str
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
subnet_id This property is required. int
The id of the VPC Subnet for this Interface.
vpc_id This property is required. int
The id of the VPC configured for this Interface.
address This property is required. String
The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
subnetId This property is required. Number
The id of the VPC Subnet for this Interface.
vpcId This property is required. Number
The id of the VPC configured for this Interface.

Package Details

Repository
Linode pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.
Linode v4.37.0 published on Thursday, Apr 10, 2025 by Pulumi