Disable or Enable the Load Balancer

put

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/jaas/instances/{serviceId}/loadbalancer/public/{command}

Disables or enables the load balancer for the specified Oracle Java Cloud Service instance.

The load balancer for the service instance could be Oracle Traffic Director or an instance of Oracle Cloud Infrastructure Load Balancing Classic. An instance of Oracle Cloud Infrastructure Load Balancing cannot be disabled or enabled.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
The request consumes an application/json payload. However, no parameters are supported in the payload at this time.

Root Schema : loadbalancer-request
The request consumes an application/json payload. However, no parameters are supported in the payload at this time.

Back to Top

Response

Supported Media Types

202 Response

Accepted. The Location header returns a URI that can be used to view the job status. See View the Status of an Operation by Job Id.

See Status Codes for information about other possible HTTP status codes.

Body ()
Root Schema : loadbalancer-response
Type: object
The response body contains information about the operation. It can include an issues array.
Show Source
Nested Schema : details
Type: object
Groups details of the operation.
Show Source
Nested Schema : issues
Type: array
Groups strings of warning or error messages, if available.
Show Source
Back to Top

Examples

The following example shows how to disable or enable the load balancer by submitting a PUT 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 PUT -u username:password -d @emptyfile.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/loadbalancer/public/disable
curl -i -X PUT -u username:password -d @emptyfile.json -H "Content-Type:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance/loadbalancer/public/enable

Note: You can omit the -d option. No parameters are supported in the request payload at this time.

Example of Response Header

The following shows an example of the response header. The Location header returns the URI that can be used to view the job status. See View the Status of an Operation by Job Id.

HTTP/1.1 202 Accepted
Date: Tue, 26 Sep 2017 22:03:13 GMT
Location: https://rest_server_url/paas/api/v1.1/activitylog/ExampleIdentityDomain/job/52884
Content-Length: 169
Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json
Access-Control-Allow-Headers: Content-Type, api_key, Authorization, X-ID-TENANT-NAME, X-USER-IDENTITY-DOMAIN-NAME
Service-URI: https://rest_server_url/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/jaas/instances/ExampleInstance
Retry-After: 60Date: Mon, 17 Apr 2017 22:46:03 GMT

Example of Response Body

The following shows an example of the response body in JSON format.

{
   "details":{
      "message":"Submitted job to disable load balancer for service [ExampleInstance] in domain [ExampleIdentityDomain].",
      "jobId":"52884"
   }
}
Back to Top