UNPKG

@cuemby/equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

79 lines (78 loc) 2.5 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to retrieve a [hardware reservation resource from Equinix Metal](https://metal.equinix.com/developers/docs/deploy/reserved/). * * You can look up hardware reservation by its ID or by ID of device which occupies it. */ export declare function getMetalHardwareReservation(args?: GetMetalHardwareReservationArgs, opts?: pulumi.InvokeOptions): Promise<GetMetalHardwareReservationResult>; /** * A collection of arguments for invoking GetMetalHardwareReservation. */ export interface GetMetalHardwareReservationArgs { /** * UUID of device occupying the reservation. */ deviceId?: string; /** * ID of the hardware reservation. */ id?: string; } /** * A collection of values returned by GetMetalHardwareReservation. */ export interface GetMetalHardwareReservationResult { /** * UUID of device occupying the reservation. */ readonly deviceId: string; /** * Plan type for the reservation. */ readonly facility: string; /** * ID of the hardware reservation to look up. */ readonly id: string; /** * Plan type for the reservation. */ readonly plan: string; /** * UUID of project this reservation is scoped to. */ readonly projectId: string; /** * Flag indicating whether the reserved server is provisionable or not. Spare * devices can't be provisioned unless they are activated first. */ readonly provisionable: boolean; /** * Reservation short ID. */ readonly shortId: string; /** * Flag indicating whether the Hardware Reservation is a spare. Spare Hardware * Reservations are used when a Hardware Reservations requires service from Metal Equinix. */ readonly spare: boolean; /** * Switch short ID, can be used to determine if two devices are connected to the * same switch. */ readonly switchUuid: string; } export declare function getMetalHardwareReservationOutput(args?: GetMetalHardwareReservationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMetalHardwareReservationResult>; /** * A collection of arguments for invoking GetMetalHardwareReservation. */ export interface GetMetalHardwareReservationOutputArgs { /** * UUID of device occupying the reservation. */ deviceId?: pulumi.Input<string>; /** * ID of the hardware reservation. */ id?: pulumi.Input<string>; }