@equinix-labs/pulumi-equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
62 lines • 2.04 kB
JavaScript
;
// *** 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.getDeviceOutput = exports.getDevice = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get Equinix Network Edge device details.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const byUuid = equinix.networkedge.getDevice({
* uuid: "f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee",
* });
* const byName = equinix.networkedge.getDevice({
* name: "Arcus-Gateway-A1",
* });
* ```
*/
function getDevice(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("equinix:networkedge/getDevice:getDevice", {
"name": args.name,
"uuid": args.uuid,
"validStatusList": args.validStatusList,
}, opts);
}
exports.getDevice = getDevice;
/**
* Use this data source to get Equinix Network Edge device details.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@equinix-labs/pulumi-equinix";
*
* const byUuid = equinix.networkedge.getDevice({
* uuid: "f0b5c553-cdeb-4bc3-95b8-23db9ccfd5ee",
* });
* const byName = equinix.networkedge.getDevice({
* name: "Arcus-Gateway-A1",
* });
* ```
*/
function getDeviceOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("equinix:networkedge/getDevice:getDevice", {
"name": args.name,
"uuid": args.uuid,
"validStatusList": args.validStatusList,
}, opts);
}
exports.getDeviceOutput = getDeviceOutput;
//# sourceMappingURL=getDevice.js.map