This function retrieves all CockpitVariables from the client account.
|
None
If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.
A JSON Structure containing the following fields:
Field | Type | Data |
---|---|---|
filter | String | The applied filter. This is reserved for future use. |
limitStart | Integer | The first record index. Currently 0, reserved for future use. |
limitPageSize | Integer | The number of records. -1 indicates all records. Reserved for future use. |
records | AcdEvent [] | An array of Cockpit Variables. |
count | Integer | The number of records returned. |
orderBy | String | The field used to sort the records. |
ascending | Boolean | Whether the array of records is sorted ascending or descending. |
status | Integer | The return code (also provided by the http status code). |
|
This function retrieves one Cockpit Variable by ID from the client account.
|
Parameter | Where | Type | Data |
---|---|---|---|
CockpitVariablesID | URL | Integer | The ID of the CockpitVariable. |
If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.
A JSON Structure containing the following fields:
Field | Type | Data |
---|---|---|
records | AcdEvent [] | An array of CockpitVariables containing one CockpitVariable. |
count | Integer | 1 |
status | Integer | The return code (also provided by the http status code). |
|
This function sets the value of a Cockpit Variable.
|
Parameter | Where | Type | Data |
---|---|---|---|
value | URL | Integer | The value to set. |
If the request is performed, 200 OK is returned. See Return Codes for further possible status codes.
A JSON Structure containing the following fields:
Field | Type | Data |
---|---|---|
result | Integer | 0 = Operation was OK 1 = Variable is not writable 2 = Variable not found or not visible for cockpit 3 = value was not changed (same value) 4 = value was not changed (min / max values would be exceeded) |
error | String | A string representation of the error, |
status | Integer | The return code (also provided by the http status code). |