UNPKG

@equinix-labs/pulumi-equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

66 lines 2.52 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.getGatewayOutput = exports.getGateway = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this datasource to retrieve Metal Gateway resources in Equinix Metal. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses * const testVlan = new equinix.metal.Vlan("testVlan", { * description: "test VLAN in SV", * metro: "sv", * projectId: local.project_id, * }); * const testGateway = equinix.metal.getGateway({ * gatewayId: local.gateway_id, * }); * ``` */ function getGateway(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("equinix:metal/getGateway:getGateway", { "gatewayId": args.gatewayId, }, opts); } exports.getGateway = getGateway; /** * Use this datasource to retrieve Metal Gateway resources in Equinix Metal. * * See the [Virtual Routing and Forwarding documentation](https://deploy.equinix.com/developers/docs/metal/layer2-networking/vrf/) for product details and API reference material. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * // Create Metal Gateway for a VLAN with a private IPv4 block with 8 IP addresses * const testVlan = new equinix.metal.Vlan("testVlan", { * description: "test VLAN in SV", * metro: "sv", * projectId: local.project_id, * }); * const testGateway = equinix.metal.getGateway({ * gatewayId: local.gateway_id, * }); * ``` */ function getGatewayOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("equinix:metal/getGateway:getGateway", { "gatewayId": args.gatewayId, }, opts); } exports.getGatewayOutput = getGatewayOutput; //# sourceMappingURL=getGateway.js.map