Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.alb.getListeners
Explore with Pulumi AI
Use this data source to query detailed information of alb listeners
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.alb.getListeners({});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.alb.get_listeners()
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.GetListeners(ctx, nil, 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 foo = Volcengine.Alb.GetListeners.Invoke();
});
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.GetListenersArgs;
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 foo = AlbFunctions.getListeners();
}
}
variables:
foo:
fn::invoke:
Function: volcengine:alb:getListeners
Arguments: {}
Using getListeners
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 getListeners(args: GetListenersArgs, opts?: InvokeOptions): Promise<GetListenersResult>
function getListenersOutput(args: GetListenersOutputArgs, opts?: InvokeOptions): Output<GetListenersResult>
def get_listeners(ids: Optional[Sequence[str]] = None,
listener_name: Optional[str] = None,
load_balancer_id: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetListenersResult
def get_listeners_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
listener_name: Optional[pulumi.Input[str]] = None,
load_balancer_id: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
project_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetListenersResult]
func GetListeners(ctx *Context, args *GetListenersArgs, opts ...InvokeOption) (*GetListenersResult, error)
func GetListenersOutput(ctx *Context, args *GetListenersOutputArgs, opts ...InvokeOption) GetListenersResultOutput
> Note: This function is named GetListeners
in the Go SDK.
public static class GetListeners
{
public static Task<GetListenersResult> InvokeAsync(GetListenersArgs args, InvokeOptions? opts = null)
public static Output<GetListenersResult> Invoke(GetListenersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetListenersResult> getListeners(GetListenersArgs args, InvokeOptions options)
public static Output<GetListenersResult> getListeners(GetListenersArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:alb/getListeners:getListeners
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of Listener IDs.
- Listener
Name string - The name of the Listener.
- Load
Balancer stringId - The id of the Alb.
- Name
Regex string - A Name Regex of Listener.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of the listener.
- Ids []string
- A list of Listener IDs.
- Listener
Name string - The name of the Listener.
- Load
Balancer stringId - The id of the Alb.
- Name
Regex string - A Name Regex of Listener.
- Output
File string - File name where to save data source results.
- Project
Name string - The project name of the listener.
- ids List<String>
- A list of Listener IDs.
- listener
Name String - The name of the Listener.
- load
Balancer StringId - The id of the Alb.
- name
Regex String - A Name Regex of Listener.
- output
File String - File name where to save data source results.
- project
Name String - The project name of the listener.
- ids string[]
- A list of Listener IDs.
- listener
Name string - The name of the Listener.
- load
Balancer stringId - The id of the Alb.
- name
Regex string - A Name Regex of Listener.
- output
File string - File name where to save data source results.
- project
Name string - The project name of the listener.
- ids Sequence[str]
- A list of Listener IDs.
- listener_
name str - The name of the Listener.
- load_
balancer_ strid - The id of the Alb.
- name_
regex str - A Name Regex of Listener.
- output_
file str - File name where to save data source results.
- project_
name str - The project name of the listener.
- ids List<String>
- A list of Listener IDs.
- listener
Name String - The name of the Listener.
- load
Balancer StringId - The id of the Alb.
- name
Regex String - A Name Regex of Listener.
- output
File String - File name where to save data source results.
- project
Name String - The project name of the listener.
getListeners Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Listeners
List<Get
Listeners Listener> - The collection of Listener query.
- Total
Count int - The total count of Listener query.
- Ids List<string>
- Listener
Name string - The name of the Listener.
- Load
Balancer stringId - The load balancer ID that the listener belongs to.
- Name
Regex string - Output
File string - Project
Name string - The project name of the listener.
- Id string
- The provider-assigned unique ID for this managed resource.
- Listeners
[]Get
Listeners Listener - The collection of Listener query.
- Total
Count int - The total count of Listener query.
- Ids []string
- Listener
Name string - The name of the Listener.
- Load
Balancer stringId - The load balancer ID that the listener belongs to.
- Name
Regex string - Output
File string - Project
Name string - The project name of the listener.
- id String
- The provider-assigned unique ID for this managed resource.
- listeners
List<Get
Listeners Listener> - The collection of Listener query.
- total
Count Integer - The total count of Listener query.
- ids List<String>
- listener
Name String - The name of the Listener.
- load
Balancer StringId - The load balancer ID that the listener belongs to.
- name
Regex String - output
File String - project
Name String - The project name of the listener.
- id string
- The provider-assigned unique ID for this managed resource.
- listeners
Get
Listeners Listener[] - The collection of Listener query.
- total
Count number - The total count of Listener query.
- ids string[]
- listener
Name string - The name of the Listener.
- load
Balancer stringId - The load balancer ID that the listener belongs to.
- name
Regex string - output
File string - project
Name string - The project name of the listener.
- id str
- The provider-assigned unique ID for this managed resource.
- listeners
Sequence[Get
Listeners Listener] - The collection of Listener query.
- total_
count int - The total count of Listener query.
- ids Sequence[str]
- listener_
name str - The name of the Listener.
- load_
balancer_ strid - The load balancer ID that the listener belongs to.
- name_
regex str - output_
file str - project_
name str - The project name of the listener.
- id String
- The provider-assigned unique ID for this managed resource.
- listeners List<Property Map>
- The collection of Listener query.
- total
Count Number - The total count of Listener query.
- ids List<String>
- listener
Name String - The name of the Listener.
- load
Balancer StringId - The load balancer ID that the listener belongs to.
- name
Regex String - output
File String - project
Name String - The project name of the listener.
Supporting Types
GetListenersListener
- Acl
Ids List<string> - The ID of the access control policy group bound to the listener, only returned when the AclStatus parameter is on.
- Acl
Status string - Whether to enable the access control function,valid value is on or off.
- Acl
Type string - The access control type.
- Ca
Certificate stringId - CA certificate ID associated with HTTPS listener.
- Cert
Center stringCertificate Id - The certificate id associated with the listener. Source is
cert_center
. - Certificate
Id string - The server certificate ID that domain used.
- Certificate
Source string - The source of the certificate.
- Create
Time string - The create time of the Listener.
- Customized
Cfg stringId - The customized configuration ID, the value is empty string when not bound.
- Description string
- The description of listener.
- Domain
Extensions List<GetListeners Listener Domain Extension> - The HTTPS listener association list of extension domains for.
- Enable
Http2 string - The HTTP2 feature switch,valid value is on or off.
- Enable
Quic string - The QUIC feature switch,valid value is on or off.
- Enabled string
- The enable status of the Listener.
- Id string
- The ID of the Listener.
- Listener
Id string - The ID of the Listener.
- Listener
Name string - The name of the Listener.
- Load
Balancer stringId - The id of the Alb.
- Port int
- The port receiving request of the Listener.
- Project
Name string - The project name of the listener.
- Protocol string
- The protocol of the Listener.
- Server
Group stringId - The ID of server group.
- Server
Groups List<GetListeners Listener Server Group> - The list of server groups with associated listeners.
- Status string
- The status of the Listener.
- Update
Time string - The update time of the Listener.
- Acl
Ids []string - The ID of the access control policy group bound to the listener, only returned when the AclStatus parameter is on.
- Acl
Status string - Whether to enable the access control function,valid value is on or off.
- Acl
Type string - The access control type.
- Ca
Certificate stringId - CA certificate ID associated with HTTPS listener.
- Cert
Center stringCertificate Id - The certificate id associated with the listener. Source is
cert_center
. - Certificate
Id string - The server certificate ID that domain used.
- Certificate
Source string - The source of the certificate.
- Create
Time string - The create time of the Listener.
- Customized
Cfg stringId - The customized configuration ID, the value is empty string when not bound.
- Description string
- The description of listener.
- Domain
Extensions []GetListeners Listener Domain Extension - The HTTPS listener association list of extension domains for.
- Enable
Http2 string - The HTTP2 feature switch,valid value is on or off.
- Enable
Quic string - The QUIC feature switch,valid value is on or off.
- Enabled string
- The enable status of the Listener.
- Id string
- The ID of the Listener.
- Listener
Id string - The ID of the Listener.
- Listener
Name string - The name of the Listener.
- Load
Balancer stringId - The id of the Alb.
- Port int
- The port receiving request of the Listener.
- Project
Name string - The project name of the listener.
- Protocol string
- The protocol of the Listener.
- Server
Group stringId - The ID of server group.
- Server
Groups []GetListeners Listener Server Group - The list of server groups with associated listeners.
- Status string
- The status of the Listener.
- Update
Time string - The update time of the Listener.
- acl
Ids List<String> - The ID of the access control policy group bound to the listener, only returned when the AclStatus parameter is on.
- acl
Status String - Whether to enable the access control function,valid value is on or off.
- acl
Type String - The access control type.
- ca
Certificate StringId - CA certificate ID associated with HTTPS listener.
- cert
Center StringCertificate Id - The certificate id associated with the listener. Source is
cert_center
. - certificate
Id String - The server certificate ID that domain used.
- certificate
Source String - The source of the certificate.
- create
Time String - The create time of the Listener.
- customized
Cfg StringId - The customized configuration ID, the value is empty string when not bound.
- description String
- The description of listener.
- domain
Extensions List<GetListeners Listener Domain Extension> - The HTTPS listener association list of extension domains for.
- enable
Http2 String - The HTTP2 feature switch,valid value is on or off.
- enable
Quic String - The QUIC feature switch,valid value is on or off.
- enabled String
- The enable status of the Listener.
- id String
- The ID of the Listener.
- listener
Id String - The ID of the Listener.
- listener
Name String - The name of the Listener.
- load
Balancer StringId - The id of the Alb.
- port Integer
- The port receiving request of the Listener.
- project
Name String - The project name of the listener.
- protocol String
- The protocol of the Listener.
- server
Group StringId - The ID of server group.
- server
Groups List<GetListeners Listener Server Group> - The list of server groups with associated listeners.
- status String
- The status of the Listener.
- update
Time String - The update time of the Listener.
- acl
Ids string[] - The ID of the access control policy group bound to the listener, only returned when the AclStatus parameter is on.
- acl
Status string - Whether to enable the access control function,valid value is on or off.
- acl
Type string - The access control type.
- ca
Certificate stringId - CA certificate ID associated with HTTPS listener.
- cert
Center stringCertificate Id - The certificate id associated with the listener. Source is
cert_center
. - certificate
Id string - The server certificate ID that domain used.
- certificate
Source string - The source of the certificate.
- create
Time string - The create time of the Listener.
- customized
Cfg stringId - The customized configuration ID, the value is empty string when not bound.
- description string
- The description of listener.
- domain
Extensions GetListeners Listener Domain Extension[] - The HTTPS listener association list of extension domains for.
- enable
Http2 string - The HTTP2 feature switch,valid value is on or off.
- enable
Quic string - The QUIC feature switch,valid value is on or off.
- enabled string
- The enable status of the Listener.
- id string
- The ID of the Listener.
- listener
Id string - The ID of the Listener.
- listener
Name string - The name of the Listener.
- load
Balancer stringId - The id of the Alb.
- port number
- The port receiving request of the Listener.
- project
Name string - The project name of the listener.
- protocol string
- The protocol of the Listener.
- server
Group stringId - The ID of server group.
- server
Groups GetListeners Listener Server Group[] - The list of server groups with associated listeners.
- status string
- The status of the Listener.
- update
Time string - The update time of the Listener.
- acl_
ids Sequence[str] - The ID of the access control policy group bound to the listener, only returned when the AclStatus parameter is on.
- acl_
status str - Whether to enable the access control function,valid value is on or off.
- acl_
type str - The access control type.
- ca_
certificate_ strid - CA certificate ID associated with HTTPS listener.
- cert_
center_ strcertificate_ id - The certificate id associated with the listener. Source is
cert_center
. - certificate_
id str - The server certificate ID that domain used.
- certificate_
source str - The source of the certificate.
- create_
time str - The create time of the Listener.
- customized_
cfg_ strid - The customized configuration ID, the value is empty string when not bound.
- description str
- The description of listener.
- domain_
extensions Sequence[GetListeners Listener Domain Extension] - The HTTPS listener association list of extension domains for.
- enable_
http2 str - The HTTP2 feature switch,valid value is on or off.
- enable_
quic str - The QUIC feature switch,valid value is on or off.
- enabled str
- The enable status of the Listener.
- id str
- The ID of the Listener.
- listener_
id str - The ID of the Listener.
- listener_
name str - The name of the Listener.
- load_
balancer_ strid - The id of the Alb.
- port int
- The port receiving request of the Listener.
- project_
name str - The project name of the listener.
- protocol str
- The protocol of the Listener.
- server_
group_ strid - The ID of server group.
- server_
groups Sequence[GetListeners Listener Server Group] - The list of server groups with associated listeners.
- status str
- The status of the Listener.
- update_
time str - The update time of the Listener.
- acl
Ids List<String> - The ID of the access control policy group bound to the listener, only returned when the AclStatus parameter is on.
- acl
Status String - Whether to enable the access control function,valid value is on or off.
- acl
Type String - The access control type.
- ca
Certificate StringId - CA certificate ID associated with HTTPS listener.
- cert
Center StringCertificate Id - The certificate id associated with the listener. Source is
cert_center
. - certificate
Id String - The server certificate ID that domain used.
- certificate
Source String - The source of the certificate.
- create
Time String - The create time of the Listener.
- customized
Cfg StringId - The customized configuration ID, the value is empty string when not bound.
- description String
- The description of listener.
- domain
Extensions List<Property Map> - The HTTPS listener association list of extension domains for.
- enable
Http2 String - The HTTP2 feature switch,valid value is on or off.
- enable
Quic String - The QUIC feature switch,valid value is on or off.
- enabled String
- The enable status of the Listener.
- id String
- The ID of the Listener.
- listener
Id String - The ID of the Listener.
- listener
Name String - The name of the Listener.
- load
Balancer StringId - The id of the Alb.
- port Number
- The port receiving request of the Listener.
- project
Name String - The project name of the listener.
- protocol String
- The protocol of the Listener.
- server
Group StringId - The ID of server group.
- server
Groups List<Property Map> - The list of server groups with associated listeners.
- status String
- The status of the Listener.
- update
Time String - The update time of the Listener.
GetListenersListenerDomainExtension
- Certificate
Id string - The server certificate ID that domain used.
- Domain string
- The domain.
- Domain
Extension stringId - The extension domain ID.
- Listener
Id string - The ID of the Listener.
- Certificate
Id string - The server certificate ID that domain used.
- Domain string
- The domain.
- Domain
Extension stringId - The extension domain ID.
- Listener
Id string - The ID of the Listener.
- certificate
Id String - The server certificate ID that domain used.
- domain String
- The domain.
- domain
Extension StringId - The extension domain ID.
- listener
Id String - The ID of the Listener.
- certificate
Id string - The server certificate ID that domain used.
- domain string
- The domain.
- domain
Extension stringId - The extension domain ID.
- listener
Id string - The ID of the Listener.
- certificate_
id str - The server certificate ID that domain used.
- domain str
- The domain.
- domain_
extension_ strid - The extension domain ID.
- listener_
id str - The ID of the Listener.
- certificate
Id String - The server certificate ID that domain used.
- domain String
- The domain.
- domain
Extension StringId - The extension domain ID.
- listener
Id String - The ID of the Listener.
GetListenersListenerServerGroup
- Server
Group stringId - The ID of server group.
- Server
Group stringName - The name of server group.
- Server
Group stringId - The ID of server group.
- Server
Group stringName - The name of server group.
- server
Group StringId - The ID of server group.
- server
Group StringName - The name of server group.
- server
Group stringId - The ID of server group.
- server
Group stringName - The name of server group.
- server_
group_ strid - The ID of server group.
- server_
group_ strname - The name of server group.
- server
Group StringId - The ID of server group.
- server
Group StringName - The name of server group.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.