@pulumi/digitalocean
Version:
A Pulumi package for creating and managing DigitalOcean cloud resources.
78 lines (77 loc) • 2.19 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* Get the reserved IP:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const config = new pulumi.Config();
* const publicIp = config.requireObject<any>("publicIp");
* const example = digitalocean.getReservedIp({
* ipAddress: publicIp,
* });
* export const fipOutput = example.then(example => example.dropletId);
* ```
*/
export declare function getReservedIp(args: GetReservedIpArgs, opts?: pulumi.InvokeOptions): Promise<GetReservedIpResult>;
/**
* A collection of arguments for invoking getReservedIp.
*/
export interface GetReservedIpArgs {
/**
* The allocated IP address of the specific reserved IP to retrieve.
*/
ipAddress: string;
}
/**
* A collection of values returned by getReservedIp.
*/
export interface GetReservedIpResult {
/**
* The Droplet id that the reserved IP has been assigned to.
*/
readonly dropletId: number;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ipAddress: string;
/**
* The region that the reserved IP is reserved to.
*/
readonly region: string;
/**
* The uniform resource name of the reserved IP.
*/
readonly urn: string;
}
/**
* ## Example Usage
*
* Get the reserved IP:
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as digitalocean from "@pulumi/digitalocean";
*
* const config = new pulumi.Config();
* const publicIp = config.requireObject<any>("publicIp");
* const example = digitalocean.getReservedIp({
* ipAddress: publicIp,
* });
* export const fipOutput = example.then(example => example.dropletId);
* ```
*/
export declare function getReservedIpOutput(args: GetReservedIpOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetReservedIpResult>;
/**
* A collection of arguments for invoking getReservedIp.
*/
export interface GetReservedIpOutputArgs {
/**
* The allocated IP address of the specific reserved IP to retrieve.
*/
ipAddress: pulumi.Input<string>;
}