UNPKG

@cuemby/equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

55 lines 1.91 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getMetalDeviceOutput = exports.getMetalDevice = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides an Equinix Metal device datasource. * * > **Note:** All arguments including the `rootPassword` and `userData` will be stored in * the raw state as plain-text. * [Read more about sensitive data in state](https://www.terraform.io/docs/state/sensitive-data.html). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@pulumi/equinix"; * * const test = equinix.GetMetalDevice({ * projectId: local.project_id, * hostname: "mydevice", * }); * export const id = test.then(test => test.id); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@pulumi/equinix"; * * const test = equinix.GetMetalDevice({ * deviceId: "4c641195-25e5-4c3c-b2b7-4cd7a42c7b40", * }); * export const ipv4 = test.then(test => test.accessPublicIpv4); * ``` */ function getMetalDevice(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("equinix:index/getMetalDevice:GetMetalDevice", { "deviceId": args.deviceId, "hostname": args.hostname, "projectId": args.projectId, }, opts); } exports.getMetalDevice = getMetalDevice; function getMetalDeviceOutput(args, opts) { return pulumi.output(args).apply(a => getMetalDevice(a, opts)); } exports.getMetalDeviceOutput = getMetalDeviceOutput; //# sourceMappingURL=getMetalDevice.js.map