Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi
linode.getNodeBalancerNode
Explore with Pulumi AI
Provides details about a Linode NodeBalancer node. For more information, see the Linode APIv4 docs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const my-node = linode.getNodeBalancerNode({
id: 123,
nodebalancerId: 456,
configId: 789,
});
import pulumi
import pulumi_linode as linode
my_node = linode.get_node_balancer_node(id=123,
nodebalancer_id=456,
config_id=789)
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := linode.LookupNodeBalancerNode(ctx, &linode.LookupNodeBalancerNodeArgs{
Id: 123,
NodebalancerId: 456,
ConfigId: 789,
}, 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 my_node = Linode.GetNodeBalancerNode.Invoke(new()
{
Id = 123,
NodebalancerId = 456,
ConfigId = 789,
});
});
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()
.id(123)
.nodebalancerId(456)
.configId(789)
.build());
}
}
variables:
my-node:
fn::invoke:
Function: linode:getNodeBalancerNode
Arguments:
id: 123
nodebalancerId: 456
configId: 789
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:
- 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.
- 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.
- config
Id Integer - The ID of the config that contains the Node.
- id Integer
- The node's ID.
- nodebalancer
Id Integer - The ID of the NodeBalancer that contains the node.
- config
Id number - The ID of the config that contains the Node.
- id number
- The node's ID.
- nodebalancer
Id 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.
- config
Id Number - The ID of the config that contains the Node.
- id Number
- The node's ID.
- nodebalancer
Id 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.
- Config
Id 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 toreject
this backend will not receive traffic. If set todrain
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 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.
- Config
Id 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 toreject
this backend will not receive traffic. If set todrain
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 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.
- config
Id 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 toreject
this backend will not receive traffic. If set todrain
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 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.
- config
Id 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 toreject
this backend will not receive traffic. If set todrain
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 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 toreject
this backend will not receive traffic. If set todrain
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.
- config
Id 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 toreject
this backend will not receive traffic. If set todrain
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 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
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.