SynchronizationManagementService - vmware-archive/xenon GitHub Wiki
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: specifyLINK/TO/YOUR/SERVICEkindspecifycom: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/FACTORYkind: 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"
}'