getNodeBalancerNode

Provides details about a Linode NodeBalancer node.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var my_node = Output.Create(Linode.GetNodeBalancerNode.InvokeAsync(new Linode.GetNodeBalancerNodeArgs
        {
            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
	})
}
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,
}));

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)
}

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 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.

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 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).

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.