Linode
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. See all regions here.
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/v3/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetNetworkingIp(ctx, &GetNetworkingIpArgs{
Address: "162.159.27.72",
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
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",
}));
Coming soon!
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>
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]
func GetNetworkingIp(ctx *Context, args *GetNetworkingIpArgs, opts ...InvokeOption) (*GetNetworkingIpResult, error)
func GetNetworkingIpOutput(ctx *Context, args *GetNetworkingIpOutputArgs, opts ...InvokeOption) GetNetworkingIpResultOutput
> Note: This function is named GetNetworkingIp
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)
}
public static CompletableFuture<GetNetworkingIpResult> getNetworkingIp(GetNetworkingIpArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: linode:index/getNetworkingIp:getNetworkingIp
Arguments:
# Arguments dictionary
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 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.
- 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.
getNetworkingIp Result
The following output properties are available:
Package Details
- Repository
- https://github.com/pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
linode
Terraform Provider.