Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
Use this data source to query detailed information of alb listener healths
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const example = volcengine.alb.getListenerHealths({
listenerIds: [
"lsn-xoetdjk3dzwg54ov5ewpam7c",
"lsn-bdcxfof3fy808dv40ofappua",
],
onlyUnHealthy: true,
projectName: "default",
});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.alb.get_listener_healths(listener_ids=[
"lsn-xoetdjk3dzwg54ov5ewpam7c",
"lsn-bdcxfof3fy808dv40ofappua",
],
only_un_healthy=True,
project_name="default")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := alb.GetListenerHealths(ctx, &alb.GetListenerHealthsArgs{
ListenerIds: []string{
"lsn-xoetdjk3dzwg54ov5ewpam7c",
"lsn-bdcxfof3fy808dv40ofappua",
},
OnlyUnHealthy: pulumi.BoolRef(true),
ProjectName: pulumi.StringRef("default"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var example = Volcengine.Alb.GetListenerHealths.Invoke(new()
{
ListenerIds = new[]
{
"lsn-xoetdjk3dzwg54ov5ewpam7c",
"lsn-bdcxfof3fy808dv40ofappua",
},
OnlyUnHealthy = true,
ProjectName = "default",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.alb.AlbFunctions;
import com.pulumi.volcengine.alb.inputs.GetListenerHealthsArgs;
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 = AlbFunctions.getListenerHealths(GetListenerHealthsArgs.builder()
.listenerIds(
"lsn-xoetdjk3dzwg54ov5ewpam7c",
"lsn-bdcxfof3fy808dv40ofappua")
.onlyUnHealthy(true)
.projectName("default")
.build());
}
}
variables:
example:
fn::invoke:
Function: volcengine:alb:getListenerHealths
Arguments:
listenerIds:
- lsn-xoetdjk3dzwg54ov5ewpam7c
- lsn-bdcxfof3fy808dv40ofappua
onlyUnHealthy: true
projectName: default
Using getListenerHealths
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 getListenerHealths(args: GetListenerHealthsArgs, opts?: InvokeOptions): Promise<GetListenerHealthsResult>
function getListenerHealthsOutput(args: GetListenerHealthsOutputArgs, opts?: InvokeOptions): Output<GetListenerHealthsResult>def get_listener_healths(listener_ids: Optional[Sequence[str]] = None,
only_un_healthy: Optional[bool] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetListenerHealthsResult
def get_listener_healths_output(listener_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
only_un_healthy: Optional[pulumi.Input[bool]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetListenerHealthsResult]func GetListenerHealths(ctx *Context, args *GetListenerHealthsArgs, opts ...InvokeOption) (*GetListenerHealthsResult, error)
func GetListenerHealthsOutput(ctx *Context, args *GetListenerHealthsOutputArgs, opts ...InvokeOption) GetListenerHealthsResultOutput> Note: This function is named GetListenerHealths in the Go SDK.
public static class GetListenerHealths
{
public static Task<GetListenerHealthsResult> InvokeAsync(GetListenerHealthsArgs args, InvokeOptions? opts = null)
public static Output<GetListenerHealthsResult> Invoke(GetListenerHealthsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetListenerHealthsResult> getListenerHealths(GetListenerHealthsArgs args, InvokeOptions options)
public static Output<GetListenerHealthsResult> getListenerHealths(GetListenerHealthsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:alb/getListenerHealths:getListenerHealths
arguments:
# arguments dictionaryThe following arguments are supported:
- Listener
Ids List<string> - A list of Listener IDs.
- Only
Un boolHealthy - Whether to return only backend servers with abnormal health check status.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of the listener.
- Listener
Ids []string - A list of Listener IDs.
- Only
Un boolHealthy - Whether to return only backend servers with abnormal health check status.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of the listener.
- listener
Ids List<String> - A list of Listener IDs.
- only
Un BooleanHealthy - Whether to return only backend servers with abnormal health check status.
- output
File String - File name where to save data source results.
- project
Name String - The project name of the listener.
- listener
Ids string[] - A list of Listener IDs.
- only
Un booleanHealthy - Whether to return only backend servers with abnormal health check status.
- output
File string - File name where to save data source results.
- project
Name string - The project name of the listener.
- listener_
ids Sequence[str] - A list of Listener IDs.
- only_
un_ boolhealthy - Whether to return only backend servers with abnormal health check status.
- output_
file str - File name where to save data source results.
- project_
name str - The project name of the listener.
- listener
Ids List<String> - A list of Listener IDs.
- only
Un BooleanHealthy - Whether to return only backend servers with abnormal health check status.
- output
File String - File name where to save data source results.
- project
Name String - The project name of the listener.
getListenerHealths Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Ids List<string> - Listeners
List<Get
Listener Healths Listener> - The collection of listener health query.
- Total
Count int - The total count of query.
- Only
Un boolHealthy - Output
File string - Project
Name string
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Ids []string - Listeners
[]Get
Listener Healths Listener - The collection of listener health query.
- Total
Count int - The total count of query.
- Only
Un boolHealthy - Output
File string - Project
Name string
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Ids List<String> - listeners
List<Get
Listener Healths Listener> - The collection of listener health query.
- total
Count Integer - The total count of query.
- only
Un BooleanHealthy - output
File String - project
Name String
- id string
- The provider-assigned unique ID for this managed resource.
- listener
Ids string[] - listeners
Get
Listener Healths Listener[] - The collection of listener health query.
- total
Count number - The total count of query.
- only
Un booleanHealthy - output
File string - project
Name string
- id str
- The provider-assigned unique ID for this managed resource.
- listener_
ids Sequence[str] - listeners
Sequence[Get
Listener Healths Listener] - The collection of listener health query.
- total_
count int - The total count of query.
- only_
un_ boolhealthy - output_
file str - project_
name str
- id String
- The provider-assigned unique ID for this managed resource.
- listener
Ids List<String> - listeners List<Property Map>
- The collection of listener health query.
- total
Count Number - The total count of query.
- only
Un BooleanHealthy - output
File String - project
Name String
Supporting Types
GetListenerHealthsListener
- Backend
Servers List<GetListener Healths Listener Backend Server> - The list of backend server health details.
- Listener
Id string - The ID of the listener.
- Status string
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- Total
Backend intServer Count - The total count of backend servers under the listener.
- Un
Healthy intCount - The count of backend servers with abnormal health check status.
- Backend
Servers []GetListener Healths Listener Backend Server - The list of backend server health details.
- Listener
Id string - The ID of the listener.
- Status string
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- Total
Backend intServer Count - The total count of backend servers under the listener.
- Un
Healthy intCount - The count of backend servers with abnormal health check status.
- backend
Servers List<GetListener Healths Listener Backend Server> - The list of backend server health details.
- listener
Id String - The ID of the listener.
- status String
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- total
Backend IntegerServer Count - The total count of backend servers under the listener.
- un
Healthy IntegerCount - The count of backend servers with abnormal health check status.
- backend
Servers GetListener Healths Listener Backend Server[] - The list of backend server health details.
- listener
Id string - The ID of the listener.
- status string
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- total
Backend numberServer Count - The total count of backend servers under the listener.
- un
Healthy numberCount - The count of backend servers with abnormal health check status.
- backend_
servers Sequence[GetListener Healths Listener Backend Server] - The list of backend server health details.
- listener_
id str - The ID of the listener.
- status str
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- total_
backend_ intserver_ count - The total count of backend servers under the listener.
- un_
healthy_ intcount - The count of backend servers with abnormal health check status.
- backend
Servers List<Property Map> - The list of backend server health details.
- listener
Id String - The ID of the listener.
- status String
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- total
Backend NumberServer Count - The total count of backend servers under the listener.
- un
Healthy NumberCount - The count of backend servers with abnormal health check status.
GetListenerHealthsListenerBackendServer
- Instance
Id string - The ID of the ECS instance or ENI.
- Ip string
- The IP address of the backend server.
- Port int
- The port of the backend server.
- Rule
Number int - The number of forwarding rules associated with the backend server.
- Server
Group stringId - The ID of the backend server group.
- Server
Group stringName - The name of the backend server group.
- Server
Id string - The ID of the backend server.
- Status string
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- Type string
- The type of backend server. Value: ecs, eni.
- Instance
Id string - The ID of the ECS instance or ENI.
- Ip string
- The IP address of the backend server.
- Port int
- The port of the backend server.
- Rule
Number int - The number of forwarding rules associated with the backend server.
- Server
Group stringId - The ID of the backend server group.
- Server
Group stringName - The name of the backend server group.
- Server
Id string - The ID of the backend server.
- Status string
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- Type string
- The type of backend server. Value: ecs, eni.
- instance
Id String - The ID of the ECS instance or ENI.
- ip String
- The IP address of the backend server.
- port Integer
- The port of the backend server.
- rule
Number Integer - The number of forwarding rules associated with the backend server.
- server
Group StringId - The ID of the backend server group.
- server
Group StringName - The name of the backend server group.
- server
Id String - The ID of the backend server.
- status String
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- type String
- The type of backend server. Value: ecs, eni.
- instance
Id string - The ID of the ECS instance or ENI.
- ip string
- The IP address of the backend server.
- port number
- The port of the backend server.
- rule
Number number - The number of forwarding rules associated with the backend server.
- server
Group stringId - The ID of the backend server group.
- server
Group stringName - The name of the backend server group.
- server
Id string - The ID of the backend server.
- status string
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- type string
- The type of backend server. Value: ecs, eni.
- instance_
id str - The ID of the ECS instance or ENI.
- ip str
- The IP address of the backend server.
- port int
- The port of the backend server.
- rule_
number int - The number of forwarding rules associated with the backend server.
- server_
group_ strid - The ID of the backend server group.
- server_
group_ strname - The name of the backend server group.
- server_
id str - The ID of the backend server.
- status str
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- type str
- The type of backend server. Value: ecs, eni.
- instance
Id String - The ID of the ECS instance or ENI.
- ip String
- The IP address of the backend server.
- port Number
- The port of the backend server.
- rule
Number Number - The number of forwarding rules associated with the backend server.
- server
Group StringId - The ID of the backend server group.
- server
Group StringName - The name of the backend server group.
- server
Id String - The ID of the backend server.
- status String
- The status of the listener. Value: Active, Error, NoTarget, Disabled.
- type String
- The type of backend server. Value: ecs, eni.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.45 published on Tuesday, Feb 10, 2026 by Volcengine
