Linode v4.30.1 published on Thursday, Nov 21, 2024 by Pulumi
linode.getNodeBalancer
Explore with Pulumi AI
Provides details about a Linode NodeBalancer. For more information, see the Linode APIv4 docs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
const my-nodebalancer = linode.getNodeBalancer({
id: 123,
});
import pulumi
import pulumi_linode as linode
my_nodebalancer = linode.get_node_balancer(id=123)
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.LookupNodeBalancer(ctx, &linode.LookupNodeBalancerArgs{
Id: 123,
}, 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_nodebalancer = Linode.GetNodeBalancer.Invoke(new()
{
Id = 123,
});
});
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.GetNodeBalancerArgs;
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-nodebalancer = LinodeFunctions.getNodeBalancer(GetNodeBalancerArgs.builder()
.id(123)
.build());
}
}
variables:
my-nodebalancer:
fn::invoke:
Function: linode:getNodeBalancer
Arguments:
id: 123
Using getNodeBalancer
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 getNodeBalancer(args: GetNodeBalancerArgs, opts?: InvokeOptions): Promise<GetNodeBalancerResult>
function getNodeBalancerOutput(args: GetNodeBalancerOutputArgs, opts?: InvokeOptions): Output<GetNodeBalancerResult>
def get_node_balancer(firewalls: Optional[Sequence[GetNodeBalancerFirewall]] = None,
id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetNodeBalancerResult
def get_node_balancer_output(firewalls: Optional[pulumi.Input[Sequence[pulumi.Input[GetNodeBalancerFirewallArgs]]]] = None,
id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNodeBalancerResult]
func LookupNodeBalancer(ctx *Context, args *LookupNodeBalancerArgs, opts ...InvokeOption) (*LookupNodeBalancerResult, error)
func LookupNodeBalancerOutput(ctx *Context, args *LookupNodeBalancerOutputArgs, opts ...InvokeOption) LookupNodeBalancerResultOutput
> Note: This function is named LookupNodeBalancer
in the Go SDK.
public static class GetNodeBalancer
{
public static Task<GetNodeBalancerResult> InvokeAsync(GetNodeBalancerArgs args, InvokeOptions? opts = null)
public static Output<GetNodeBalancerResult> Invoke(GetNodeBalancerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNodeBalancerResult> getNodeBalancer(GetNodeBalancerArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: linode:index/getNodeBalancer:getNodeBalancer
arguments:
# arguments dictionary
The following arguments are supported:
- Id int
- The NodeBalancer's ID.
- Firewalls
List<Get
Node Balancer Firewall>
- Id int
- The NodeBalancer's ID.
- Firewalls
[]Get
Node Balancer Firewall
- id Integer
- The NodeBalancer's ID.
- firewalls
List<Get
Node Balancer Firewall>
- id number
- The NodeBalancer's ID.
- firewalls
Get
Node Balancer Firewall[]
- id int
- The NodeBalancer's ID.
- firewalls
Sequence[Get
Node Balancer Firewall]
- id Number
- The NodeBalancer's ID.
- firewalls List<Property Map>
getNodeBalancer Result
The following output properties are available:
- Client
Conn intThrottle - Throttle connections per second (0-20).
- Created string
- When this firewall was created.
- Hostname string
- This NodeBalancer's hostname, ending with .ip.linodeusercontent.com
- Id int
- The Firewall's ID.
- Ipv4 string
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- Ipv6 string
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- Label string
- Used to identify this rule. For display purposes only.
- Region string
- The Region where this Linode NodeBalancer is located. NodeBalancers only support backends in the same Region.
- List<string>
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- Transfers
List<Get
Node Balancer Transfer> - Updated string
- When this firewall was last updated.
- Firewalls
List<Get
Node Balancer Firewall>
- Client
Conn intThrottle - Throttle connections per second (0-20).
- Created string
- When this firewall was created.
- Hostname string
- This NodeBalancer's hostname, ending with .ip.linodeusercontent.com
- Id int
- The Firewall's ID.
- Ipv4 string
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- Ipv6 string
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- Label string
- Used to identify this rule. For display purposes only.
- Region string
- The Region where this Linode NodeBalancer is located. NodeBalancers only support backends in the same Region.
- []string
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- Transfers
[]Get
Node Balancer Transfer - Updated string
- When this firewall was last updated.
- Firewalls
[]Get
Node Balancer Firewall
- client
Conn IntegerThrottle - Throttle connections per second (0-20).
- created String
- When this firewall was created.
- hostname String
- This NodeBalancer's hostname, ending with .ip.linodeusercontent.com
- id Integer
- The Firewall's ID.
- ipv4 String
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6 String
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label String
- Used to identify this rule. For display purposes only.
- region String
- The Region where this Linode NodeBalancer is located. NodeBalancers only support backends in the same Region.
- List<String>
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- transfers
List<Get
Node Balancer Transfer> - updated String
- When this firewall was last updated.
- firewalls
List<Get
Node Balancer Firewall>
- client
Conn numberThrottle - Throttle connections per second (0-20).
- created string
- When this firewall was created.
- hostname string
- This NodeBalancer's hostname, ending with .ip.linodeusercontent.com
- id number
- The Firewall's ID.
- ipv4 string
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6 string
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label string
- Used to identify this rule. For display purposes only.
- region string
- The Region where this Linode NodeBalancer is located. NodeBalancers only support backends in the same Region.
- string[]
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- transfers
Get
Node Balancer Transfer[] - updated string
- When this firewall was last updated.
- firewalls
Get
Node Balancer Firewall[]
- client_
conn_ intthrottle - Throttle connections per second (0-20).
- created str
- When this firewall was created.
- hostname str
- This NodeBalancer's hostname, ending with .ip.linodeusercontent.com
- id int
- The Firewall's ID.
- ipv4 str
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6 str
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label str
- Used to identify this rule. For display purposes only.
- region str
- The Region where this Linode NodeBalancer is located. NodeBalancers only support backends in the same Region.
- Sequence[str]
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- transfers
Sequence[Get
Node Balancer Transfer] - updated str
- When this firewall was last updated.
- firewalls
Sequence[Get
Node Balancer Firewall]
- client
Conn NumberThrottle - Throttle connections per second (0-20).
- created String
- When this firewall was created.
- hostname String
- This NodeBalancer's hostname, ending with .ip.linodeusercontent.com
- id Number
- The Firewall's ID.
- ipv4 String
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6 String
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label String
- Used to identify this rule. For display purposes only.
- region String
- The Region where this Linode NodeBalancer is located. NodeBalancers only support backends in the same Region.
- List<String>
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- transfers List<Property Map>
- updated String
- When this firewall was last updated.
- firewalls List<Property Map>
Supporting Types
GetNodeBalancerFirewall
- Created string
- When this firewall was created.
- Id int
- The NodeBalancer's ID.
- Inbound
Policy string - The default behavior for inbound traffic. (
ACCEPT
,DROP
) - Label string
- Used to identify this rule. For display purposes only.
- Outbound
Policy string - The default behavior for outbound traffic. (
ACCEPT
,DROP
) - Status string
- The status of the firewall. (
enabled
,disabled
,deleted
) - List<string>
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- Updated string
- When this firewall was last updated.
- Inbounds
List<Get
Node Balancer Firewall Inbound> - A set of firewall rules that specify what inbound network traffic is allowed.
- Outbounds
List<Get
Node Balancer Firewall Outbound> - A set of firewall rules that specify what outbound network traffic is allowed.
- Created string
- When this firewall was created.
- Id int
- The NodeBalancer's ID.
- Inbound
Policy string - The default behavior for inbound traffic. (
ACCEPT
,DROP
) - Label string
- Used to identify this rule. For display purposes only.
- Outbound
Policy string - The default behavior for outbound traffic. (
ACCEPT
,DROP
) - Status string
- The status of the firewall. (
enabled
,disabled
,deleted
) - []string
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- Updated string
- When this firewall was last updated.
- Inbounds
[]Get
Node Balancer Firewall Inbound - A set of firewall rules that specify what inbound network traffic is allowed.
- Outbounds
[]Get
Node Balancer Firewall Outbound - A set of firewall rules that specify what outbound network traffic is allowed.
- created String
- When this firewall was created.
- id Integer
- The NodeBalancer's ID.
- inbound
Policy String - The default behavior for inbound traffic. (
ACCEPT
,DROP
) - label String
- Used to identify this rule. For display purposes only.
- outbound
Policy String - The default behavior for outbound traffic. (
ACCEPT
,DROP
) - status String
- The status of the firewall. (
enabled
,disabled
,deleted
) - List<String>
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- updated String
- When this firewall was last updated.
- inbounds
List<Get
Node Balancer Firewall Inbound> - A set of firewall rules that specify what inbound network traffic is allowed.
- outbounds
List<Get
Node Balancer Firewall Outbound> - A set of firewall rules that specify what outbound network traffic is allowed.
- created string
- When this firewall was created.
- id number
- The NodeBalancer's ID.
- inbound
Policy string - The default behavior for inbound traffic. (
ACCEPT
,DROP
) - label string
- Used to identify this rule. For display purposes only.
- outbound
Policy string - The default behavior for outbound traffic. (
ACCEPT
,DROP
) - status string
- The status of the firewall. (
enabled
,disabled
,deleted
) - string[]
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- updated string
- When this firewall was last updated.
- inbounds
Get
Node Balancer Firewall Inbound[] - A set of firewall rules that specify what inbound network traffic is allowed.
- outbounds
Get
Node Balancer Firewall Outbound[] - A set of firewall rules that specify what outbound network traffic is allowed.
- created str
- When this firewall was created.
- id int
- The NodeBalancer's ID.
- inbound_
policy str - The default behavior for inbound traffic. (
ACCEPT
,DROP
) - label str
- Used to identify this rule. For display purposes only.
- outbound_
policy str - The default behavior for outbound traffic. (
ACCEPT
,DROP
) - status str
- The status of the firewall. (
enabled
,disabled
,deleted
) - Sequence[str]
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- updated str
- When this firewall was last updated.
- inbounds
Sequence[Get
Node Balancer Firewall Inbound] - A set of firewall rules that specify what inbound network traffic is allowed.
- outbounds
Sequence[Get
Node Balancer Firewall Outbound] - A set of firewall rules that specify what outbound network traffic is allowed.
- created String
- When this firewall was created.
- id Number
- The NodeBalancer's ID.
- inbound
Policy String - The default behavior for inbound traffic. (
ACCEPT
,DROP
) - label String
- Used to identify this rule. For display purposes only.
- outbound
Policy String - The default behavior for outbound traffic. (
ACCEPT
,DROP
) - status String
- The status of the firewall. (
enabled
,disabled
,deleted
) - List<String>
- The tags applied to the firewall. Tags are case-insensitive and are for organizational purposes only.
- updated String
- When this firewall was last updated.
- inbounds List<Property Map>
- A set of firewall rules that specify what inbound network traffic is allowed.
- outbounds List<Property Map>
- A set of firewall rules that specify what outbound network traffic is allowed.
GetNodeBalancerFirewallInbound
- Action string
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- Ipv4s List<string>
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- Ipv6s List<string>
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- Label string
- Used to identify this rule. For display purposes only.
- Ports string
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- Protocol string
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- Action string
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- Ipv4s []string
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- Ipv6s []string
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- Label string
- Used to identify this rule. For display purposes only.
- Ports string
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- Protocol string
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- action String
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- ipv4s List<String>
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6s List<String>
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label String
- Used to identify this rule. For display purposes only.
- ports String
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- protocol String
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- action string
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- ipv4s string[]
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6s string[]
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label string
- Used to identify this rule. For display purposes only.
- ports string
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- protocol string
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- action str
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- ipv4s Sequence[str]
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6s Sequence[str]
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label str
- Used to identify this rule. For display purposes only.
- ports str
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- protocol str
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- action String
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- ipv4s List<String>
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6s List<String>
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label String
- Used to identify this rule. For display purposes only.
- ports String
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- protocol String
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
GetNodeBalancerFirewallOutbound
- Action string
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- Ipv4s List<string>
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- Ipv6s List<string>
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- Label string
- Used to identify this rule. For display purposes only.
- Ports string
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- Protocol string
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- Action string
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- Ipv4s []string
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- Ipv6s []string
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- Label string
- Used to identify this rule. For display purposes only.
- Ports string
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- Protocol string
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- action String
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- ipv4s List<String>
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6s List<String>
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label String
- Used to identify this rule. For display purposes only.
- ports String
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- protocol String
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- action string
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- ipv4s string[]
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6s string[]
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label string
- Used to identify this rule. For display purposes only.
- ports string
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- protocol string
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- action str
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- ipv4s Sequence[str]
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6s Sequence[str]
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label str
- Used to identify this rule. For display purposes only.
- ports str
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- protocol str
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
- action String
- Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
- ipv4s List<String>
- A list of IPv4 addresses or networks. Must be in IP/mask format.
- ipv6s List<String>
- A list of IPv6 addresses or networks. Must be in IP/mask format.
- label String
- Used to identify this rule. For display purposes only.
- ports String
- A string representation of ports and/or port ranges (i.e. "443" or "80-90, 91").
- protocol String
- The network protocol this rule controls. (
TCP
,UDP
,ICMP
)
GetNodeBalancerTransfer
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linode
Terraform Provider.