@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
95 lines (94 loc) • 2.39 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about an instance IP.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myIp = scaleway.getInstanceIp({
* id: "fr-par-1/11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getInstanceIp(args?: GetInstanceIpArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceIpResult>;
/**
* A collection of arguments for invoking getInstanceIp.
*/
export interface GetInstanceIpArgs {
/**
* The IPv4 address to retrieve
* Only one of `address` and `id` should be specified.
*/
address?: string;
/**
* The ID of the IP address to retrieve
* Only one of `address` and `id` should be specified.
*/
id?: string;
}
/**
* A collection of values returned by getInstanceIp.
*/
export interface GetInstanceIpResult {
/**
* The IP address.
*/
readonly address?: string;
/**
* The ID of the IP.
*/
readonly id?: string;
/**
* The organization ID the IP is associated with.
*/
readonly organizationId: string;
/**
* The IP Prefix.
*/
readonly prefix: string;
readonly projectId: string;
/**
* The reverse dns attached to this IP
*/
readonly reverse: string;
readonly serverId: string;
readonly tags: string[];
/**
* The type of the IP
*/
readonly type: string;
readonly zone: string;
}
/**
* Gets information about an instance IP.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const myIp = scaleway.getInstanceIp({
* id: "fr-par-1/11111111-1111-1111-1111-111111111111",
* });
* ```
*/
export declare function getInstanceIpOutput(args?: GetInstanceIpOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceIpResult>;
/**
* A collection of arguments for invoking getInstanceIp.
*/
export interface GetInstanceIpOutputArgs {
/**
* The IPv4 address to retrieve
* Only one of `address` and `id` should be specified.
*/
address?: pulumi.Input<string>;
/**
* The ID of the IP address to retrieve
* Only one of `address` and `id` should be specified.
*/
id?: pulumi.Input<string>;
}