UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

89 lines (88 loc) 2.96 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Limited Availability** VPC-attached NodeBalancers may not currently be available to all users and may require the `apiVersion` provider argument must be set to `v4beta`. * * Provides information about a NodeBalancer VPC configuration. * For more information, see the corresponding [Linode APIv4 documentation](https://techdocs.akamai.com/linode-api/reference/get-node-balancer-vpc-config). * * ## Example Usage * * Retrieve information about a NodeBalancer VPC configuration: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const vpc_config = linode.getNodebalancerVpc({ * nodebalancerId: 123, * id: 456, * }); * ``` */ export declare function getNodebalancerVpc(args: GetNodebalancerVpcArgs, opts?: pulumi.InvokeOptions): Promise<GetNodebalancerVpcResult>; /** * A collection of arguments for invoking getNodebalancerVpc. */ export interface GetNodebalancerVpcArgs { /** * The ID of the VPC configuration. */ id: number; /** * The ID of the parent NodeBalancer of the VPC configuration. */ nodebalancerId: number; } /** * A collection of values returned by getNodebalancerVpc. */ export interface GetNodebalancerVpcResult { readonly id: number; /** * A CIDR range for the VPC's IPv4 addresses. The NodeBalancer sources IP addresses from this range when routing traffic to the backend VPC nodes. */ readonly ipv4Range: string; readonly nodebalancerId: number; /** * The ID of this configuration's VPC subnet. */ readonly subnetId: number; /** * The ID of this configuration's VPC. */ readonly vpcId: number; } /** * > **Limited Availability** VPC-attached NodeBalancers may not currently be available to all users and may require the `apiVersion` provider argument must be set to `v4beta`. * * Provides information about a NodeBalancer VPC configuration. * For more information, see the corresponding [Linode APIv4 documentation](https://techdocs.akamai.com/linode-api/reference/get-node-balancer-vpc-config). * * ## Example Usage * * Retrieve information about a NodeBalancer VPC configuration: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const vpc_config = linode.getNodebalancerVpc({ * nodebalancerId: 123, * id: 456, * }); * ``` */ export declare function getNodebalancerVpcOutput(args: GetNodebalancerVpcOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodebalancerVpcResult>; /** * A collection of arguments for invoking getNodebalancerVpc. */ export interface GetNodebalancerVpcOutputArgs { /** * The ID of the VPC configuration. */ id: pulumi.Input<number>; /** * The ID of the parent NodeBalancer of the VPC configuration. */ nodebalancerId: pulumi.Input<number>; }