View Details of the Load Balancer
/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/loadbalancer
On Oracle Cloud Infrastructure: The Oracle-managed load balancer is an instance of Oracle Cloud Infrastructure Load Balancing that is automatically configured and managed for you by Oracle Cloud when the service instance is created with either configureLoadBalancer
or useIdentityService
set to true
. This endpoint does not apply to a service instance that is configured to an Oracle Cloud Infrastructure Load Balancing instance that you have created and configured yourself.
On Cloud Infrastructure Classic and Oracle Cloud at Customer: The Oracle-managed load balancer runs on Oracle Cloud Infrastructure Load Balancing Classic. It is automatically configured and managed for you by Oracle Cloud when Oracle Identity Cloud Service is enabled on the service instance during provisioning.
Request
-
identityDomainId: string
Identity domain ID for the Oracle Java Cloud Service account.
-
serviceId: string
Name of the Oracle Java Cloud Service instance.
-
Authorization: string
Base64 encoded user name and password separated by a colon or OAuth access token obtained from Oracle Identity Cloud Service. See Authenticate.
-
X-ID-TENANT-NAME: string
Identity domain ID for the Oracle Java Cloud Service account.
Response
- application/json
200 Response
See Status Codes for information about other possible HTTP status codes.
object
-
PUBLIC(optional):
object PUBLIC
Groups details of the Oracle-managed load balancer for the Oracle Java Cloud Service instance.
object
-
configurationSettings(optional):
object configurationSettings
Configuration settings of the load balancer.
-
disabled(optional):
boolean
Flag that specifies whether the load balancer is enabled or disabled.
-
displayName(optional):
string
Dispay name of the load balancer.
-
listeners(optional):
array listeners
Groups load balancer listener details.
-
loadBalancerAdminUrl(optional):
string
Load Balancer Admin URL.
-
loadBalancerConsoleUrl(optional):
string
Load Balancer Console URL.
-
permanentUrl(optional):
string
Permanent URL.
-
permanentUrls(optional):
array permanentUrls
List of permanent URLs.
-
policies(optional):
array policies
Groups load balancer policy details.
-
restrictions(optional):
object restrictions
Load balancer restrictions.
-
role(optional):
string
Role type.
-
type(optional):
string
Load balancer type. Valid value is
Public
orPrivate
. -
url(optional):
string
Friendly URL.
-
urls(optional):
array urls
List of friendly URLs.
object
-
connectionDrainTimeoutSecs(optional):
integer
The time period after which the load balancer stops sending new connections or requests to origin servers that are disabled or unhealthy or deregistered. The connection drain timeout allows the load balancer to complete in-flight requests gracefully.
-
idleTimeoutSecs(optional):
integer
The time period after which the load balancer closes a connection (client or back-end) if no data has been sent or received over the connection during the specified time.
-
tcpEstablishTimeoutSecs(optional):
integer
Timeout for the TCP connection establishment from load balancer to origin server. Default is 20 seconds. Increasing this results in a longer overall response time in case of transient unavailability of origin servers.
object
-
permittedHttpMethods(optional):
array permittedHttpMethods
Groups permitted methods on the load balancer.
object
-
disabled(optional):
boolean
Flag that specifies whether the listener is enabled or disabled.
-
name(optional):
string
Unique identifier for the listener.
-
originServerPool(optional):
object originServerPool
Origin servers to which the load balancer routes its requests.
-
pathPrefix(optional):
array pathPrefix
List of URI path prefixes for which this listener may be selected depending on other routing criteria.
-
permanentUrl(optional):
array permanentUrl
List of permanent urls.
-
policyNames(optional):
array policyNames
List of policies applicable to a listener.
-
url(optional):
array url
List of virtual host listener urls.
object
-
healthCheck(optional):
object healthCheck
Health Check configuration for the load balancer, which can perform regular health checks of the origin server pool and route inbound traffic to the healthy origin servers.
-
originServers(optional):
array originServers
List of origin servers under the listener.
array
object
-
accepted_return_codes(optional):
array accepted_return_codes
List of HTTP response status codes that indicate the origin server is healthy. List is displayed only when the health check
type
ishttp
.Accepted return codes can be one or more of the 2xx, 3xx, 4xx, or 5xx codes. If no code is specified then all 2xx and 3xx status codes are considered healthy.
-
enabled(optional):
boolean
Flag that specifies whether health check is enforced.
true
means health check is enforced. If unspecified, it means health check is disabled. -
healthCheckIntervalSecs(optional):
integer
The approximate interval, in seconds, that the load balancer will wait before sending the target request to each origin server.
-
healthCheckTimeoutSecs(optional):
integer
The amount of time, in seconds, that the load balancer will wait without a response before identifying the origin server as unavailable.
-
healthyThreshold(optional):
integer
The number of consecutive successful health checks required before moving the origin server to the healthy state. If no value is specified then 6 is considered as the healthy threshold value by default.
-
path(optional):
string
The path of the HTTP health check requests. This applies only when the health check
type
ishttp
.A value of
/
means all paths. -
type(optional):
string
The health check mechanism to use to test the origin servers.
A value of
HTTP
means the load balancer will send an HTTP HEAD request to the origin servers. The HTTP request path is defined inpath
. The origin server is considered healthy if the HTTP response status code matches one of those inaccepted_return_codes
. -
unHealthyThreshold(optional):
integer
The number of consecutive health check failures required before moving the origin server to the unhealthy state. If no value is specified then 3 is considered as the unhealthy threshold value by default.
array
type
is http
.Accepted return codes can be one or more of the 2xx, 3xx, 4xx, or 5xx codes. If no code is specified then all 2xx and 3xx status codes are considered healthy.
object
-
disabled(optional):
boolean
Flag that specifies whether the host is disabled.
-
hostname(optional):
string
Host IP address or DNS name.
-
port(optional):
integer
Port.
On Oracle Cloud Infrastructure: The backend server port against which to run the health check. If the port is not specified, the load balancer uses the port information from the
Backend
object.
object
-
conditions(optional):
array conditions
Access control rule for the policy type
AllowAccessPolicy
. -
load_balancing_mechanism(optional):
string
Type of load balancing mechanism for the policy type
LoadBalancingMechanismPolicy
.This is the type of load balancing mechanism for distributing client requests across multiple origin servers. Valid values include:
round robin
,ip hash
,least connections
-
name(optional):
string
Unique identifier for the policy.
-
type(optional):
string
Type of policy. Valid values include:
LoadBalancingMechanismPolicy
,AppCookieStickinessPolicy
,LBCookieStickinessPolicy
,SetRequestHeaderPolicy
,AllowAccessPolicy
array
AllowAccessPolicy
.object
-
attributeName(optional):
string
Type of source the load balancer is to allow access. Valid value:
SOURCE_IP_ADDRESS
orSOURCE_VCN_ID
andSOURCE_VCN_IP_ADDRESS
. -
attributeValue(optional):
string
For
SOURCE_IP_ADDRESS
, a user-specified IP address or address range in CIDR format. ForSOURCE_VCN_ID
andSOURCE_VCN_IP_ADDRESS
, the ID of a virtual cloud network (VCN) and the IP address range within the VCN.The load balancer denies access to traffic that does not match the specified source value.
array
Examples
The following example shows how to retrieve details about the Oracle-managed load balancer by submitting a GET request on the REST resource using cURL.
Note: The command in the example uses the URL structure https://rest_server_url/resource-path
, where rest_server_url
is the REST server to contact for your identity domain (or Cloud Account). See Send Requests.
cURL Command
curl -i -X GET -u username:password -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/loadbalancer
Example of Response Header
The following shows an example of the response header.
HTTP/2 200
server: Oracle-Application-Server-11g
strict-transport-security: max-age=31536000;includeSubDomains
x-oracle-dms-ecid: 005Si5C5F636uHFpR0H7id0004m^0001K5
x-oracle-dms-ecid: 005Si5C5F636uHFpR0H7id0004m^0001K5
x-frame-options: DENY
content-language: en
content-type: application/json
vary: user-agent
date: Wed, 08 Aug 2018 00:07:38 GMT
content-length: 1913
Example of Response Body
The following shows an example of the PUBLIC
object for an instance provisioned in Oracle Cloud Infrastructure.
{
"PUBLIC":{
"displayName":"exampleinstance-loadbalancer-1",
"role":"PRIMARY",
"url":"https:\/\/ExampleInstance-cloudaccountname-someurl:443",
"permanentUrl":"https:\/\/alongstring-someurl:443",
"urls":[
"https:\/\/ExampleInstance-cloudaccountname-someurl:443"
],
"permanentUrls":[
"https:\/\/alongstring-someurl:443"
],
"loadBalancerAdminUrl":"https:\/\/iaas.us-ashburn-1.oraclecloud.com\/20170115\/loadBalancers\/ocid1.loadbalancer.oc1.iad.verylongstring",
"type":"Public",
"vanityUrls":[],
"configurationSettings":{
"connectionDrainTimeoutSecs":300,
"idleTimeoutSecs":60,
"tcpEstablishTimeoutSecs":20
},
"policies":[
{
"name":"somename_1_exampleinstance_cluster",
"type":"LoadBalancingMechanismPolicy",
"load_balancing_mechanism":"round_robin"
},
{
"name": "requestHeaderPolicy",
"type": "SetRequestHeaderPolicy",
"header_name": "WL-PROXY-SSL",
"value": "true",
"action_when_hdr_exists": "OVERWRITE"
},
{
"name": "accessrule01",
"type": "AllowAccessPolicy",
"description": "Allow traffic from clients whose IP address is in 192.0.2.254/24",
"conditions": [
{
"attributeName": "SOURCE_IP_ADDRESS",
"attributeValue": "192.0.2.254/24"
}
]
}
],
"listeners":[
{
"name":"listener_http_443",
"disabled":false,
"url":[
"https:\/\/ExampleInstance-cloudaccountname-someurl:443"
],
"permanentUrl":[
"https:\/\/alongstring-someurl:443"
],
"vanityUrls":[],
"policyNames": [
"requestHeaderPolicy"
],
"pathPrefix":[
"\/"
],
"originServerPool":{
"originServers":[
{
"hostname":"ipaddress1",
"port":9075,
"disabled":false
},
{
"hostname":"ipaddress2",
"port":9075,
"disabled":false
}
],
"healthCheck":{
"enabled":true,
"healthCheckIntervalSecs":30,
"healthCheckTarget":"http:\/",
"healthCheckTimeoutSecs":15,
"healthyThreshold":2,
"unHealthyThreshold":2
},
"disabled":false
}
}
],
"disabled":false
}
}
The following shows an example of the PUBLIC
object for an instance provisioned in Oracle Cloud Infrastructure Classic.
{
"PUBLIC": {
"displayName": "exampleinstance-loadbalancer-1",
"role": "PRIMARY",
"url": "https://ExampleInstance-cloudaccountname.uscom-east-1.oraclecloud.com:443",
"permanentUrl": "https://8C9B128D98264EE79AE30CEE2AD200XY.uscom-east-1.oraclecloud.com:443",
"urls": [
"https://ExampleInstance-cloudaccountname.uscom-east-1.oraclecloud.com:443"
],
"permanentUrls": [
"https://8C9B128D98264EE79AE30CEE2AD200XY.uscom-east-1.oraclecloud.com:443"
],
"loadBalancerAdminUrl": "https://lbaas-93f2fb1bbf144abeabbc5c2d4897d3eb.balancer.oraclecloud.com/vlbrs/uscom-east-1/599118-1522765006014",
"loadBalancerConsoleUrl": "https://compute-cacct-bfe7ac6fc8a94d09a47e77536ppp416e.console.oraclecloud.com/mycompute/console/view.html",
"type": "Public",
"vanityUrl": [],
"configurationSettings": {
"connectionDrainTimeoutSecs": 300,
"idleTimeoutSecs": 60,
"tcpEstablishTimeoutSecs": 20
},
"restrictions": {
"permittedHttpMethods": [
"DELETE",
"GET",
"HEAD",
"OPTIONS",
"POST",
"PUT"
]
},
"policies": [
{
"name": "loadBalancingMechanismPolicy",
"type": "LoadBalancingMechanismPolicy",
"load_balancing_mechanism": "round_robin"
}
],
"listeners": [
{
"name": "listener_1_ExampleI_cluster",
"disabled": false,
"url": [
"https://ExampleInstance-cloudaccountname.uscom-east-1.oraclecloud.com:443"
],
"permanentUrl": [
"https://8C9B128D98264EE79AE30CEE2AD200XY.uscom-east-1.oraclecloud.com:443"
],
"pathPrefix": [
"/"
],
"policyNames": [
"loadBalancingMechanismPolicy"
],
"originServerPool": {
"originServers": [
{
"hostname": "111.222.33.444",
"port": 8001,
"disabled": false
},
{
"hostname": "111.222.33.44",
"port": 8001,
"disabled": false
}
],
"healthCheck": {
"enabled": true,
"healthCheckIntervalSecs": 30,
"healthCheckTimeoutSecs": 15,
"healthyThreshold": 2,
"unHealthyThreshold": 2,
"path": "/",
"type": "http",
"accepted_return_codes": [
"2xx",
"3xx",
"4xx"
]
},
"disabled": false
}
}
],
"disabled": false
}
}