SyncVmClock

API Request

URLs
PUT zstack/v1/vm-instances/{uuid}/actions
Headers
Authorization: OAuth the-session-uuid
Body
{
  "syncVmClock": {},
  "systemTags": [],
  "userTags": []
}
Note: In the preceding example, the systemTags and userTags fields are optional. They are listed to indicate that these two fields can be included in the body.
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"syncVmClock":{}}' http://localhost:8080/zstack/v1/vm-instances/ff01ec80fd11327cba7519b66119d900/actions
Parameter List
Name Type Location Description Optional Value Since
uuid String url Resource UUID, which uniquely identifies the resource 3.14.12
systemTags (optional) List body System tags 3.14.12
userTags (optional) List body User tags 3.14.12

API Response

When this API succeeds, it returns an empty JSON structure {}. When an error occurs, the returned JSON structure contains an error field. For example:
{
	"error": {
		"code": "SYS.1001",
		"description": "A message or a operation timeout",
		"details": "Create VM on KVM timeout after 300s"
	}
}

SDK Example

Java SDK
SyncVmClockAction action = new SyncVmClockAction();
action.uuid = "ff01ec80fd11327cba7519b66119d900";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
SyncVmClockAction.Result res = action.call();
Python SDK
action = SyncVmClockAction()
action.uuid = "ff01ec80fd11327cba7519b66119d900"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()
API Reference | ZStack ZSphere · ZVF | ZStack Resource Center