UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

96 lines (95 loc) 2.68 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; * ``` */ 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; readonly id: string; /** * The IPv4 range of this subnet in CIDR format. */ readonly ipv4: string; /** * The label of the VPC subnet. */ readonly label: string; /** * A list of Linode IDs that 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; * ``` */ 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>; }