@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
146 lines (145 loc) • 3.65 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "./types/input";
import * as outputs from "./types/output";
/**
* 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:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const all = linode.getNetworkingIps({});
* ```
*
* Retrieve all IPs under the current account in a specific region:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const filtered = linode.getNetworkingIps({
* filters: [{
* name: "region",
* values: ["us-mia"],
* }],
* });
* ```
*
* ## Filterable Fields
*
* * `address`
*
* * `gateway`
*
* * `subnetMask`
*
* * `prefix`
*
* * `type`
*
* * `public`
*
* * `rdns`
*
* * `linodeId`
*
* * `region`
*
* * `reserved`
*/
export declare function getNetworkingIps(args?: GetNetworkingIpsArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkingIpsResult>;
/**
* A collection of arguments for invoking getNetworkingIps.
*/
export interface GetNetworkingIpsArgs {
filters?: inputs.GetNetworkingIpsFilter[];
ipAddresses?: inputs.GetNetworkingIpsIpAddress[];
/**
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
*/
order?: string;
/**
* The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
*/
orderBy?: string;
}
/**
* A collection of values returned by getNetworkingIps.
*/
export interface GetNetworkingIpsResult {
readonly filters?: outputs.GetNetworkingIpsFilter[];
readonly id: string;
readonly ipAddresses?: outputs.GetNetworkingIpsIpAddress[];
readonly order?: string;
readonly orderBy?: string;
}
/**
* 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:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const all = linode.getNetworkingIps({});
* ```
*
* Retrieve all IPs under the current account in a specific region:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const filtered = linode.getNetworkingIps({
* filters: [{
* name: "region",
* values: ["us-mia"],
* }],
* });
* ```
*
* ## Filterable Fields
*
* * `address`
*
* * `gateway`
*
* * `subnetMask`
*
* * `prefix`
*
* * `type`
*
* * `public`
*
* * `rdns`
*
* * `linodeId`
*
* * `region`
*
* * `reserved`
*/
export declare function getNetworkingIpsOutput(args?: GetNetworkingIpsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkingIpsResult>;
/**
* A collection of arguments for invoking getNetworkingIps.
*/
export interface GetNetworkingIpsOutputArgs {
filters?: pulumi.Input<pulumi.Input<inputs.GetNetworkingIpsFilterArgs>[]>;
ipAddresses?: pulumi.Input<pulumi.Input<inputs.GetNetworkingIpsIpAddressArgs>[]>;
/**
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
*/
order?: pulumi.Input<string>;
/**
* The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
*/
orderBy?: pulumi.Input<string>;
}