UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

116 lines (115 loc) 3.28 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Provides information about a Linode VPC subnet. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-vpc-subnet). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode VPC subnet. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getVpcSubnet({ * vpcId: 123, * id: "12345", * }); * export const vpcSubnet = foo; * ``` * * ## IPv6 * * > **Limited Availability** IPv6 VPCs may not currently be available to all users. * * The following attributes are exported under each entry of the `ipv6` field: * * * `range` - An IPv6 range allocated to this subnet in CIDR format. */ export declare function getVpcSubnet(args: GetVpcSubnetArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcSubnetResult>; /** * A collection of arguments for invoking getVpcSubnet. */ export interface GetVpcSubnetArgs { /** * The unique id of this VPC subnet. */ id: string; /** * The id of the parent VPC for this VPC Subnet. */ vpcId: number; } /** * A collection of values returned by getVpcSubnet. */ export interface GetVpcSubnetResult { /** * The date and time when the VPC Subnet was created. */ readonly created: string; /** * ID of the interface. */ readonly id: string; /** * The IPv4 range of this subnet in CIDR format. */ readonly ipv4: string; readonly ipv6s: outputs.GetVpcSubnetIpv6[]; /** * The label of the VPC subnet. */ readonly label: string; /** * A list of Linodes added to this subnet. */ readonly linodes: outputs.GetVpcSubnetLinode[]; /** * The date and time when the VPC Subnet was last updated. */ readonly updated: string; readonly vpcId: number; } /** * Provides information about a Linode VPC subnet. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-vpc-subnet). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode VPC subnet. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getVpcSubnet({ * vpcId: 123, * id: "12345", * }); * export const vpcSubnet = foo; * ``` * * ## IPv6 * * > **Limited Availability** IPv6 VPCs may not currently be available to all users. * * The following attributes are exported under each entry of the `ipv6` field: * * * `range` - An IPv6 range allocated to this subnet in CIDR format. */ export declare function getVpcSubnetOutput(args: GetVpcSubnetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVpcSubnetResult>; /** * A collection of arguments for invoking getVpcSubnet. */ export interface GetVpcSubnetOutputArgs { /** * The unique id of this VPC subnet. */ id: pulumi.Input<string>; /** * The id of the parent VPC for this VPC Subnet. */ vpcId: pulumi.Input<number>; }