SyncVmClock
API Request
URLs
PUT zstack/v1/vm-instances/{uuid}/actionsHeaders
Authorization: OAuth the-session-uuidBody
Note: In
the preceding sample, both systemTags and userTags are optional.
These two fields can be included in the body structure.
{
"syncVmClock": {},
"systemTags": [],
"userTags": []
}
Note: In
the preceding sample, both systemTags and userTags are optional.
These two fields can be included in the body structure.Curl Samples
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X PUT -d '{"syncVmClock":{}}' http://localhost:8080/zstack/v1/vm-instances/b9b970400c1f4a6dad1976be1c63f698/actionsRequest Parameters
| Name | Type | Location | Description | Valid Value | Starting Version |
|---|---|---|---|---|---|
| uuid | String | url | The resource UUID. | 4.4.24 | |
| systemTags | List | body | Optional. The system tags. | 4.4.24 | |
| userTags | List | body | Optional. The user tags. | 4.4.24 |
API Response
If the API succeeded, an empty JSON structure {} is returned. If the API
failed, the returned JSON structure includes 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 Sample
Java
SDK
SyncVmClockAction action = new SyncVmClockAction();
action.uuid = "bbf94dc05840489cbf8f5b5d1d0984dc";
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
SyncVmClockAction.Result res = action.call();Python
SDK
SyncVmClockAction action = SyncVmClockAction()
action.uuid = "0ce0a34f854d487281b32b8fd3608390"
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
SyncVmClockAction.Result res = action.call()