get Listeners
This data source provides the Application Load Balancer (ALB) Listeners of the current Alibaba Cloud user.
NOTE: Available in v1.133.0+.
Example Usage
Basic Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.alb.AlbFunctions;
import com.pulumi.alicloud.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 ids = AlbFunctions.getListeners(GetListenersArgs.builder()
.ids("example_id")
.build());
ctx.export("albListenerId1", ids.applyValue(getListenersResult -> getListenersResult.listeners()[0].id()));
}
}
Return
A collection of values returned by getListeners.
Parameters
A collection of arguments for invoking getListeners.
Return
A collection of values returned by getListeners.
See also
Parameters
Default to false
. Set it to true
can output more details about resource attributes.
A list of Listener IDs.
The listener ids.
Snooping Protocols. Valid Values: HTTP
, HTTPS
Or QUIC
.
The load balancer ids.
File name where to save data source results (after running pulumi preview
).
The association status between the ACL and the listener. Valid values: Associating
, Associated
Or Dissociating
. Associating
: The ACL is being associated with the listener. Associated
: The ACL is associated with the listener. Dissociating
: The ACL is being disassociated from the listener.
Return
A collection of values returned by getListeners.
See also
Parameters
Builder for com.pulumi.alicloud.alb.kotlin.inputs.GetListenersPlainArgs.