lockEnvironment

This app command allows users to control the state of the environment.

GET

Description:
Get the current state of the environment

Request Body:

{
    command: 'lockEnvironment',
    method: 'get',
    version: '1.0'
}

Response Body:

{
    command: 'lockEnvironment',
    method: 'get',
    version: '1.0',
    status_code: 200,
    error: null,
    state: 'lock'
}

Parameters:

Attribute NameAttribute TypeDescriptionEnumRequired (Binary)
commandstringHigh level command name to interact with Olivernull1
methodstringThese correspond to create, read, update, and delete (or CRUD) operationsnull1
versionstringThe version of the command usednull1

POST

Description:
Lock/unlock the environment.

Request Body:

{
    command: 'lockEnvironment',
    method: 'post',
    version: '1.0',
    state: 'lock' 
}

Response Body:

{
    command: 'lockEnvironment',
    method: 'post',
    version: '1.0',
    status_code: 200,
    error: null
}

Parameters:

Attribute NameAttribute TypeDescriptionEnumRequired (Binary)
commandstringHigh level command name to interact with Olivernull1
methodstringThese correspond to create, read, update, and delete (or CRUD) operationsnull1
versionstringThe version of the command usednull1
statestringState of the environment'lock', 'unlock'1