Listener
Manages a V2 listener resource within OpenStack.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var listener1 = new OpenStack.LoadBalancer.Listener("listener1", new OpenStack.LoadBalancer.ListenerArgs
{
InsertHeaders =
{
{ "X-Forwarded-For", "true" },
},
LoadbalancerId = "d9415786-5f1a-428b-b35f-2f1523e146d2",
Protocol = "HTTP",
ProtocolPort = 8080,
});
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
listener1 = openstack.loadbalancer.Listener("listener1",
insert_headers={
"X-Forwarded-For": "true",
},
loadbalancer_id="d9415786-5f1a-428b-b35f-2f1523e146d2",
protocol="HTTP",
protocol_port=8080)import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const listener1 = new openstack.loadbalancer.Listener("listener_1", {
insertHeaders: {
"X-Forwarded-For": "true",
},
loadbalancerId: "d9415786-5f1a-428b-b35f-2f1523e146d2",
protocol: "HTTP",
protocolPort: 8080,
});Create a Listener Resource
new Listener(name: string, args: ListenerArgs, opts?: CustomResourceOptions);def Listener(resource_name, opts=None, admin_state_up=None, connection_limit=None, default_pool_id=None, default_tls_container_ref=None, description=None, insert_headers=None, loadbalancer_id=None, name=None, protocol=None, protocol_port=None, region=None, sni_container_refs=None, tenant_id=None, timeout_client_data=None, timeout_member_connect=None, timeout_member_data=None, timeout_tcp_inspect=None, __props__=None);func NewListener(ctx *Context, name string, args ListenerArgs, opts ...ResourceOption) (*Listener, error)public Listener(string name, ListenerArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Listener Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Listener resource accepts the following input properties:
- Loadbalancer
Id string The load balancer on which to provision this Listener. Changing this creates a new Listener.
- Protocol string
The protocol - can either be TCP, HTTP, HTTPS, TERMINATED_HTTPS or UDP (supported only in Octavia). Changing this creates a new Listener.
- Protocol
Port int The port on which to listen for client traffic. Changing this creates a new Listener.
- Admin
State boolUp The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- Connection
Limit int The maximum number of connections allowed for the Listener.
- Default
Pool stringId The ID of the default pool with which the Listener is associated.
- Default
Tls stringContainer Ref A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is
TERMINATED_HTTPS. See here for more information.- Description string
Human-readable description for the Listener.
- Insert
Headers Dictionary<string, object> The list of key value pairs representing headers to insert into the request before it is sent to the backend members. Changing this updates the headers of the existing listener.
- Name string
Human-readable name for the Listener. Does not have to be unique.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new Listener.- Sni
Container List<string>Refs A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Tenant
Id string Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.
- Timeout
Client intData The client inactivity timeout in milliseconds.
- Timeout
Member intConnect The member connection timeout in milliseconds.
- Timeout
Member intData The member inactivity timeout in milliseconds.
- Timeout
Tcp intInspect The time in milliseconds, to wait for additional TCP packets for content inspection.
- Loadbalancer
Id string The load balancer on which to provision this Listener. Changing this creates a new Listener.
- Protocol string
The protocol - can either be TCP, HTTP, HTTPS, TERMINATED_HTTPS or UDP (supported only in Octavia). Changing this creates a new Listener.
- Protocol
Port int The port on which to listen for client traffic. Changing this creates a new Listener.
- Admin
State boolUp The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- Connection
Limit int The maximum number of connections allowed for the Listener.
- Default
Pool stringId The ID of the default pool with which the Listener is associated.
- Default
Tls stringContainer Ref A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is
TERMINATED_HTTPS. See here for more information.- Description string
Human-readable description for the Listener.
- Insert
Headers map[string]interface{} The list of key value pairs representing headers to insert into the request before it is sent to the backend members. Changing this updates the headers of the existing listener.
- Name string
Human-readable name for the Listener. Does not have to be unique.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new Listener.- Sni
Container []stringRefs A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Tenant
Id string Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.
- Timeout
Client intData The client inactivity timeout in milliseconds.
- Timeout
Member intConnect The member connection timeout in milliseconds.
- Timeout
Member intData The member inactivity timeout in milliseconds.
- Timeout
Tcp intInspect The time in milliseconds, to wait for additional TCP packets for content inspection.
- loadbalancer
Id string The load balancer on which to provision this Listener. Changing this creates a new Listener.
- protocol string
The protocol - can either be TCP, HTTP, HTTPS, TERMINATED_HTTPS or UDP (supported only in Octavia). Changing this creates a new Listener.
- protocol
Port number The port on which to listen for client traffic. Changing this creates a new Listener.
- admin
State booleanUp The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- connection
Limit number The maximum number of connections allowed for the Listener.
- default
Pool stringId The ID of the default pool with which the Listener is associated.
- default
Tls stringContainer Ref A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is
TERMINATED_HTTPS. See here for more information.- description string
Human-readable description for the Listener.
- insert
Headers {[key: string]: any} The list of key value pairs representing headers to insert into the request before it is sent to the backend members. Changing this updates the headers of the existing listener.
- name string
Human-readable name for the Listener. Does not have to be unique.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new Listener.- sni
Container string[]Refs A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- tenant
Id string Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.
- timeout
Client numberData The client inactivity timeout in milliseconds.
- timeout
Member numberConnect The member connection timeout in milliseconds.
- timeout
Member numberData The member inactivity timeout in milliseconds.
- timeout
Tcp numberInspect The time in milliseconds, to wait for additional TCP packets for content inspection.
- loadbalancer_
id str The load balancer on which to provision this Listener. Changing this creates a new Listener.
- protocol str
The protocol - can either be TCP, HTTP, HTTPS, TERMINATED_HTTPS or UDP (supported only in Octavia). Changing this creates a new Listener.
- protocol_
port float The port on which to listen for client traffic. Changing this creates a new Listener.
- admin_
state_ boolup The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- connection_
limit float The maximum number of connections allowed for the Listener.
- default_
pool_ strid The ID of the default pool with which the Listener is associated.
- default_
tls_ strcontainer_ ref A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is
TERMINATED_HTTPS. See here for more information.- description str
Human-readable description for the Listener.
- insert_
headers Dict[str, Any] The list of key value pairs representing headers to insert into the request before it is sent to the backend members. Changing this updates the headers of the existing listener.
- name str
Human-readable name for the Listener. Does not have to be unique.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new Listener.- sni_
container_ List[str]refs A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- tenant_
id str Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.
- timeout_
client_ floatdata The client inactivity timeout in milliseconds.
- timeout_
member_ floatconnect The member connection timeout in milliseconds.
- timeout_
member_ floatdata The member inactivity timeout in milliseconds.
- timeout_
tcp_ floatinspect The time in milliseconds, to wait for additional TCP packets for content inspection.
Outputs
All input properties are implicitly available as output properties. Additionally, the Listener resource produces the following output properties:
Look up an Existing Listener Resource
Get an existing Listener resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ListenerState, opts?: CustomResourceOptions): Listenerstatic get(resource_name, id, opts=None, admin_state_up=None, connection_limit=None, default_pool_id=None, default_tls_container_ref=None, description=None, insert_headers=None, loadbalancer_id=None, name=None, protocol=None, protocol_port=None, region=None, sni_container_refs=None, tenant_id=None, timeout_client_data=None, timeout_member_connect=None, timeout_member_data=None, timeout_tcp_inspect=None, __props__=None);func GetListener(ctx *Context, name string, id IDInput, state *ListenerState, opts ...ResourceOption) (*Listener, error)public static Listener Get(string name, Input<string> id, ListenerState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Admin
State boolUp The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- Connection
Limit int The maximum number of connections allowed for the Listener.
- Default
Pool stringId The ID of the default pool with which the Listener is associated.
- Default
Tls stringContainer Ref A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is
TERMINATED_HTTPS. See here for more information.- Description string
Human-readable description for the Listener.
- Insert
Headers Dictionary<string, object> The list of key value pairs representing headers to insert into the request before it is sent to the backend members. Changing this updates the headers of the existing listener.
- Loadbalancer
Id string The load balancer on which to provision this Listener. Changing this creates a new Listener.
- Name string
Human-readable name for the Listener. Does not have to be unique.
- Protocol string
The protocol - can either be TCP, HTTP, HTTPS, TERMINATED_HTTPS or UDP (supported only in Octavia). Changing this creates a new Listener.
- Protocol
Port int The port on which to listen for client traffic. Changing this creates a new Listener.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new Listener.- Sni
Container List<string>Refs A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Tenant
Id string Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.
- Timeout
Client intData The client inactivity timeout in milliseconds.
- Timeout
Member intConnect The member connection timeout in milliseconds.
- Timeout
Member intData The member inactivity timeout in milliseconds.
- Timeout
Tcp intInspect The time in milliseconds, to wait for additional TCP packets for content inspection.
- Admin
State boolUp The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- Connection
Limit int The maximum number of connections allowed for the Listener.
- Default
Pool stringId The ID of the default pool with which the Listener is associated.
- Default
Tls stringContainer Ref A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is
TERMINATED_HTTPS. See here for more information.- Description string
Human-readable description for the Listener.
- Insert
Headers map[string]interface{} The list of key value pairs representing headers to insert into the request before it is sent to the backend members. Changing this updates the headers of the existing listener.
- Loadbalancer
Id string The load balancer on which to provision this Listener. Changing this creates a new Listener.
- Name string
Human-readable name for the Listener. Does not have to be unique.
- Protocol string
The protocol - can either be TCP, HTTP, HTTPS, TERMINATED_HTTPS or UDP (supported only in Octavia). Changing this creates a new Listener.
- Protocol
Port int The port on which to listen for client traffic. Changing this creates a new Listener.
- Region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new Listener.- Sni
Container []stringRefs A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Tenant
Id string Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.
- Timeout
Client intData The client inactivity timeout in milliseconds.
- Timeout
Member intConnect The member connection timeout in milliseconds.
- Timeout
Member intData The member inactivity timeout in milliseconds.
- Timeout
Tcp intInspect The time in milliseconds, to wait for additional TCP packets for content inspection.
- admin
State booleanUp The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- connection
Limit number The maximum number of connections allowed for the Listener.
- default
Pool stringId The ID of the default pool with which the Listener is associated.
- default
Tls stringContainer Ref A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is
TERMINATED_HTTPS. See here for more information.- description string
Human-readable description for the Listener.
- insert
Headers {[key: string]: any} The list of key value pairs representing headers to insert into the request before it is sent to the backend members. Changing this updates the headers of the existing listener.
- loadbalancer
Id string The load balancer on which to provision this Listener. Changing this creates a new Listener.
- name string
Human-readable name for the Listener. Does not have to be unique.
- protocol string
The protocol - can either be TCP, HTTP, HTTPS, TERMINATED_HTTPS or UDP (supported only in Octavia). Changing this creates a new Listener.
- protocol
Port number The port on which to listen for client traffic. Changing this creates a new Listener.
- region string
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new Listener.- sni
Container string[]Refs A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- tenant
Id string Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.
- timeout
Client numberData The client inactivity timeout in milliseconds.
- timeout
Member numberConnect The member connection timeout in milliseconds.
- timeout
Member numberData The member inactivity timeout in milliseconds.
- timeout
Tcp numberInspect The time in milliseconds, to wait for additional TCP packets for content inspection.
- admin_
state_ boolup The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- connection_
limit float The maximum number of connections allowed for the Listener.
- default_
pool_ strid The ID of the default pool with which the Listener is associated.
- default_
tls_ strcontainer_ ref A reference to a Barbican Secrets container which stores TLS information. This is required if the protocol is
TERMINATED_HTTPS. See here for more information.- description str
Human-readable description for the Listener.
- insert_
headers Dict[str, Any] The list of key value pairs representing headers to insert into the request before it is sent to the backend members. Changing this updates the headers of the existing listener.
- loadbalancer_
id str The load balancer on which to provision this Listener. Changing this creates a new Listener.
- name str
Human-readable name for the Listener. Does not have to be unique.
- protocol str
The protocol - can either be TCP, HTTP, HTTPS, TERMINATED_HTTPS or UDP (supported only in Octavia). Changing this creates a new Listener.
- protocol_
port float The port on which to listen for client traffic. Changing this creates a new Listener.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to create an . If omitted, the
regionargument of the provider is used. Changing this creates a new Listener.- sni_
container_ List[str]refs A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- tenant_
id str Required for admins. The UUID of the tenant who owns the Listener. Only administrative users can specify a tenant UUID other than their own. Changing this creates a new Listener.
- timeout_
client_ floatdata The client inactivity timeout in milliseconds.
- timeout_
member_ floatconnect The member connection timeout in milliseconds.
- timeout_
member_ floatdata The member inactivity timeout in milliseconds.
- timeout_
tcp_ floatinspect The time in milliseconds, to wait for additional TCP packets for content inspection.
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.