forked from vmware-archive/xenon
-
Notifications
You must be signed in to change notification settings - Fork 0
SynchronizationManagementService
Li Yu edited this page Oct 10, 2017
·
1 revision
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
/core/management/synch
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"
},
.....
}
Synchronization of a single child service
SynchronizationRequest
-
documentSelfLink
: specifyLINK/TO/YOUR/SERVICE
-
kind
specifycom: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
: specifyLINK/TO/YOUR/FACTORY
-
kind
: specifycom: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"
}'