openstack.loadbalancer.Listener
Explore with Pulumi AI
Manages a V2 listener resource within OpenStack.
Note: This resource has attributes that depend on octavia minor versions. Please ensure your Openstack cloud supports the required minor version.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const listener1 = new openstack.loadbalancer.Listener("listener_1", {
protocol: "HTTP",
protocolPort: 8080,
loadbalancerId: "d9415786-5f1a-428b-b35f-2f1523e146d2",
insertHeaders: {
"X-Forwarded-For": "true",
},
});
import pulumi
import pulumi_openstack as openstack
listener1 = openstack.loadbalancer.Listener("listener_1",
protocol="HTTP",
protocol_port=8080,
loadbalancer_id="d9415786-5f1a-428b-b35f-2f1523e146d2",
insert_headers={
"X-Forwarded-For": "true",
})
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v4/go/openstack/loadbalancer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := loadbalancer.NewListener(ctx, "listener_1", &loadbalancer.ListenerArgs{
Protocol: pulumi.String("HTTP"),
ProtocolPort: pulumi.Int(8080),
LoadbalancerId: pulumi.String("d9415786-5f1a-428b-b35f-2f1523e146d2"),
InsertHeaders: pulumi.Map{
"X-Forwarded-For": pulumi.Any("true"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var listener1 = new OpenStack.LoadBalancer.Listener("listener_1", new()
{
Protocol = "HTTP",
ProtocolPort = 8080,
LoadbalancerId = "d9415786-5f1a-428b-b35f-2f1523e146d2",
InsertHeaders =
{
{ "X-Forwarded-For", "true" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.loadbalancer.Listener;
import com.pulumi.openstack.loadbalancer.ListenerArgs;
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) {
var listener1 = new Listener("listener1", ListenerArgs.builder()
.protocol("HTTP")
.protocolPort(8080)
.loadbalancerId("d9415786-5f1a-428b-b35f-2f1523e146d2")
.insertHeaders(Map.of("X-Forwarded-For", "true"))
.build());
}
}
resources:
listener1:
type: openstack:loadbalancer:Listener
name: listener_1
properties:
protocol: HTTP
protocolPort: 8080
loadbalancerId: d9415786-5f1a-428b-b35f-2f1523e146d2
insertHeaders:
X-Forwarded-For: 'true'
Create Listener Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Listener(name: string, args: ListenerArgs, opts?: CustomResourceOptions);
@overload
def Listener(resource_name: str,
args: ListenerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Listener(resource_name: str,
opts: Optional[ResourceOptions] = None,
loadbalancer_id: Optional[str] = None,
protocol_port: Optional[int] = None,
protocol: Optional[str] = None,
name: Optional[str] = None,
allowed_cidrs: Optional[Sequence[str]] = None,
description: Optional[str] = None,
insert_headers: Optional[Mapping[str, Any]] = None,
default_pool_id: Optional[str] = None,
admin_state_up: Optional[bool] = None,
connection_limit: Optional[int] = None,
default_tls_container_ref: Optional[str] = None,
region: Optional[str] = None,
sni_container_refs: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[str] = None,
timeout_client_data: Optional[int] = None,
timeout_member_connect: Optional[int] = None,
timeout_member_data: Optional[int] = None,
timeout_tcp_inspect: Optional[int] = None)
func NewListener(ctx *Context, name string, args ListenerArgs, opts ...ResourceOption) (*Listener, error)
public Listener(string name, ListenerArgs args, CustomResourceOptions? opts = null)
public Listener(String name, ListenerArgs args)
public Listener(String name, ListenerArgs args, CustomResourceOptions options)
type: openstack:loadbalancer:Listener
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- 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.
- args ListenerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control 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.
- name String
- The unique name of the resource.
- args ListenerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var listenerResource = new OpenStack.LoadBalancer.Listener("listenerResource", new()
{
LoadbalancerId = "string",
ProtocolPort = 0,
Protocol = "string",
Name = "string",
AllowedCidrs = new[]
{
"string",
},
Description = "string",
InsertHeaders =
{
{ "string", "any" },
},
DefaultPoolId = "string",
AdminStateUp = false,
ConnectionLimit = 0,
DefaultTlsContainerRef = "string",
Region = "string",
SniContainerRefs = new[]
{
"string",
},
Tags = new[]
{
"string",
},
TenantId = "string",
TimeoutClientData = 0,
TimeoutMemberConnect = 0,
TimeoutMemberData = 0,
TimeoutTcpInspect = 0,
});
example, err := loadbalancer.NewListener(ctx, "listenerResource", &loadbalancer.ListenerArgs{
LoadbalancerId: pulumi.String("string"),
ProtocolPort: pulumi.Int(0),
Protocol: pulumi.String("string"),
Name: pulumi.String("string"),
AllowedCidrs: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
InsertHeaders: pulumi.Map{
"string": pulumi.Any("any"),
},
DefaultPoolId: pulumi.String("string"),
AdminStateUp: pulumi.Bool(false),
ConnectionLimit: pulumi.Int(0),
DefaultTlsContainerRef: pulumi.String("string"),
Region: pulumi.String("string"),
SniContainerRefs: pulumi.StringArray{
pulumi.String("string"),
},
Tags: pulumi.StringArray{
pulumi.String("string"),
},
TenantId: pulumi.String("string"),
TimeoutClientData: pulumi.Int(0),
TimeoutMemberConnect: pulumi.Int(0),
TimeoutMemberData: pulumi.Int(0),
TimeoutTcpInspect: pulumi.Int(0),
})
var listenerResource = new Listener("listenerResource", ListenerArgs.builder()
.loadbalancerId("string")
.protocolPort(0)
.protocol("string")
.name("string")
.allowedCidrs("string")
.description("string")
.insertHeaders(Map.of("string", "any"))
.defaultPoolId("string")
.adminStateUp(false)
.connectionLimit(0)
.defaultTlsContainerRef("string")
.region("string")
.sniContainerRefs("string")
.tags("string")
.tenantId("string")
.timeoutClientData(0)
.timeoutMemberConnect(0)
.timeoutMemberData(0)
.timeoutTcpInspect(0)
.build());
listener_resource = openstack.loadbalancer.Listener("listenerResource",
loadbalancer_id="string",
protocol_port=0,
protocol="string",
name="string",
allowed_cidrs=["string"],
description="string",
insert_headers={
"string": "any",
},
default_pool_id="string",
admin_state_up=False,
connection_limit=0,
default_tls_container_ref="string",
region="string",
sni_container_refs=["string"],
tags=["string"],
tenant_id="string",
timeout_client_data=0,
timeout_member_connect=0,
timeout_member_data=0,
timeout_tcp_inspect=0)
const listenerResource = new openstack.loadbalancer.Listener("listenerResource", {
loadbalancerId: "string",
protocolPort: 0,
protocol: "string",
name: "string",
allowedCidrs: ["string"],
description: "string",
insertHeaders: {
string: "any",
},
defaultPoolId: "string",
adminStateUp: false,
connectionLimit: 0,
defaultTlsContainerRef: "string",
region: "string",
sniContainerRefs: ["string"],
tags: ["string"],
tenantId: "string",
timeoutClientData: 0,
timeoutMemberConnect: 0,
timeoutMemberData: 0,
timeoutTcpInspect: 0,
});
type: openstack:loadbalancer:Listener
properties:
adminStateUp: false
allowedCidrs:
- string
connectionLimit: 0
defaultPoolId: string
defaultTlsContainerRef: string
description: string
insertHeaders:
string: any
loadbalancerId: string
name: string
protocol: string
protocolPort: 0
region: string
sniContainerRefs:
- string
tags:
- string
tenantId: string
timeoutClientData: 0
timeoutMemberConnect: 0
timeoutMemberData: 0
timeoutTcpInspect: 0
Listener Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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).
- Allowed
Cidrs List<string> - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- 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
region
argument 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.
- List<string>
- 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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).
- Allowed
Cidrs []string - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- 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
region
argument 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.
- []string
- 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). Changing this creates a new Listener.
- protocol
Port Integer - 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).
- allowed
Cidrs List<String> - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- connection
Limit Integer - 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,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
region
argument 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.
- List<String>
- 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 IntegerData - The client inactivity timeout in milliseconds.
- timeout
Member IntegerConnect - The member connection timeout in milliseconds.
- timeout
Member IntegerData - The member inactivity timeout in milliseconds.
- timeout
Tcp IntegerInspect - 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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).
- allowed
Cidrs string[] - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- 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
region
argument 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.
- string[]
- 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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).
- allowed_
cidrs Sequence[str] - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- connection_
limit int - 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 Mapping[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
region
argument of the provider is used. Changing this creates a new Listener. - sni_
container_ Sequence[str]refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Sequence[str]
- 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_ 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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).
- allowed
Cidrs List<String> - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- 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 Map<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
region
argument 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.
- List<String>
- 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the Listener resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up 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): Listener
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
admin_state_up: Optional[bool] = None,
allowed_cidrs: Optional[Sequence[str]] = None,
connection_limit: Optional[int] = None,
default_pool_id: Optional[str] = None,
default_tls_container_ref: Optional[str] = None,
description: Optional[str] = None,
insert_headers: Optional[Mapping[str, Any]] = None,
loadbalancer_id: Optional[str] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
protocol_port: Optional[int] = None,
region: Optional[str] = None,
sni_container_refs: Optional[Sequence[str]] = None,
tags: Optional[Sequence[str]] = None,
tenant_id: Optional[str] = None,
timeout_client_data: Optional[int] = None,
timeout_member_connect: Optional[int] = None,
timeout_member_data: Optional[int] = None,
timeout_tcp_inspect: Optional[int] = None) -> Listener
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)
public static Listener get(String name, Output<String> id, ListenerState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Admin
State boolUp - The administrative state of the Listener. A valid value is true (UP) or false (DOWN).
- Allowed
Cidrs List<string> - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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
region
argument 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.
- List<string>
- 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).
- Allowed
Cidrs []string - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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
region
argument 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.
- []string
- 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).
- allowed
Cidrs List<String> - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- connection
Limit Integer - 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,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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). Changing this creates a new Listener.
- protocol
Port Integer - 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
region
argument 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.
- List<String>
- 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 IntegerData - The client inactivity timeout in milliseconds.
- timeout
Member IntegerConnect - The member connection timeout in milliseconds.
- timeout
Member IntegerData - The member inactivity timeout in milliseconds.
- timeout
Tcp IntegerInspect - 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).
- allowed
Cidrs string[] - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- 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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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
region
argument 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.
- string[]
- 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).
- allowed_
cidrs Sequence[str] - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- connection_
limit int - 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 Mapping[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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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 str
- The region in which to obtain the V2 Networking client.
A Networking client is needed to create an . If omitted, the
region
argument of the provider is used. Changing this creates a new Listener. - sni_
container_ Sequence[str]refs - A list of references to Barbican Secrets containers which store SNI information. See here for more information.
- Sequence[str]
- 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_ 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).
- allowed
Cidrs List<String> - A list of CIDR blocks that are permitted to connect to this listener, denying all other source addresses. If not present, defaults to allow all.
- 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 Map<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, UDP, SCTP (supported only in Octavia minor version >= 2.23) or PROMETHEUS (supported only in Octavia minor version >=2.25). 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
region
argument 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.
- List<String>
- 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.
Import
Load Balancer Listener can be imported using the Listener ID, e.g.:
$ pulumi import openstack:loadbalancer/listener:Listener listener_1 b67ce64e-8b26-405d-afeb-4a078901f15a
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.