Provides information about all IP addresses associated with the current Linode account, including both assigned and unassigned reserved IP addresses.
Example Usage
Retrieve all IPs under the current account:
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const all = linode.getNetworkingIps({});
import pulumi
import pulumi_linode as linode
all = linode.get_networking_ips()
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v5/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetNetworkingIps(ctx, &linode.GetNetworkingIpsArgs{}, 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 all = Linode.GetNetworkingIps.Invoke();
});
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.GetNetworkingIpsArgs;
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 all = LinodeFunctions.getNetworkingIps(GetNetworkingIpsArgs.builder()
.build());
}
}
variables:
all:
fn::invoke:
function: linode:getNetworkingIps
arguments: {}
Retrieve all IPs under the current account in a specific region:
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const filtered = linode.getNetworkingIps({
filters: [{
name: "region",
values: ["us-mia"],
}],
});
import pulumi
import pulumi_linode as linode
filtered = linode.get_networking_ips(filters=[{
"name": "region",
"values": ["us-mia"],
}])
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v5/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetNetworkingIps(ctx, &linode.GetNetworkingIpsArgs{
Filters: []linode.GetNetworkingIpsFilter{
{
Name: "region",
Values: []string{
"us-mia",
},
},
},
}, 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 filtered = Linode.GetNetworkingIps.Invoke(new()
{
Filters = new[]
{
new Linode.Inputs.GetNetworkingIpsFilterInputArgs
{
Name = "region",
Values = new[]
{
"us-mia",
},
},
},
});
});
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.GetNetworkingIpsArgs;
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 filtered = LinodeFunctions.getNetworkingIps(GetNetworkingIpsArgs.builder()
.filters(GetNetworkingIpsFilterArgs.builder()
.name("region")
.values("us-mia")
.build())
.build());
}
}
variables:
filtered:
fn::invoke:
function: linode:getNetworkingIps
arguments:
filters:
- name: region
values:
- us-mia
Filterable Fields
addressgatewaysubnet_maskprefixtypepublicrdnslinode_idregionreserved
Using getNetworkingIps
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 getNetworkingIps(args: GetNetworkingIpsArgs, opts?: InvokeOptions): Promise<GetNetworkingIpsResult>
function getNetworkingIpsOutput(args: GetNetworkingIpsOutputArgs, opts?: InvokeOptions): Output<GetNetworkingIpsResult>def get_networking_ips(filters: Optional[Sequence[GetNetworkingIpsFilter]] = None,
ip_addresses: Optional[Sequence[GetNetworkingIpsIpAddress]] = None,
order: Optional[str] = None,
order_by: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkingIpsResult
def get_networking_ips_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetworkingIpsFilterArgs]]]] = None,
ip_addresses: Optional[pulumi.Input[Sequence[pulumi.Input[GetNetworkingIpsIpAddressArgs]]]] = None,
order: Optional[pulumi.Input[str]] = None,
order_by: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkingIpsResult]func GetNetworkingIps(ctx *Context, args *GetNetworkingIpsArgs, opts ...InvokeOption) (*GetNetworkingIpsResult, error)
func GetNetworkingIpsOutput(ctx *Context, args *GetNetworkingIpsOutputArgs, opts ...InvokeOption) GetNetworkingIpsResultOutput> Note: This function is named GetNetworkingIps in the Go SDK.
public static class GetNetworkingIps
{
public static Task<GetNetworkingIpsResult> InvokeAsync(GetNetworkingIpsArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkingIpsResult> Invoke(GetNetworkingIpsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkingIpsResult> getNetworkingIps(GetNetworkingIpsArgs args, InvokeOptions options)
public static Output<GetNetworkingIpsResult> getNetworkingIps(GetNetworkingIpsArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getNetworkingIps:getNetworkingIps
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Networking Ips Filter> - Ip
Addresses List<GetNetworking Ips Ip Address> - Order string
- The order in which results should be returned. (
asc,desc; defaultasc) - Order
By string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- Filters
[]Get
Networking Ips Filter - Ip
Addresses []GetNetworking Ips Ip Address - Order string
- The order in which results should be returned. (
asc,desc; defaultasc) - Order
By string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
List<Get
Networking Ips Filter> - ip
Addresses List<GetNetworking Ips Ip Address> - order String
- The order in which results should be returned. (
asc,desc; defaultasc) - order
By String - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
Get
Networking Ips Filter[] - ip
Addresses GetNetworking Ips Ip Address[] - order string
- The order in which results should be returned. (
asc,desc; defaultasc) - order
By string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
Sequence[Get
Networking Ips Filter] - ip_
addresses Sequence[GetNetworking Ips Ip Address] - order str
- The order in which results should be returned. (
asc,desc; defaultasc) - order_
by str - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters List<Property Map>
- ip
Addresses List<Property Map> - order String
- The order in which results should be returned. (
asc,desc; defaultasc) - order
By String - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
getNetworkingIps Result
The following output properties are available:
- Id string
- Filters
List<Get
Networking Ips Filter> - Ip
Addresses List<GetNetworking Ips Ip Address> - Order string
- Order
By string
- Id string
- Filters
[]Get
Networking Ips Filter - Ip
Addresses []GetNetworking Ips Ip Address - Order string
- Order
By string
- id String
- filters
List<Get
Networking Ips Filter> - ip
Addresses List<GetNetworking Ips Ip Address> - order String
- order
By String
- id string
- filters
Get
Networking Ips Filter[] - ip
Addresses GetNetworking Ips Ip Address[] - order string
- order
By string
- id String
- filters List<Property Map>
- ip
Addresses List<Property Map> - order String
- order
By String
Supporting Types
GetNetworkingIpsFilter
- Name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- Values List<string>
- A list of values for the filter to allow. These values should all be in string form.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- Name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- Values []string
- A list of values for the filter to allow. These values should all be in string form.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- name String
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values List<String>
- A list of values for the filter to allow. These values should all be in string form.
- match
By String - The method to match the field by. (
exact,regex,substring; defaultexact)
- name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values string[]
- A list of values for the filter to allow. These values should all be in string form.
- match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- name str
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values Sequence[str]
- A list of values for the filter to allow. These values should all be in string form.
- match_
by str - The method to match the field by. (
exact,regex,substring; defaultexact)
- name String
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values List<String>
- A list of values for the filter to allow. These values should all be in string form.
- match
By String - The method to match the field by. (
exact,regex,substring; defaultexact)
GetNetworkingIpsIpAddress
- 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.
- 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 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.
- Subnet
Mask 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).
- Vpc
Nat11 GetNetworking Ips Ip Address Vpc Nat11 - 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.
- 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 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.
- Subnet
Mask 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).
- Vpc
Nat11 GetNetworking Ips Ip Address Vpc Nat11 - 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.
- linode
Id 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.
- subnet
Mask 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).
- vpc
Nat11 GetNetworking Ips Ip Address Vpc Nat11 - 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.
- linode
Id 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.
- subnet
Mask 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).
- vpc
Nat11 GetNetworking Ips Ip Address Vpc Nat11 - 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.
- 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 GetNetworking Ips Ip Address Vpc Nat11 - 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.
- linode
Id 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.
- subnet
Mask 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).
- vpc
Nat11 Property Map - Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
GetNetworkingIpsIpAddressVpcNat11
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
