Get Management Node Factory Mode State

GET/zstack/v1/management-nodes/factory-mode-state

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/factory-mode-state

Parameter List

NameTypeLocationDescriptionAllowed ValuesStarting Version
systemTags (Optional)ListquerySystem tags 3.8
userTags (Optional)ListqueryUser tags 3.8

API Response

Response Example

{
  "factoryModeState": true
}
NameTypeDescriptionStarting Version
factoryModeStateBoolean 3.8
successboolean 3.8
errorErrorCodeThe error code. If not null, the operation has failed. This field is null when the operation succeeds. For details, see error3.8

error

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

SDK Examples

Java SDK

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

Python SDK

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