linode.getNodebalancerVpc
Limited Availability VPC-attached NodeBalancers may not currently be available to all users and may require the
api_version
provider argument must be set tov4beta
.
Provides information about a NodeBalancer VPC configuration. For more information, see the corresponding Linode APIv4 documentation.
Example Usage
Retrieve information about a NodeBalancer VPC configuration:
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const vpc_config = linode.getNodebalancerVpc({
nodebalancerId: 123,
id: 456,
});
import pulumi
import pulumi_linode as linode
vpc_config = linode.get_nodebalancer_vpc(nodebalancer_id=123,
id=456)
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v5/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.GetNodebalancerVpc(ctx, &linode.GetNodebalancerVpcArgs{
NodebalancerId: 123,
Id: 456,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var vpc_config = Linode.GetNodebalancerVpc.Invoke(new()
{
NodebalancerId = 123,
Id = 456,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetNodebalancerVpcArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var vpc-config = LinodeFunctions.getNodebalancerVpc(GetNodebalancerVpcArgs.builder()
.nodebalancerId(123)
.id(456)
.build());
}
}
variables:
vpc-config:
fn::invoke:
function: linode:getNodebalancerVpc
arguments:
nodebalancerId: 123
id: 456
Using getNodebalancerVpc
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNodebalancerVpc(args: GetNodebalancerVpcArgs, opts?: InvokeOptions): Promise<GetNodebalancerVpcResult>
function getNodebalancerVpcOutput(args: GetNodebalancerVpcOutputArgs, opts?: InvokeOptions): Output<GetNodebalancerVpcResult>
def get_nodebalancer_vpc(id: Optional[int] = None,
nodebalancer_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetNodebalancerVpcResult
def get_nodebalancer_vpc_output(id: Optional[pulumi.Input[int]] = None,
nodebalancer_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNodebalancerVpcResult]
func GetNodebalancerVpc(ctx *Context, args *GetNodebalancerVpcArgs, opts ...InvokeOption) (*GetNodebalancerVpcResult, error)
func GetNodebalancerVpcOutput(ctx *Context, args *GetNodebalancerVpcOutputArgs, opts ...InvokeOption) GetNodebalancerVpcResultOutput
> Note: This function is named GetNodebalancerVpc
in the Go SDK.
public static class GetNodebalancerVpc
{
public static Task<GetNodebalancerVpcResult> InvokeAsync(GetNodebalancerVpcArgs args, InvokeOptions? opts = null)
public static Output<GetNodebalancerVpcResult> Invoke(GetNodebalancerVpcInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodebalancerVpcResult> getNodebalancerVpc(GetNodebalancerVpcArgs args, InvokeOptions options)
public static Output<GetNodebalancerVpcResult> getNodebalancerVpc(GetNodebalancerVpcArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getNodebalancerVpc:getNodebalancerVpc
arguments:
# arguments dictionary
The following arguments are supported:
- Id int
- The ID of the VPC configuration.
- Nodebalancer
Id int - The ID of the parent NodeBalancer of the VPC configuration.
- Id int
- The ID of the VPC configuration.
- Nodebalancer
Id int - The ID of the parent NodeBalancer of the VPC configuration.
- id Integer
- The ID of the VPC configuration.
- nodebalancer
Id Integer - The ID of the parent NodeBalancer of the VPC configuration.
- id number
- The ID of the VPC configuration.
- nodebalancer
Id number - The ID of the parent NodeBalancer of the VPC configuration.
- id int
- The ID of the VPC configuration.
- nodebalancer_
id int - The ID of the parent NodeBalancer of the VPC configuration.
- id Number
- The ID of the VPC configuration.
- nodebalancer
Id Number - The ID of the parent NodeBalancer of the VPC configuration.
getNodebalancerVpc Result
The following output properties are available:
- Id int
- Ipv4Range string
- 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.
- Nodebalancer
Id int - Subnet
Id int - The ID of this configuration's VPC subnet.
- Vpc
Id int - The ID of this configuration's VPC.
- Id int
- Ipv4Range string
- 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.
- Nodebalancer
Id int - Subnet
Id int - The ID of this configuration's VPC subnet.
- Vpc
Id int - The ID of this configuration's VPC.
- id Integer
- ipv4Range String
- 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.
- nodebalancer
Id Integer - subnet
Id Integer - The ID of this configuration's VPC subnet.
- vpc
Id Integer - The ID of this configuration's VPC.
- id number
- ipv4Range string
- 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.
- nodebalancer
Id number - subnet
Id number - The ID of this configuration's VPC subnet.
- vpc
Id number - The ID of this configuration's VPC.
- id int
- ipv4_
range str - 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.
- nodebalancer_
id int - subnet_
id int - The ID of this configuration's VPC subnet.
- vpc_
id int - The ID of this configuration's VPC.
- id Number
- ipv4Range String
- 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.
- nodebalancer
Id Number - subnet
Id Number - The ID of this configuration's VPC subnet.
- vpc
Id Number - The ID of this configuration's VPC.
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.