UNPKG

@cuemby/equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

63 lines 1.93 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.getMetalVlanOutput = exports.getMetalVlan = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides an Equinix Metal Virtual Network datasource. VLANs data sources can be * searched by VLAN UUID, or project UUID and vxlan number. * * ## Example Usage * * Fetch a vlan by ID: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@cuemby/equinix"; * import * as equinix from "@pulumi/equinix"; * * const foovlan = new equinix.MetalVlan("foovlan", { * projectId: local.project_id, * metro: "sv", * vxlan: 5, * }); * const dsvlan = equinix.GetMetalVlanOutput({ * vlanId: foovlan.id, * }); * ``` * * Fetch a vlan by project ID, vxlan and metro * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@pulumi/equinix"; * * const dsvlan = equinix.GetMetalVlan({ * projectId: local.project_id, * vxlan: 5, * metro: "sv", * }); * ``` */ function getMetalVlan(args, opts) { args = args || {}; if (!opts) { opts = {}; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); return pulumi.runtime.invoke("equinix:index/getMetalVlan:GetMetalVlan", { "facility": args.facility, "metro": args.metro, "projectId": args.projectId, "vlanId": args.vlanId, "vxlan": args.vxlan, }, opts); } exports.getMetalVlan = getMetalVlan; function getMetalVlanOutput(args, opts) { return pulumi.output(args).apply(a => getMetalVlan(a, opts)); } exports.getMetalVlanOutput = getMetalVlanOutput; //# sourceMappingURL=getMetalVlan.js.map