Restart a Service Instance

post

/paas/api/v1.1/instancemgmt/{identityDomainId}/services/IntegrationCloud/instances/{service_name}/hosts/restart

Restart one or more VMs that are running Oracle Integration Classic instance.

Request

Supported Media Types
Path Parameters
Header Parameters
Body ()
JSON payload for this REST endpoint
Root Schema : Request Body
Type: object
Title: Request Body
Show Source
Nested Schema : Component Parameters
Type: object
Title: Component Parameters
Show Source
Nested Schema : WLS
Type: object
Title: WLS
Show Source
Nested Schema : hosts
Type: array
Weblogic server to be controlled
Show Source
Back to Top

Response

Supported Media Types

202 Response

Accepted
Body ()
Root Schema : accepted-response
Type: object
Show Source
Back to Top

Examples

The following example shows how to restart multiple virtual machines (VM) of Oracle Integration by submitting a POST request on the REST resource using cURL.

Note:

The command in this example uses the URL structure https://example.com/resource-path, where example.com is the Oracle Cloud server to contact for your identity domain.

cURL Command

curl -v -X POST -u jstein:Password -H "Content-type:application/json" -H "Accept:application/json" -H "X-ID-TENANT-NAME:ExampleIdentityDomain" --data @restart.json http://example.com/paas/api/v1.1/instancemgmt/ExampleIdentityDomain/services/IntegrationCloud/instances/hapapatch16/hosts/restart 

Example of Request Header

The following shows an example of the response header.

headers: Content-Type:application/json
Accept: application/json
Authorization: <Basic Auth credentials>
X-ID-TENANT-NAME: <identity domain>

Example of Request Body to Restart Multiple VMs

The following shows an example of the request to restart more than one VMs in JSON format.

{
  "allServiceHosts": false,
  "components": {
    "WLS": {
      "hosts": [
        "<host_name_1>",
        "<host_name_2>",...
        ]
    }
  }
}

Example of Request Body to Restart Single VM

The following shows an example of the request to restart a single VM in JSON format.

{
  "allServiceHosts": false,
  "components": {
    "WLS": {
      "hosts": [
        "hapapatch16-wls-1 "
      ]
    }
  }
}
Back to Top