UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

102 lines 2.84 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets information about a Flexible IP. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Get info by IP address * const withIp = scaleway.elasticmetal.getIp({ * ipAddress: "1.2.3.4", * }); * // Get info by IP ID * const withId = scaleway.elasticmetal.getIp({ * flexibleIpId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getIp(args?: GetIpArgs, opts?: pulumi.InvokeOptions): Promise<GetIpResult>; /** * A collection of arguments for invoking getIp. */ export interface GetIpArgs { /** * The IP ID. * Only one of `ipAddress` and `flexibleIpId` should be specified. */ flexibleIpId?: string; /** * The IP address. * Only one of `ipAddress` and `flexibleIpId` should be specified. */ ipAddress?: string; /** * `projectId`) The ID of the Project the Flexible IP is associated with. */ projectId?: string; } /** * A collection of values returned by getIp. */ export interface GetIpResult { readonly createdAt: string; readonly description: string; readonly flexibleIpId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ipAddress?: string; readonly isIpv6: boolean; readonly organizationId: string; readonly projectId: string; readonly reverse: string; readonly serverId: string; readonly status: string; readonly tags: string[]; readonly updatedAt: string; readonly zone: string; } /** * Gets information about a Flexible IP. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Get info by IP address * const withIp = scaleway.elasticmetal.getIp({ * ipAddress: "1.2.3.4", * }); * // Get info by IP ID * const withId = scaleway.elasticmetal.getIp({ * flexibleIpId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getIpOutput(args?: GetIpOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIpResult>; /** * A collection of arguments for invoking getIp. */ export interface GetIpOutputArgs { /** * The IP ID. * Only one of `ipAddress` and `flexibleIpId` should be specified. */ flexibleIpId?: pulumi.Input<string | undefined>; /** * The IP address. * Only one of `ipAddress` and `flexibleIpId` should be specified. */ ipAddress?: pulumi.Input<string | undefined>; /** * `projectId`) The ID of the Project the Flexible IP is associated with. */ projectId?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getIp.d.ts.map