@pulumi/linode
Version:
A Pulumi package for creating and managing linode cloud resources.
107 lines (106 loc) • 3.53 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Provides information about a Linode Networking IP Address
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-ip).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode Networking IP Address.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const ns1LinodeCom = linode.getNetworkingIp({
* address: "162.159.27.72",
* });
* ```
*/
export declare function getNetworkingIp(args: GetNetworkingIpArgs, opts?: pulumi.InvokeOptions): Promise<GetNetworkingIpResult>;
/**
* A collection of arguments for invoking getNetworkingIp.
*/
export interface GetNetworkingIpArgs {
/**
* 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;
}
/**
* A collection of values returned by getNetworkingIp.
*/
export interface GetNetworkingIpResult {
/**
* The IPv4 address that is configured as a 1:1 NAT for this VPC interface.
*/
readonly address: string;
/**
* The default gateway for this address.
*/
readonly gateway: string;
readonly id: string;
/**
* The ID of the Linode this address currently belongs to.
*/
readonly linodeId: number;
/**
* The number of bits set in the subnet mask.
*/
readonly prefix: number;
/**
* Whether this is a public or private IP address.
*/
readonly public: boolean;
/**
* 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.
*/
readonly rdns: string;
/**
* The Region this IP address resides in. See all regions [here](https://api.linode.com/v4/regions).
*/
readonly region: string;
/**
* Whether this IP address is a reserved IP.
*/
readonly reserved: boolean;
/**
* The mask that separates host bits from network bits for this address.
*/
readonly subnetMask: string;
/**
* The type of address this is (ipv4, ipv6, ipv6/pool, ipv6/range).
*/
readonly type: string;
/**
* Contains information about the NAT 1:1 mapping of a public IP address to a VPC subnet.
*/
readonly vpcNat11: outputs.GetNetworkingIpVpcNat11;
}
/**
* Provides information about a Linode Networking IP Address
* For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-ip).
*
* ## Example Usage
*
* The following example shows how one might use this data source to access information about a Linode Networking IP Address.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as linode from "@pulumi/linode";
*
* const ns1LinodeCom = linode.getNetworkingIp({
* address: "162.159.27.72",
* });
* ```
*/
export declare function getNetworkingIpOutput(args: GetNetworkingIpOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNetworkingIpResult>;
/**
* A collection of arguments for invoking getNetworkingIp.
*/
export interface GetNetworkingIpOutputArgs {
/**
* The IP Address to access. The address must be associated with the account and a resource that the user has access to view.
*/
address: pulumi.Input<string>;
}