devices_controller = client.devices
DevicesController
Deletes a device.
def delete_device(self,
id)
Parameter |
Type |
Tags |
Description |
id |
string |
Query, Required |
Device Id. |
void
id = 'id0'
result = devices_controller.delete_device(id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Device not found. |
ProblemDetailsException |
Get info for a device.
def get_device_info(self,
id)
Parameter |
Type |
Tags |
Description |
id |
string |
Query, Required |
Device Id. |
DeviceInfo
id = 'id0'
result = devices_controller.get_device_info(id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Device not found. |
ProblemDetailsException |
Get options for a device.
def get_device_options(self,
id)
Parameter |
Type |
Tags |
Description |
id |
string |
Query, Required |
Device Id. |
DeviceOptions
id = 'id0'
result = devices_controller.get_device_options(id)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
404 |
Device not found. |
ProblemDetailsException |
Get Devices.
def get_devices(self,
supports_sync=None,
user_id=None)
Parameter |
Type |
Tags |
Description |
supports_sync |
bool |
Query, Optional |
Gets or sets a value indicating whether [supports synchronize]. |
user_id |
uuid|string |
Query, Optional |
Gets or sets the user identifier. |
DeviceInfoQueryResult
result = devices_controller.get_devices()
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |
Update device options.
def update_device_options(self,
id,
body)
Parameter |
Type |
Tags |
Description |
id |
string |
Query, Required |
Device Id. |
body |
DeviceOptionsDto |
Body, Required |
Device Options. |
void
id = 'id0'
body = DeviceOptionsDto()
result = devices_controller.update_device_options(id, body)
HTTP Status Code |
Error Description |
Exception Class |
401 |
Unauthorized |
APIException |
403 |
Forbidden |
APIException |