UNPKG

@equinix-labs/pulumi-equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

86 lines 4.74 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.getPortOutput = exports.getPort = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Fabric V4 API compatible data resource that allow user to fetch port by uuid * * Additional documentation: * * Getting Started: https://docs.equinix.com/en-us/Content/Interconnection/Fabric/IMPLEMENTATION/fabric-ports-implement.htm * * API: https://developer.equinix.com/dev-docs/fabric/api-reference/fabric-v4-apis#ports * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const portDataName = equinix.fabric.getPort({ * uuid: "<uuid_of_port>", * }); * export const id = portDataName.then(portDataName => portDataName.id); * export const name = portDataName.then(portDataName => portDataName.name); * export const state = portDataName.then(portDataName => portDataName.state); * export const accountName = portDataName.then(portDataName => portDataName.account?.accountName); * export const type = portDataName.then(portDataName => portDataName.type); * export const bandwidth = portDataName.then(portDataName => portDataName.bandwidth); * export const usedBandwidth = portDataName.then(portDataName => portDataName.usedBandwidth); * export const encapsulationType = portDataName.then(portDataName => portDataName.encapsulation?.type); * export const ibx = portDataName.then(portDataName => portDataName.location?.ibx); * export const metroCode = portDataName.then(portDataName => portDataName.location?.metroCode); * export const metroName = portDataName.then(portDataName => portDataName.location?.metroName); * export const region = portDataName.then(portDataName => portDataName.location?.region); * export const deviceRedundancyEnabled = portDataName.then(portDataName => portDataName.device?.redundancies?.[0]?.enabled); * export const deviceRedundancyPriority = portDataName.then(portDataName => portDataName.device?.redundancies?.[0]?.priority); * ``` */ function getPort(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("equinix:fabric/getPort:getPort", { "uuid": args.uuid, }, opts); } exports.getPort = getPort; /** * Fabric V4 API compatible data resource that allow user to fetch port by uuid * * Additional documentation: * * Getting Started: https://docs.equinix.com/en-us/Content/Interconnection/Fabric/IMPLEMENTATION/fabric-ports-implement.htm * * API: https://developer.equinix.com/dev-docs/fabric/api-reference/fabric-v4-apis#ports * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as equinix from "@equinix-labs/pulumi-equinix"; * * const portDataName = equinix.fabric.getPort({ * uuid: "<uuid_of_port>", * }); * export const id = portDataName.then(portDataName => portDataName.id); * export const name = portDataName.then(portDataName => portDataName.name); * export const state = portDataName.then(portDataName => portDataName.state); * export const accountName = portDataName.then(portDataName => portDataName.account?.accountName); * export const type = portDataName.then(portDataName => portDataName.type); * export const bandwidth = portDataName.then(portDataName => portDataName.bandwidth); * export const usedBandwidth = portDataName.then(portDataName => portDataName.usedBandwidth); * export const encapsulationType = portDataName.then(portDataName => portDataName.encapsulation?.type); * export const ibx = portDataName.then(portDataName => portDataName.location?.ibx); * export const metroCode = portDataName.then(portDataName => portDataName.location?.metroCode); * export const metroName = portDataName.then(portDataName => portDataName.location?.metroName); * export const region = portDataName.then(portDataName => portDataName.location?.region); * export const deviceRedundancyEnabled = portDataName.then(portDataName => portDataName.device?.redundancies?.[0]?.enabled); * export const deviceRedundancyPriority = portDataName.then(portDataName => portDataName.device?.redundancies?.[0]?.priority); * ``` */ function getPortOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("equinix:fabric/getPort:getPort", { "uuid": args.uuid, }, opts); } exports.getPortOutput = getPortOutput; //# sourceMappingURL=getPort.js.map