UNPKG

@cuemby/equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

88 lines (87 loc) 2.45 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get Equinix Metal Operating System image. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@cuemby/equinix"; * import * as equinix from "@pulumi/equinix"; * * const example = equinix.GetMetalOperatingSystem({ * distro: "ubuntu", * version: "20.04", * provisionableOn: "c3.medium.x86", * }); * const server = new equinix.MetalDevice("server", { * hostname: "tf.ubuntu", * plan: "c3.medium.x86", * facilities: ["ny5"], * operatingSystem: example.then(example => example.id), * billingCycle: "hourly", * projectId: local.project_id, * }); * ``` */ export declare function getMetalOperatingSystem(args?: GetMetalOperatingSystemArgs, opts?: pulumi.InvokeOptions): Promise<GetMetalOperatingSystemResult>; /** * A collection of arguments for invoking GetMetalOperatingSystem. */ export interface GetMetalOperatingSystemArgs { /** * Name of the OS distribution. */ distro?: string; /** * Name or part of the name of the distribution. Case insensitive. */ name?: string; /** * Plan name. */ provisionableOn?: string; /** * Version of the distribution. */ version?: string; } /** * A collection of values returned by GetMetalOperatingSystem. */ export interface GetMetalOperatingSystemResult { readonly distro?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name?: string; readonly provisionableOn?: string; /** * Operating system slug (same as `id`). */ readonly slug: string; readonly version?: string; } export declare function getMetalOperatingSystemOutput(args?: GetMetalOperatingSystemOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetMetalOperatingSystemResult>; /** * A collection of arguments for invoking GetMetalOperatingSystem. */ export interface GetMetalOperatingSystemOutputArgs { /** * Name of the OS distribution. */ distro?: pulumi.Input<string>; /** * Name or part of the name of the distribution. Case insensitive. */ name?: pulumi.Input<string>; /** * Plan name. */ provisionableOn?: pulumi.Input<string>; /** * Version of the distribution. */ version?: pulumi.Input<string>; }