Operations

Operations subsystem

Get all Operations in the Operation List

SecuritySCAPIAuthToken
Request
path Parameters
operationlist_id
required
string

ID of the Operation List

query Parameters
operation_type
string

Operation Type to filter on as defined in Operation_POST model

Responses
200

All Operations in Operation List

401

Operation List get error

get/v0/operationlists/{operationlist_id}/operations
Request samples
Response samples
application/json
{
  • "code": 0,
  • "message": "string",
  • "content": {
    }
}

Create an Operation for Operation List

SecuritySCAPIAuthToken
Request
path Parameters
operationlist_id
required
string

ID of the Operation List

Request Body schema: application/json
required
args
object

Arguments for the operation

operation_type
string
Enum: "LOCK" "REBOOT" "SET_NEW_POLICY" "UPDATE_HEARTBEAT" "REQUEST_BUGREPORT" "REQUEST_DPCLOG" "ADD_TO_WHITELIST" "REMOVE_FROM_WHITELIST" "SET_APP_PERMISSION" "WIPE" "CAPTURE_SCREENSHOT" "SET_WIFI_STATE" "SET_BLUETOOTH_STATE" "SET_ROTATION_STATE" "SET_GPS_STATE" "SET_BRIGHTNESS_SCALE" "SET_STREAM_VOLUME" "SET_SCREEN_OFF_TIMEOUT" "SET_ADB_STATE" "INITIATE_OFFER" "INSTALL" "SIMPLE_INSTALL" "UNINSTALL" "REFRESH_APPLIST" "UPDATE_LATEST_DPC" "NOTIFY_OTA" "CLEAR_APP_DATA" "SET_GEO_FENCE" "SET_KIOSK_APP" "SET_DEVICE_LOCKDOWN_STATE" "SET_TIMEZONE" "SET_APP_STATE" "ADD_WIFI_AP" "REMOVE_WIFI_AP" "UPDATE_DEVICE_CONFIG" "INITIATE_CONFERENCE_CALL" "ADD_OVERRIDE_APN" "SYNC_CONTENT" "SET_WALLPAPER"
Responses
200

Created operation

401

Operation create error

post/v0/operationlists/{operationlist_id}/operations
Request samples
application/json
{
  • "args": { },
  • "operation_type": "LOCK"
}
Response samples
application/json
{
  • "code": 0,
  • "message": "string",
  • "content": {
    }
}

Get an Operation from the operation list

SecuritySCAPIAuthToken
Request
path Parameters
operationlist_id
required
string

ID of the Operation list

operation_id
required
string

ID of the Operation

Responses
200

Get operation from operation list

401

Operation get error

get/v0/operationlists/{operationlist_id}/operations/{operation_id}
Request samples
Response samples
application/json
{
  • "code": 0,
  • "message": "string",
  • "content": {
    }
}

Update an Operation

SecuritySCAPIAuthToken
Request
path Parameters
operationlist_id
required
string

ID of the Operation List

operation_id
required
string

ID of the Operation

Request Body schema: application/json
required
operation_list_id
string
pipeline_id
string
operation_type
string
args
string
created_by
number <int32>
updated_by
number <int32>
created_at
string <date-time>
updated_at
string <date-time>
Responses
200

Updated Operation Information

400

Operation update error

401

Operation update error

put/v0/operationlists/{operationlist_id}/operations/{operation_id}
Request samples
application/json
{
  • "operation_list_id": "string",
  • "pipeline_id": "string",
  • "operation_type": "string",
  • "args": "string",
  • "created_by": 0,
  • "updated_by": 0,
  • "created_at": "2019-08-24T14:15:22Z",
  • "updated_at": "2019-08-24T14:15:22Z"
}
Response samples
application/json
{
  • "code": 0,
  • "message": "string",
  • "content": {
    }
}

Delete an Operation list operation

SecuritySCAPIAuthToken
Request
path Parameters
operationlist_id
required
string

ID of the Operation List

operation_id
required
string

ID of the Operation

Responses
200

Delete operation

401

Operation delete error

delete/v0/operationlists/{operationlist_id}/operations/{operation_id}
Request samples
Response samples
application/json
{
  • "code": 0,
  • "message": "string",
  • "content": {
    }
}