Skip to content

SynchronizationManagementService

Li Yu edited this page Oct 10, 2017 · 1 revision

Overview

The synchronization management service exposes a REST api to retreive availability of factory services, start synchronization of a single child service or child services of factory

REST Api

URI Path

/core/management/synch

Verbs

GET

Retrieves status of all factories in the cluster Sample:

curl -s localhost:8000/core/management/synch
{
.....
   "/core/transactions": {
      "status": "AVAILABLE",
      "owner": "host-1"
   },
   "/core/examples": {
     "status": "SYNCHRONIZING",
     "owner": "host-2"
   },
.....
}

PATCH

Synchronization of a single child service SynchronizationRequest

  • documentSelfLink: specify LINK/TO/YOUR/SERVICE
  • kind specify com:vmware:xenon:services:common:SynchronizationRequest

Sample:

curl -X PATCH -H "Content-Type: application/json" localhost:8000/core/management/synch -d '
{
  "documentSelfLink": "/core/examples/c5682f1f34ec673d55a1150f6f8e0",
  "kind": "com:vmware:xenon:services:common:SynchronizationRequest"
}'

Synchronization of child services of factory SynchronizationRequest

  • documentSelfLink: specify LINK/TO/YOUR/FACTORY
  • kind: specify com:vmware:xenon:services:common:SynchronizationRequest

Sample:

curl -X PATCH -H "Content-Type: application/json" localhost:8000/core/management/synch -d '{
  "documentSelfLink": "/core/examples",
  "kind": "com:vmware:xenon:services:common:SynchronizationRequest"
}'
Clone this wiki locally