getNodeBalancerNode

Provides details about a Linode NodeBalancer node.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Linode = Pulumi.Linode;

return await Deployment.RunAsync(() => 
{
    var my_node = Linode.GetNodeBalancerNode.Invoke(new()
    {
        ConfigId = 789,
        Id = 123,
        NodebalancerId = 456,
    });

});
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.LookupNodeBalancerNode(ctx, &GetNodeBalancerNodeArgs{
			ConfigId:       789,
			Id:             123,
			NodebalancerId: 456,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
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.GetNodeBalancerNodeArgs;
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 my-node = LinodeFunctions.getNodeBalancerNode(GetNodeBalancerNodeArgs.builder()
            .configId(789)
            .id(123)
            .nodebalancerId(456)
            .build());

    }
}
import pulumi
import pulumi_linode as linode

my_node = linode.get_node_balancer_node(config_id=789,
    id=123,
    nodebalancer_id=456)
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const my_node = pulumi.output(linode.getNodeBalancerNode({
    configId: 789,
    id: 123,
    nodebalancerId: 456,
}));
variables:
  my-node:
    Fn::Invoke:
      Function: linode:getNodeBalancerNode
      Arguments:
        configId: 789
        id: 123
        nodebalancerId: 456

Using getNodeBalancerNode

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 getNodeBalancerNode(args: GetNodeBalancerNodeArgs, opts?: InvokeOptions): Promise<GetNodeBalancerNodeResult>
function getNodeBalancerNodeOutput(args: GetNodeBalancerNodeOutputArgs, opts?: InvokeOptions): Output<GetNodeBalancerNodeResult>
def get_node_balancer_node(config_id: Optional[int] = None,
                           id: Optional[int] = None,
                           nodebalancer_id: Optional[int] = None,
                           opts: Optional[InvokeOptions] = None) -> GetNodeBalancerNodeResult
