@cuemby/equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
45 lines • 1.71 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.getMetalGatewayOutput = exports.getMetalGateway = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this datasource to retrieve Metal Gateway resources in Equinix Metal.
*
* > VRF features are not generally available. The interfaces related to VRF resources may change ahead of general availability.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@cuemby/equinix";
* import * as equinix from "@pulumi/equinix";
*
* // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses
* const testMetalVlan = new equinix.MetalVlan("testMetalVlan", {
* description: "test VLAN in SV",
* metro: "sv",
* projectId: local.project_id,
* });
* const testGetMetalGateway = equinix.GetMetalGateway({
* gatewayId: local.gateway_id,
* });
* ```
*/
function getMetalGateway(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("equinix:index/getMetalGateway:GetMetalGateway", {
"gatewayId": args.gatewayId,
}, opts);
}
exports.getMetalGateway = getMetalGateway;
function getMetalGatewayOutput(args, opts) {
return pulumi.output(args).apply(a => getMetalGateway(a, opts));
}
exports.getMetalGatewayOutput = getMetalGatewayOutput;
//# sourceMappingURL=getMetalGateway.js.map