Start a Service Instance or Compute Node

post

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/APICS/instances/{serviceId}/hosts/start

Starts a service instance or one of its compute nodes.

Note: When starting a single compute node, only managed servers can be targeted. If you target an administration server you revieve a 400: Bad Request response.

Note: ServiceID is the user specified name for the service and is not the ID that's autogenerated for the instance.

Request

Supported Media Types
Path Parameters
  • Name of the identity domain for the API Platform Cloud Service - Classic account.
  • Name of the API Platform Cloud Service - Classic instance.

    Note: ServiceID is the user specified name for the service and is not the ID that's autogenerated for the instance.

Header Parameters
Body ()
The request body defines the details of the start request.
Root Schema : start-instance
Type: object
Request payload for starting an API Platform Cloud Service - Classic instance
Show Source
Nested Schema : components
Type: object
Show Source
Nested Schema : WLS
Type: object
Show Source
  • hosts
    An array of hosts to be controlled via the mentioned operation. The service is controlled if ALL hosts are listed, making this the same behavior as including allServiceHosts:true.
Nested Schema : hosts
Type: array
An array of hosts to be controlled via the mentioned operation. The service is controlled if ALL hosts are listed, making this the same behavior as including allServiceHosts:true.
Show Source
Back to Top

Response

202 Response

Accepted. See Status Codes for information about other possible HTTP status codes.
Headers
Back to Top

Examples

The following example shows how to start an Oracle API Platform Cloud Service - Classic instance by submitting a POST request on the REST resource using cURL. For more information about cURL, see cURL Examples.

curl -i -X POST 
-u apicsadmin:password
-H "Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json" 
-d @startStop.json
http://example.com:7103/paas/api/v1.1/instancemgmt/apics/services/APICS/instances/apics/hosts/start

Example of Request Body

The following shows an example of the request body in JSON format. This payload starts all service hosts.

{
"allServiceHosts": true,
        "components": {
                "WLS": {
                           "hosts":[]
                }           
            }
}

Example of Request Body

The following shows an example of the request body in JSON format. This payload starts only a single service host.

{
"allServiceHosts": false,
        "components": {
                "WLS": {
                           "hosts":["api-wls-1"]
                }           
            }
}

Example of Request Body

The following shows an example of the request body in JSON format. This payload starts only a load balancer host.

{  
   "allServiceHosts":false,
   "components":{  
      "OTD":{  
         "hosts":["service0206-lb-1"]
      }
   }
}

Example of Response Headers

The following shows an example of the response headers.

HTTP/1.1 202 Accepted
Date: Wed, 23 Nov 2016 10:44:42 GMT
Transfer-Encoding: chunked
Content-Type: application/vnd.com.oracle.oracloud.provisioning.Service+json
X-ORACLE-DMS-ECID: 7077e58cc81a37d2:-4cd90f8:15878a7e3f0:-8000-0000000000005f33
X-Frame-Options: DENY
Access-Control-Allow-Methods: GET, POST, DELETE, PUT, OPTIONS, HEAD
Access-Control-Allow-Headers: Content-Type, api_key, Authorization
Access-Control-Allow-Origin: *

Example of Response Body

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

{
	"details": {
		"message": "Submitted job to [start] VMs in service [apics] in domain [apics]."
	}
}
Back to Top