def get_node_balancer_node_output(config_id: Optional[pulumi.Input[int]] = None,
                           id: Optional[pulumi.Input[int]] = None,
                           nodebalancer_id: Optional[pulumi.Input[int]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetNodeBalancerNodeResult]
func LookupNodeBalancerNode(ctx *Context, args *LookupNodeBalancerNodeArgs, opts ...InvokeOption) (*LookupNodeBalancerNodeResult, error)
func LookupNodeBalancerNodeOutput(ctx *Context, args *LookupNodeBalancerNodeOutputArgs, opts ...InvokeOption) LookupNodeBalancerNodeResultOutput

> Note: This function is named LookupNodeBalancerNode in the Go SDK.

public static class GetNodeBalancerNode 
{
    public static Task<GetNodeBalancerNodeResult> InvokeAsync(GetNodeBalancerNodeArgs args, InvokeOptions? opts = null)
    public static Output<GetNodeBalancerNodeResult> Invoke(GetNodeBalancerNodeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodeBalancerNodeResult> getNodeBalancerNode(GetNodeBalancerNodeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: linode:index/getNodeBalancerNode:getNodeBalancerNode
  arguments:
    # arguments dictionary

The following arguments are supported:

ConfigId int

The ID of the config that contains the Node.

Id int

The node's ID.

NodebalancerId int

The ID of the NodeBalancer that contains the node.

ConfigId int

The ID of the config that contains the Node.

Id int

The node's ID.

NodebalancerId int

The ID of the NodeBalancer that contains the node.

configId Integer

The ID of the config that contains the Node.

id Integer

The node's ID.

nodebalancerId Integer

The ID of the NodeBalancer that contains the node.

configId number

The ID of the config that contains the Node.

id number

The node's ID.

nodebalancerId number

The ID of the NodeBalancer that contains the node.

config_id int

The ID of the config that contains the Node.

id int

The node's ID.

nodebalancer_id int

The ID of the NodeBalancer that contains the node.

configId Number

The ID of the config that contains the Node.

id Number

The node's ID.

nodebalancerId Number

The ID of the NodeBalancer that contains the node.

getNodeBalancerNode Result

The following output properties are available:

Address string

The private IP Address where this backend can be reached.

ConfigId int
Id int
Label string

The label of the Linode NodeBalancer Node. This is for display purposes only.

Mode string

The mode this NodeBalancer should use when sending traffic to this backend. If set to accept this backend is accepting traffic. If set to reject this backend will not receive traffic. If set to drain this backend will not receive new traffic, but connections already pinned to it will continue to be routed to it. (accept, reject, drain, backup)

NodebalancerId int
Status string

The current status of this node, based on the configured checks of its NodeBalancer Config. (unknown, UP, DOWN).

Weight int

Used when picking a backend to serve a request and is not pinned to a single backend yet. Nodes with a higher weight will receive more traffic. (1-255).

Address string

The private IP Address where this backend can be reached.

ConfigId int
Id int
Label string

The label of the Linode NodeBalancer Node. This is for display purposes only.

Mode string

The mode this NodeBalancer should use when sending traffic to this backend. If set to accept this backend is accepting traffic. If set to reject this backend will not receive traffic. If set to drain this backend will not receive new traffic, but connections already pinned to it will continue to be routed to it. (accept, reject, drain, backup)

NodebalancerId int
Status string

The current status of this node, based on the configured checks of its NodeBalancer Config. (unknown, UP, DOWN).

Weight int

Used when picking a backend to serve a request and is not pinned to a single backend yet. Nodes with a higher weight will receive more traffic. (1-255).

address String

The private IP Address where this backend can be reached.

configId Integer
id Integer
label String

The label of the Linode NodeBalancer Node. This is for display purposes only.

mode String

The mode this NodeBalancer should use when sending traffic to this backend. If set to accept this backend is accepting traffic. If set to reject this backend will not receive traffic. If set to drain this backend will not receive new traffic, but connections already pinned to it will continue to be routed to it. (accept, reject, drain, backup)

nodebalancerId Integer
status String

The current status of this node, based on the configured checks of its NodeBalancer Config. (unknown, UP, DOWN).

weight Integer

Used when picking a backend to serve a request and is not pinned to a single backend yet. Nodes with a higher weight will receive more traffic. (1-255).

address string

The private IP Address where this backend can be reached.

configId number
id number
label string

The label of the Linode NodeBalancer Node. This is for display purposes only.

mode string

The mode this NodeBalancer should use when sending traffic to this backend. If set to accept this backend is accepting traffic. If set to reject this backend will not receive traffic. If set to drain this backend will not receive new traffic, but connections already pinned to it will continue to be routed to it. (accept, reject, drain, backup)

nodebalancerId number
status string

The current status of this node, based on the configured checks of its NodeBalancer Config. (unknown, UP, DOWN).

weight number

Used when picking a backend to serve a request and is not pinned to a single backend yet. Nodes with a higher weight will receive more traffic. (1-255).

address str

The private IP Address where this backend can be reached.

config_id int
id int
label str

The label of the Linode NodeBalancer Node. This is for display purposes only.

mode str

The mode this NodeBalancer should use when sending traffic to this backend. If set to accept this backend is accepting traffic. If set to reject this backend will not receive traffic. If set to drain this backend will not receive new traffic, but connections already pinned to it will continue to be routed to it. (accept, reject, drain, backup)

nodebalancer_id int
status str

The current status of this node, based on the configured checks of its NodeBalancer Config. (unknown, UP, DOWN).

weight int

Used when picking a backend to serve a request and is not pinned to a single backend yet. Nodes with a higher weight will receive more traffic. (1-255).

address String

The private IP Address where this backend can be reached.

configId Number
id Number
label String

The label of the Linode NodeBalancer Node. This is for display purposes only.

mode String

The mode this NodeBalancer should use when sending traffic to this backend. If set to accept this backend is accepting traffic. If set to reject this backend will not receive traffic. If set to drain this backend will not receive new traffic, but connections already pinned to it will continue to be routed to it. (accept, reject, drain, backup)

nodebalancerId Number
status String

The current status of this node, based on the configured checks of its NodeBalancer Config. (unknown, UP, DOWN).

weight Number

Used when picking a backend to serve a request and is not pinned to a single backend yet. Nodes with a higher weight will receive more traffic. (1-255).

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes

This Pulumi package is based on the linode Terraform Provider.