UNPKG

@equinix-labs/pulumi-equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

95 lines (94 loc) 2.97 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get Equinix Metal Spot Market Price for a plan. * * ## Example Usage * * Lookup by metro: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const example = equinix.metal.getSpotMarketPrice({ * metro: "sv", * plan: "c3.small.x86", * }); * ``` */ export declare function getSpotMarketPrice(args: GetSpotMarketPriceArgs, opts?: pulumi.InvokeOptions): Promise<GetSpotMarketPriceResult>; /** * A collection of arguments for invoking getSpotMarketPrice. */ export interface GetSpotMarketPriceArgs { /** * Name of the facility. Use metro instead; read the facility to metro migration guide * * @deprecated Use metro instead of facility. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices */ facility?: string; /** * Name of the metro. */ metro?: string; /** * Name of the plan. */ plan: string; } /** * A collection of values returned by getSpotMarketPrice. */ export interface GetSpotMarketPriceResult { /** * @deprecated Use metro instead of facility. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices */ readonly facility?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly metro?: string; readonly plan: string; /** * Current spot market price for given plan in given facility. */ readonly price: number; } /** * Use this data source to get Equinix Metal Spot Market Price for a plan. * * ## Example Usage * * Lookup by metro: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const example = equinix.metal.getSpotMarketPrice({ * metro: "sv", * plan: "c3.small.x86", * }); * ``` */ export declare function getSpotMarketPriceOutput(args: GetSpotMarketPriceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSpotMarketPriceResult>; /** * A collection of arguments for invoking getSpotMarketPrice. */ export interface GetSpotMarketPriceOutputArgs { /** * Name of the facility. Use metro instead; read the facility to metro migration guide * * @deprecated Use metro instead of facility. For more information, read the migration guide: https://registry.terraform.io/providers/equinix/equinix/latest/docs/guides/migration_guide_facilities_to_metros_devices */ facility?: pulumi.Input<string>; /** * Name of the metro. */ metro?: pulumi.Input<string>; /** * Name of the plan. */ plan: pulumi.Input<string>; }