UNPKG

@equinix-labs/pulumi-equinix

Version:

A Pulumi package for creating and managing equinix cloud resources.

50 lines 2.65 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.getPrecreatedIpBlockOutput = exports.getPrecreatedIpBlock = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Use this data source to get CIDR expression for precreated (management) IPv6 and IPv4 blocks in Equinix Metal. You can then use the cidrsubnet TF builtin function to derive subnets. * * > For backward compatibility, this data source will also return reserved (elastic) IP blocks. * * > Precreated (management) IP blocks for a metro will not be available until first device is created in that metro. * * > Public IPv4 blocks auto-assigned (management) to a device cannot be retrieved. If you need that information, consider using the equinix.metal.Device data source instead. */ function getPrecreatedIpBlock(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("equinix:metal/getPrecreatedIpBlock:getPrecreatedIpBlock", { "addressFamily": args.addressFamily, "facility": args.facility, "global": args.global, "metro": args.metro, "projectId": args.projectId, "public": args.public, }, opts); } exports.getPrecreatedIpBlock = getPrecreatedIpBlock; /** * Use this data source to get CIDR expression for precreated (management) IPv6 and IPv4 blocks in Equinix Metal. You can then use the cidrsubnet TF builtin function to derive subnets. * * > For backward compatibility, this data source will also return reserved (elastic) IP blocks. * * > Precreated (management) IP blocks for a metro will not be available until first device is created in that metro. * * > Public IPv4 blocks auto-assigned (management) to a device cannot be retrieved. If you need that information, consider using the equinix.metal.Device data source instead. */ function getPrecreatedIpBlockOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("equinix:metal/getPrecreatedIpBlock:getPrecreatedIpBlock", { "addressFamily": args.addressFamily, "facility": args.facility, "global": args.global, "metro": args.metro, "projectId": args.projectId, "public": args.public, }, opts); } exports.getPrecreatedIpBlockOutput = getPrecreatedIpBlockOutput; //# sourceMappingURL=getPrecreatedIpBlock.js.map