Get Management Node Factory Mode State
Headers
Authorization: OAuth the-session-uuidCurl 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-stateParameter List
| Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
| systemTags (Optional) | List | query | System tags | 3.8 | |
| userTags (Optional) | List | query | User tags | 3.8 |
API Response
Response Example
{
"factoryModeState": true
}| Name | Type | Description | Starting Version |
|---|---|---|---|
| factoryModeState | Boolean | 3.8 | |
| success | boolean | 3.8 | |
| error | ErrorCode | The error code. If not null, the operation has failed. This field is null when the operation succeeds. For details, see error | 3.8 |
error
| Name | Type | Description | Starting Version |
|---|---|---|---|
| code | String | The error code number. A globally unique identifier for the error, for example, SYS.1000, HOST.1001. | 0.6 |
| description | String | A brief description of the error. | 0.6 |
| details | String | The detailed error information. | 0.6 |
| elaboration | String | A reserved field. Default is null. | 0.6 |
| opaque | LinkedHashMap | A reserved field. Default is null. | 0.6 |
| cause | ErrorCode | The 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()