Create an Origin Server Pool
/rest/vlbrs/{compute_region}/{virtual_load_balancer_resource_id}/originserverpools
Request
- application/vnd.com.oracle.oracloud.lbaas.OriginServerPool+json
-
compute_region: string
Name of the compute region
-
virtual_load_balancer_resource_id: string
Name of the Load Balancer
string
Response
- application/vnd.com.oracle.oracloud.lbaas.OriginServerPool+json
200 Response
202 Response
400 Response
500 Response
Examples
cURL Command
The following example shows how to create an origin server pool by submitting a POST
request on the REST resource using cURL. For more information about cURL, see Use cURL.
Enter the command on a single line. Line breaks are used in this example for readability.
curl -i -X POST -H "Content-Type: application/vnd.com.oracle.oracloud.lbaas.OriginServerPool+json" -H "Authorization: Basic d2VibG9naWM6V2VsY29tZTE=" -d "@requestbody.json" "https://serviceId1.balancer.uscom.oraclecloud.com/vlbrs/us1/vlbr1/originserverpools"
serviceId1.balancer.uscom.oraclecloud.com
is an example REST endpoint URL. Change this value to the REST endpoint URL of your Oracle Cloud Infrastructure Load Balancing Classic site. For information about finding out REST endpoint URL for your site, see Send Requests.
Example of Request Body
The following shows an example of the request body content in the requestbody.json
file.
{ "status":"ENABLED", "tags":[ "ospooltag1", "ospooltag2" ], "origin_servers":[ { "status":"ENABLED", "hostname":"example.com", "port":3691 } ], "name":"originserverpool1" }
Example of Response Body
The following example shows the response body in JSON format.
{ "name":"originserverpool1", "uri":"https://serviceId1.balancer.uscom.oraclecloud.com/vlbrs/us1/vlbr1/originserverpools/originserverpool1", "origin_servers":[ { "hostname":"example.com", "status":"ENABLED","port":3691 } ], "status":"ENABLED", "tags":[ "ospooltag1", "ospooltag2" ], "state":"HEALTHY" }
Use the uri
provided in the response body to access the resource and check its status.