Get Management Node Time Zone Information

GET/zstack/v1/management-nodes/platform-timezone

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" -X GET http://localhost:8080/zstack/v1/management-nodes/platform-timezone?

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
systemTags (Optional)ListbodySystem tags 4.1.0
userTags (Optional)ListbodyUser tags 4.1.0

API Response

Response Example

{
  "timezone": "Asia/Shanghai",
  "offset": "+8:00"
}
NameTypeDescriptionStarting Version
timezoneStringThe time zone name4.1.0
offsetStringThe time offset from GMT4.1.0
successboolean 4.1.0
errorErrorCodeThe error code. If not null, the operation has failed. This field is null when the operation succeeds. For details, see error4.1.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.1001.4.1.0
descriptionStringA brief description of the error.4.1.0
detailsStringThe detailed error information.4.1.0
elaborationStringA reserved field. Default is null.4.1.0
opaqueLinkedHashMapA reserved field. Default is null.4.1.0
causeErrorCodeThe root error. The source error that caused the current error. If there is no root error, this field is null.4.1.0

SDK Examples

Java SDK

GetPlatformTimeZoneAction action = new GetPlatformTimeZoneAction();
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
GetPlatformTimeZoneAction.Result res = action.call();

Python SDK

GetPlatformTimeZoneAction action = GetPlatformTimeZoneAction()
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
GetPlatformTimeZoneAction.Result res = action.call()