Volcengine v0.0.44 published on Sunday, Feb 1, 2026 by Volcengine
Volcengine v0.0.44 published on Sunday, Feb 1, 2026 by Volcengine
Deprecated: volcengine.alb.ListenerHealths has been deprecated in favor of volcengine.alb.getListenerHealths
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 ListenerHealths
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 listenerHealths(args: ListenerHealthsArgs, opts?: InvokeOptions): Promise<ListenerHealthsResult>
function listenerHealthsOutput(args: ListenerHealthsOutputArgs, opts?: InvokeOptions): Output<ListenerHealthsResult>def 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) -> ListenerHealthsResult
def 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[ListenerHealthsResult]func ListenerHealths(ctx *Context, args *ListenerHealthsArgs, opts ...InvokeOption) (*ListenerHealthsResult, error)
func ListenerHealthsOutput(ctx *Context, args *ListenerHealthsOutputArgs, opts ...InvokeOption) ListenerHealthsResultOutputpublic static class ListenerHealths
{
public static Task<ListenerHealthsResult> InvokeAsync(ListenerHealthsArgs args, InvokeOptions? opts = null)
public static Output<ListenerHealthsResult> Invoke(ListenerHealthsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<ListenerHealthsResult> listenerHealths(ListenerHealthsArgs args, InvokeOptions options)
public static Output<ListenerHealthsResult> listenerHealths(ListenerHealthsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:alb:ListenerHealths
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.
ListenerHealths Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Listener
Ids List<string> - Listeners
List<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
[]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<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
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[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
ListenerHealthsListener
- Backend
Servers List<ListenerHealths 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 []ListenerHealths 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<ListenerHealths 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 ListenerHealths 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[ListenerHealths 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.
ListenerHealthsListenerBackendServer
- 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.44 published on Sunday, Feb 1, 2026 by Volcengine
