UNPKG

@cuemby/equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

40 lines 1.47 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.getMetalOrganizationOutput = exports.getMetalOrganization = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides an Equinix Metal organization datasource. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@pulumi/equinix"; * * const test = equinix.GetMetalOrganization({ * organizationId: local.org_id, * }); * export const projectsInTheOrg = test.then(test => test.projectIds); * ``` */ function getMetalOrganization(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("equinix:index/getMetalOrganization:GetMetalOrganization", { "addresses": args.addresses, "name": args.name, "organizationId": args.organizationId, }, opts); } exports.getMetalOrganization = getMetalOrganization; function getMetalOrganizationOutput(args, opts) { return pulumi.output(args).apply(a => getMetalOrganization(a, opts)); } exports.getMetalOrganizationOutput = getMetalOrganizationOutput; //# sourceMappingURL=getMetalOrganization.js.map