@cuemby/equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
44 lines • 2.1 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.getMetalIPBlockRangesOutput = exports.getMetalIPBlockRanges = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Use this datasource to get CIDR expressions for allocated IP blocks of all the types in a project, optionally filtered by facility or metro.
*
* There are four types of IP blocks in Equinix: equinixMetalGlobal IPv4, public IPv4, private IPv4 and IPv6. Both global and public IPv4 are routable from the Internet. Public IPv4 blocks are allocated in a facility or metro, and addresses from it can only be assigned to devices in that location. Addresses from Global IPv4 block can be assigned to a device in any metro.
*
* The datasource has 4 list attributes: `globalIpv4`, `publicIpv4`, `privateIpv4` and `ipv6`, each listing CIDR notation (`<network>/<mask>`) of respective blocks from the project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as equinix from "@pulumi/equinix";
*
* const projectId = "<UUID_of_your_project>";
* const test = equinix.GetMetalIPBlockRanges({
* projectId: projectId,
* });
* export const out = test;
* ```
*/
function getMetalIPBlockRanges(args, opts) {
if (!opts) {
opts = {};
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
return pulumi.runtime.invoke("equinix:index/getMetalIPBlockRanges:GetMetalIPBlockRanges", {
"facility": args.facility,
"metro": args.metro,
"projectId": args.projectId,
}, opts);
}
exports.getMetalIPBlockRanges = getMetalIPBlockRanges;
function getMetalIPBlockRangesOutput(args, opts) {
return pulumi.output(args).apply(a => getMetalIPBlockRanges(a, opts));
}
exports.getMetalIPBlockRangesOutput = getMetalIPBlockRangesOutput;
//# sourceMappingURL=getMetalIPBlockRanges.js.map