1. Packages
  2. Linode Provider
  3. API Docs
  4. getNetworkingIp
Linode v4.30.1 published on Thursday, Nov 21, 2024 by Pulumi

linode.getNetworkingIp

Explore with Pulumi AI

linode logo
Linode v4.30.1 published on Thursday, Nov 21, 2024 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",
    });
    
    import pulumi
    import pulumi_linode as linode
    
    ns1_linode_com = linode.get_networking_ip(address="162.159.27.72")
    
    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.GetNetworkingIp(ctx, &linode.GetNetworkingIpArgs{
    			Address: "162.159.27.72",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      ns1LinodeCom:
        fn::invoke:
          Function: linode:getNetworkingIp
          Arguments:
            address: 162.159.27.72
    

    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:

    Address string
    The IP address.
    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.
    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).
    Address string
    The IP address.
    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.
    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).
    address String
    The IP address.
    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.
    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).
    address string
    The IP address.
    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.
    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).
    address str
    The IP address.
    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.
    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).
    address String
    The IP address.
    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.
    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).

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo
    Linode v4.30.1 published on Thursday, Nov 21, 2024 by Pulumi