UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

82 lines 2.6 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getVpcOutput = exports.getVpc = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides information about a Linode VPC. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-vpc). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode VPC. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getVpc({ * id: "123", * }); * export const vpc = foo; * ``` * * ## IPv6 * * > **Limited Availability** IPv6 VPCs may not currently be available to all users. * * Contains information about a single IPv6 allocation under this VPC. * * * `range` - The allocated range in CIDR format. * * ### Subnets Reference * * To list all subnets under a VPC, please refer to the linode.getVpcSubnets data source. */ function getVpc(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getVpc:getVpc", { "id": args.id, }, opts); } exports.getVpc = getVpc; /** * Provides information about a Linode VPC. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-vpc). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode VPC. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getVpc({ * id: "123", * }); * export const vpc = foo; * ``` * * ## IPv6 * * > **Limited Availability** IPv6 VPCs may not currently be available to all users. * * Contains information about a single IPv6 allocation under this VPC. * * * `range` - The allocated range in CIDR format. * * ### Subnets Reference * * To list all subnets under a VPC, please refer to the linode.getVpcSubnets data source. */ function getVpcOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getVpc:getVpc", { "id": args.id, }, opts); } exports.getVpcOutput = getVpcOutput; //# sourceMappingURL=getVpc.js.map