Get started with Pulumi in a free one hour introductory workshop. Register Now

GetNetworkingIp

Provides information about a Linode Networking IP Address

Attributes

The Linode Network IP Address resource exports the following attributes:

  • address - The IP address.

  • gateway - The default gateway for this address.

  • subnet_mask - The mask that separates host bits from network bits for this address.

  • prefix - The number of bits set in the subnet mask.

  • type - The type of address this is (ipv4, ipv6, ipv6/pool, ipv6/range).

  • public - Whether this is a public or private IP address.

  • rdns - 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.

  • linode_id - The ID of the Linode this address currently belongs to.

  • region - The Region this IP address resides in.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var ns1LinodeCom = Output.Create(Linode.GetNetworkingIp.InvokeAsync(new Linode.GetNetworkingIpArgs
        {
            Address = "162.159.27.72",
        }));
    }

}
package main

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

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := linode.GetNetworkingIp(ctx, &linode.GetNetworkingIpArgs{
            Address: "162.159.27.72",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_linode as linode

ns1_linode_com = linode.get_networking_ip(address="162.159.27.72")
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const ns1LinodeCom = pulumi.output(linode.getNetworkingIp({
    address: "162.159.27.72",
}, { async: true }));

Using GetNetworkingIp

function getNetworkingIp(args: GetNetworkingIpArgs, opts?: InvokeOptions): Promise<GetNetworkingIpResult>
def get_networking_ip(address: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetNetworkingIpResult
func GetNetworkingIp(ctx *Context, args *GetNetworkingIpArgs, opts ...InvokeOption) (*GetNetworkingIpResult, error)
public static class GetNetworkingIp {
    public static Task<GetNetworkingIpResult> InvokeAsync(GetNetworkingIpArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Address 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 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 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 str

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
Gateway string
Id string

The provider-assigned unique ID for this managed resource.

LinodeId int
Prefix int
Public bool
Rdns string
Region string
SubnetMask string
Type string
Address string
Gateway string
Id string

The provider-assigned unique ID for this managed resource.

LinodeId int
Prefix int
Public bool
Rdns string
Region string
SubnetMask string
Type string
address string
gateway string
id string

The provider-assigned unique ID for this managed resource.

linodeId number
prefix number
public boolean
rdns string
region string
subnetMask string
type string
address str
gateway str
id str

The provider-assigned unique ID for this managed resource.

linode_id int
prefix int
public bool
rdns str
region str
subnet_mask str
type str

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.