@equinix-labs/pulumi-equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
97 lines (96 loc) • 3.04 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* 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,
* });
* ```
*/
export declare function getGateway(args: GetGatewayArgs, opts?: pulumi.InvokeOptions): Promise<GetGatewayResult>;
/**
* A collection of arguments for invoking getGateway.
*/
export interface GetGatewayArgs {
/**
* UUID of the metal gateway resource to retrieve.
*/
gatewayId: string;
}
/**
* A collection of values returned by getGateway.
*/
export interface GetGatewayResult {
readonly gatewayId: string;
readonly id: string;
/**
* UUID of IP reservation block bound to the gateway.
*/
readonly ipReservationId: string;
/**
* Size of the private IPv4 subnet bound to this metal gateway. One of `8`, `16`, `32`, `64`, `128`.
*/
readonly privateIpv4SubnetSize: number;
/**
* UUID of the project where the gateway is scoped to.
*/
readonly projectId: string;
/**
* Status of the gateway resource.
*/
readonly state: string;
/**
* UUID of the VLAN where the gateway is scoped to.
*/
readonly vlanId: string;
/**
* UUID of the VRF associated with the IP Reservation.
*/
readonly vrfId: string;
}
/**
* 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,
* });
* ```
*/
export declare function getGatewayOutput(args: GetGatewayOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGatewayResult>;
/**
* A collection of arguments for invoking getGateway.
*/
export interface GetGatewayOutputArgs {
/**
* UUID of the metal gateway resource to retrieve.
*/
gatewayId: pulumi.Input<string>;
}