ionoscloud.getApplicationLoadbalancer
Explore with Pulumi AI
The Application Load Balancer data source can be used to search for and return an existing Application Load Balancer. You can provide a string for the name parameter which will be compared with provisioned Application Load Balancers. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search and make sure that your resources have unique names.
Example Usage
By Id
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getApplicationLoadbalancer({
datacenterId: ionoscloud_datacenter.example.id,
id: "alb_id",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_application_loadbalancer(datacenter_id=ionoscloud_datacenter["example"]["id"],
id="alb_id")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupApplicationLoadbalancer(ctx, &ionoscloud.LookupApplicationLoadbalancerArgs{
DatacenterId: ionoscloud_datacenter.Example.Id,
Id: pulumi.StringRef("alb_id"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.GetApplicationLoadbalancer.Invoke(new()
{
DatacenterId = ionoscloud_datacenter.Example.Id,
Id = "alb_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetApplicationLoadbalancerArgs;
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 example = IonoscloudFunctions.getApplicationLoadbalancer(GetApplicationLoadbalancerArgs.builder()
.datacenterId(ionoscloud_datacenter.example().id())
.id("alb_id")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getApplicationLoadbalancer
arguments:
datacenterId: ${ionoscloud_datacenter.example.id}
id: alb_id
By Name
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getApplicationLoadbalancer({
datacenterId: ionoscloud_datacenter.example.id,
name: "ALB name",
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_application_loadbalancer(datacenter_id=ionoscloud_datacenter["example"]["id"],
name="ALB name")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupApplicationLoadbalancer(ctx, &ionoscloud.LookupApplicationLoadbalancerArgs{
DatacenterId: ionoscloud_datacenter.Example.Id,
Name: pulumi.StringRef("ALB name"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.GetApplicationLoadbalancer.Invoke(new()
{
DatacenterId = ionoscloud_datacenter.Example.Id,
Name = "ALB name",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetApplicationLoadbalancerArgs;
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 example = IonoscloudFunctions.getApplicationLoadbalancer(GetApplicationLoadbalancerArgs.builder()
.datacenterId(ionoscloud_datacenter.example().id())
.name("ALB name")
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getApplicationLoadbalancer
arguments:
datacenterId: ${ionoscloud_datacenter.example.id}
name: ALB name
By Name with Partial Match
import * as pulumi from "@pulumi/pulumi";
import * as ionoscloud from "@pulumi/ionoscloud";
const example = ionoscloud.getApplicationLoadbalancer({
datacenterId: ionoscloud_datacenter.example.id,
name: "name",
partialMatch: true,
});
import pulumi
import pulumi_ionoscloud as ionoscloud
example = ionoscloud.get_application_loadbalancer(datacenter_id=ionoscloud_datacenter["example"]["id"],
name="name",
partial_match=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ionoscloud.LookupApplicationLoadbalancer(ctx, &ionoscloud.LookupApplicationLoadbalancerArgs{
DatacenterId: ionoscloud_datacenter.Example.Id,
Name: pulumi.StringRef("name"),
PartialMatch: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ionoscloud = Pulumi.Ionoscloud;
return await Deployment.RunAsync(() =>
{
var example = Ionoscloud.GetApplicationLoadbalancer.Invoke(new()
{
DatacenterId = ionoscloud_datacenter.Example.Id,
Name = "name",
PartialMatch = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ionoscloud.IonoscloudFunctions;
import com.pulumi.ionoscloud.inputs.GetApplicationLoadbalancerArgs;
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 example = IonoscloudFunctions.getApplicationLoadbalancer(GetApplicationLoadbalancerArgs.builder()
.datacenterId(ionoscloud_datacenter.example().id())
.name("name")
.partialMatch(true)
.build());
}
}
variables:
example:
fn::invoke:
function: ionoscloud:getApplicationLoadbalancer
arguments:
datacenterId: ${ionoscloud_datacenter.example.id}
name: name
partialMatch: true
Using getApplicationLoadbalancer
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 getApplicationLoadbalancer(args: GetApplicationLoadbalancerArgs, opts?: InvokeOptions): Promise<GetApplicationLoadbalancerResult>
function getApplicationLoadbalancerOutput(args: GetApplicationLoadbalancerOutputArgs, opts?: InvokeOptions): Output<GetApplicationLoadbalancerResult>
def get_application_loadbalancer(datacenter_id: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
partial_match: Optional[bool] = None,
timeouts: Optional[GetApplicationLoadbalancerTimeouts] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationLoadbalancerResult
def get_application_loadbalancer_output(datacenter_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
partial_match: Optional[pulumi.Input[bool]] = None,
timeouts: Optional[pulumi.Input[GetApplicationLoadbalancerTimeoutsArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationLoadbalancerResult]
func LookupApplicationLoadbalancer(ctx *Context, args *LookupApplicationLoadbalancerArgs, opts ...InvokeOption) (*LookupApplicationLoadbalancerResult, error)
func LookupApplicationLoadbalancerOutput(ctx *Context, args *LookupApplicationLoadbalancerOutputArgs, opts ...InvokeOption) LookupApplicationLoadbalancerResultOutput
> Note: This function is named LookupApplicationLoadbalancer
in the Go SDK.
public static class GetApplicationLoadbalancer
{
public static Task<GetApplicationLoadbalancerResult> InvokeAsync(GetApplicationLoadbalancerArgs args, InvokeOptions? opts = null)
public static Output<GetApplicationLoadbalancerResult> Invoke(GetApplicationLoadbalancerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationLoadbalancerResult> getApplicationLoadbalancer(GetApplicationLoadbalancerArgs args, InvokeOptions options)
public static Output<GetApplicationLoadbalancerResult> getApplicationLoadbalancer(GetApplicationLoadbalancerArgs args, InvokeOptions options)
fn::invoke:
function: ionoscloud:index/getApplicationLoadbalancer:getApplicationLoadbalancer
arguments:
# arguments dictionary
The following arguments are supported:
- Datacenter
Id string - Datacenter's UUID.
- Id string
- ID of the application load balancer you want to search for.
- Name string
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - Partial
Match bool Whether partial matching is allowed or not when using name argument. Default value is false.
datacenter_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- Timeouts
Get
Application Loadbalancer Timeouts
- Datacenter
Id string - Datacenter's UUID.
- Id string
- ID of the application load balancer you want to search for.
- Name string
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - Partial
Match bool Whether partial matching is allowed or not when using name argument. Default value is false.
datacenter_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- Timeouts
Get
Application Loadbalancer Timeouts
- datacenter
Id String - Datacenter's UUID.
- id String
- ID of the application load balancer you want to search for.
- name String
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - partial
Match Boolean Whether partial matching is allowed or not when using name argument. Default value is false.
datacenter_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- timeouts
Get
Application Loadbalancer Timeouts
- datacenter
Id string - Datacenter's UUID.
- id string
- ID of the application load balancer you want to search for.
- name string
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - partial
Match boolean Whether partial matching is allowed or not when using name argument. Default value is false.
datacenter_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- timeouts
Get
Application Loadbalancer Timeouts
- datacenter_
id str - Datacenter's UUID.
- id str
- ID of the application load balancer you want to search for.
- name str
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - partial_
match bool Whether partial matching is allowed or not when using name argument. Default value is false.
datacenter_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- timeouts
Get
Application Loadbalancer Timeouts
- datacenter
Id String - Datacenter's UUID.
- id String
- ID of the application load balancer you want to search for.
- name String
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true. - partial
Match Boolean Whether partial matching is allowed or not when using name argument. Default value is false.
datacenter_id
and eithername
orid
must be provided. If none, or both ofname
andid
are provided, the datasource will return an error.- timeouts Property Map
getApplicationLoadbalancer Result
The following output properties are available:
- Central
Logging bool - Turn logging on and off for this product. Default value is 'false'.
- Datacenter
Id string - Flowlogs
List<Get
Application Loadbalancer Flowlog> - Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
- Id string
- Id of the application load balancer.
- Ips List<string>
- Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
- Lb
Private List<string>Ips - Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
- Listener
Lan double - ID of the listening (inbound) LAN.
- Logging
Format string - Name string
- Specifies the name of the flow log.
- Target
Lan double - ID of the balanced private target LAN (outbound).
- Partial
Match bool - Timeouts
Get
Application Loadbalancer Timeouts
- Central
Logging bool - Turn logging on and off for this product. Default value is 'false'.
- Datacenter
Id string - Flowlogs
[]Get
Application Loadbalancer Flowlog - Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
- Id string
- Id of the application load balancer.
- Ips []string
- Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
- Lb
Private []stringIps - Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
- Listener
Lan float64 - ID of the listening (inbound) LAN.
- Logging
Format string - Name string
- Specifies the name of the flow log.
- Target
Lan float64 - ID of the balanced private target LAN (outbound).
- Partial
Match bool - Timeouts
Get
Application Loadbalancer Timeouts
- central
Logging Boolean - Turn logging on and off for this product. Default value is 'false'.
- datacenter
Id String - flowlogs
List<Get
Application Loadbalancer Flowlog> - Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
- id String
- Id of the application load balancer.
- ips List<String>
- Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
- lb
Private List<String>Ips - Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
- listener
Lan Double - ID of the listening (inbound) LAN.
- logging
Format String - name String
- Specifies the name of the flow log.
- target
Lan Double - ID of the balanced private target LAN (outbound).
- partial
Match Boolean - timeouts
Get
Application Loadbalancer Timeouts
- central
Logging boolean - Turn logging on and off for this product. Default value is 'false'.
- datacenter
Id string - flowlogs
Get
Application Loadbalancer Flowlog[] - Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
- id string
- Id of the application load balancer.
- ips string[]
- Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
- lb
Private string[]Ips - Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
- listener
Lan number - ID of the listening (inbound) LAN.
- logging
Format string - name string
- Specifies the name of the flow log.
- target
Lan number - ID of the balanced private target LAN (outbound).
- partial
Match boolean - timeouts
Get
Application Loadbalancer Timeouts
- central_
logging bool - Turn logging on and off for this product. Default value is 'false'.
- datacenter_
id str - flowlogs
Sequence[Get
Application Loadbalancer Flowlog] - Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
- id str
- Id of the application load balancer.
- ips Sequence[str]
- Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
- lb_
private_ Sequence[str]ips - Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
- listener_
lan float - ID of the listening (inbound) LAN.
- logging_
format str - name str
- Specifies the name of the flow log.
- target_
lan float - ID of the balanced private target LAN (outbound).
- partial_
match bool - timeouts
Get
Application Loadbalancer Timeouts
- central
Logging Boolean - Turn logging on and off for this product. Default value is 'false'.
- datacenter
Id String - flowlogs List<Property Map>
- Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
- id String
- Id of the application load balancer.
- ips List<String>
- Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
- lb
Private List<String>Ips - Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
- listener
Lan Number - ID of the listening (inbound) LAN.
- logging
Format String - name String
- Specifies the name of the flow log.
- target
Lan Number - ID of the balanced private target LAN (outbound).
- partial
Match Boolean - timeouts Property Map
Supporting Types
GetApplicationLoadbalancerFlowlog
- Action string
- Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
- Bucket string
- Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
- Direction string
- Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
- Id string
- ID of the application load balancer you want to search for.
- Name string
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true.
- Action string
- Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
- Bucket string
- Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
- Direction string
- Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
- Id string
- ID of the application load balancer you want to search for.
- Name string
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true.
- action String
- Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
- bucket String
- Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
- direction String
- Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
- id String
- ID of the application load balancer you want to search for.
- name String
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true.
- action string
- Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
- bucket string
- Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
- direction string
- Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
- id string
- ID of the application load balancer you want to search for.
- name string
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true.
- action str
- Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
- bucket str
- Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
- direction str
- Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
- id str
- ID of the application load balancer you want to search for.
- name str
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true.
- action String
- Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
- bucket String
- Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
- direction String
- Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
- id String
- ID of the application load balancer you want to search for.
- name String
- Name of an existing application load balancer that you want to search for. Search by name is case-insensitive. The whole resource name is required if
partial_match
parameter is not set to true.
GetApplicationLoadbalancerTimeouts
Package Details
- Repository
- ionoscloud ionos-cloud/terraform-provider-ionoscloud
- License
- Notes
- This Pulumi package is based on the
ionoscloud
Terraform Provider.