Skip to main content

listeners

Creates, updates, deletes, gets or lists a listeners resource.

Overview​

Namelisteners
TypeResource
Idoci.load_balancer.listeners

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
createinsertloadBalancerId, region, defaultBackendSetName, name, port, protocolopc-request-id, opc-retry-tokenAdds a listener to a load balancer.
updateupdateloadBalancerId, listenerName, region, defaultBackendSetName, port, protocolopc-request-id, opc-retry-tokenUpdates a listener for a given load balancer.
deletedeleteloadBalancerId, listenerName, regionopc-request-idDeletes a listener from a load balancer.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
listenerNamestringThe name of the listener to delete. Example: example_listener
loadBalancerIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the load balancer associated with the listener to delete.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
opc-request-idstringThe unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations (e.g., if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected).

INSERT examples​

Adds a listener to a load balancer.

INSERT INTO oci.load_balancer.listeners (
connectionConfiguration,
defaultBackendSetName,
hostnameNames,
name,
pathRouteSetName,
port,
protocol,
routingPolicyName,
ruleSetNames,
sslConfiguration,
loadBalancerId,
region,
opc-request-id,
opc-retry-token
)
SELECT
'{{ connectionConfiguration }}',
'{{ defaultBackendSetName }}' /* required */,
'{{ hostnameNames }}',
'{{ name }}' /* required */,
'{{ pathRouteSetName }}',
{{ port }} /* required */,
'{{ protocol }}' /* required */,
'{{ routingPolicyName }}',
'{{ ruleSetNames }}',
'{{ sslConfiguration }}',
'{{ loadBalancerId }}',
'{{ region }}',
'{{ opc-request-id }}',
'{{ opc-retry-token }}'
;

UPDATE examples​

Updates a listener for a given load balancer.

UPDATE oci.load_balancer.listeners
SET
connectionConfiguration = '{{ connectionConfiguration }}',
defaultBackendSetName = '{{ defaultBackendSetName }}',
hostnameNames = '{{ hostnameNames }}',
pathRouteSetName = '{{ pathRouteSetName }}',
port = {{ port }},
protocol = '{{ protocol }}',
routingPolicyName = '{{ routingPolicyName }}',
ruleSetNames = '{{ ruleSetNames }}',
sslConfiguration = '{{ sslConfiguration }}'
WHERE
loadBalancerId = '{{ loadBalancerId }}' --required
AND listenerName = '{{ listenerName }}' --required
AND region = '{{ region }}' --required
AND defaultBackendSetName = '{{ defaultBackendSetName }}' --required
AND port = '{{ port }}' --required
AND protocol = '{{ protocol }}' --required
AND opc-request-id = '{{ opc-request-id}}'
AND opc-retry-token = '{{ opc-retry-token}}';

DELETE examples​

Deletes a listener from a load balancer.

DELETE FROM oci.load_balancer.listeners
WHERE loadBalancerId = '{{ loadBalancerId }}' --required
AND listenerName = '{{ listenerName }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id }}'
;