All URIs are relative to https://api.artik.cloud/v1.1
Method | HTTP request | Description |
---|---|---|
createTasks | POST /devicemgmt/tasks | Create a new task for one or more devices |
deleteServerProperties | DELETE /devicemgmt/devices/{did}/serverproperties | Deletes a device's properties. |
getAllByDid | GET /devicemgmt/devices/{did}/tasks | Returns the list of tasks for a particular device id with optional status filter. |
getDeviceTypesInfo | GET /devicemgmt/devicetypes/{dtid} | Read a device type device management information. |
getManifestProperties | GET /devicemgmt/devicetypes/{dtid}/manifest/properties | Get a device type's device management manifest properties |
getProperties | GET /devicemgmt/devices/{did}/properties | Read a device's properties. |
getStatuses | GET /devicemgmt/tasks/{tid}/statuses | Returns the details and status of a task id and the individual statuses of each device id in the list. |
getStatusesHistory | GET /devicemgmt/tasks/{tid}/statuses/history | Returns the history of the status changes for a specific task id, or for a specific device id in that task. |
getTaskByID | GET /devicemgmt/tasks/{tid} | Returns the details and global status of a specific task id. |
getTasks | GET /devicemgmt/tasks | Returns the all the tasks for a device type. |
queryProperties | GET /devicemgmt/devices/properties | Query device properties across devices. |
updateDeviceTypesInfo | PUT /devicemgmt/devicetypes/{dtid} | Updates a device type information |
updateServerProperties | POST /devicemgmt/devices/{did}/serverproperties | Updates a device's server properties. |
updateTask | PUT /devicemgmt/tasks/{tid} | Updates a task for all devices - For now just allows changing the state to cancelled. |
updateTaskForDevice | PUT /devicemgmt/tasks/{tid}/devices/{did} | Updates a task for a specific device - For now just allows changing the state to cancelled. |
TaskEnvelope createTasks(taskPayload)
Create a new task for one or more devices
Create a new task for one or more devices
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
TaskRequest taskPayload = new TaskRequest(); // TaskRequest | Task object to be created
try {
TaskEnvelope result = apiInstance.createTasks(taskPayload);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#createTasks");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
taskPayload | TaskRequest | Task object to be created |
- Content-Type: Not defined
- Accept: application/json
MetadataEnvelope deleteServerProperties(did)
Deletes a device's properties.
Deletes a device's properties.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String did = "did_example"; // String | Device ID.
try {
MetadataEnvelope result = apiInstance.deleteServerProperties(did);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#deleteServerProperties");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
did | String | Device ID. |
- Content-Type: Not defined
- Accept: application/json
TaskByDidListEnvelope getAllByDid(did, count, offset, status, order, sort)
Returns the list of tasks for a particular device id with optional status filter.
Returns the list of tasks for a particular device id with optional status filter.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String did = "did_example"; // String | Device ID.
Integer count = 56; // Integer | Max results count.
Integer offset = 56; // Integer | Result starting offset.
String status = "status_example"; // String | Status filter. Comma-separated statuses.
String order = "order_example"; // String | Sort results by a field. Valid fields: createdOn.
String sort = "sort_example"; // String | Sort order. Valid values: asc or desc.
try {
TaskByDidListEnvelope result = apiInstance.getAllByDid(did, count, offset, status, order, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#getAllByDid");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
did | String | Device ID. | |
count | Integer | Max results count. | [optional] |
offset | Integer | Result starting offset. | [optional] |
status | String | Status filter. Comma-separated statuses. | [optional] |
order | String | Sort results by a field. Valid fields: createdOn. | [optional] |
sort | String | Sort order. Valid values: asc or desc. | [optional] |
- Content-Type: Not defined
- Accept: application/json
DeviceTypesInfoEnvelope getDeviceTypesInfo(dtid)
Read a device type device management information.
Read a device type device management information.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String dtid = "dtid_example"; // String | Device type ID.
try {
DeviceTypesInfoEnvelope result = apiInstance.getDeviceTypesInfo(dtid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#getDeviceTypesInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dtid | String | Device type ID. |
- Content-Type: Not defined
- Accept: application/json
MetadataPropertiesEnvelope getManifestProperties(dtid)
Get a device type's device management manifest properties
Get a device type's device management manifest properties
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String dtid = "dtid_example"; // String | Device Type ID.
try {
MetadataPropertiesEnvelope result = apiInstance.getManifestProperties(dtid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#getManifestProperties");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dtid | String | Device Type ID. |
- Content-Type: Not defined
- Accept: application/json
MetadataEnvelope getProperties(did, includeTimestamp)
Read a device's properties.
Read a device's properties.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String did = "did_example"; // String | Device ID.
Boolean includeTimestamp = true; // Boolean | Include timestamp.
try {
MetadataEnvelope result = apiInstance.getProperties(did, includeTimestamp);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#getProperties");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
did | String | Device ID. | |
includeTimestamp | Boolean | Include timestamp. | [optional] |
- Content-Type: Not defined
- Accept: application/json
TaskStatusesEnvelope getStatuses(tid, count, offset, status, dids)
Returns the details and status of a task id and the individual statuses of each device id in the list.
Returns the details and status of a task id and the individual statuses of each device id in the list.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String tid = "tid_example"; // String | Task ID.
Integer count = 56; // Integer | Max results count.
Integer offset = 56; // Integer | Result starting offset.
String status = "status_example"; // String | Status filter. Comma-separated statuses.
String dids = "dids_example"; // String | Devices filter. Comma-separated device IDs.
try {
TaskStatusesEnvelope result = apiInstance.getStatuses(tid, count, offset, status, dids);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#getStatuses");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tid | String | Task ID. | |
count | Integer | Max results count. | [optional] |
offset | Integer | Result starting offset. | [optional] |
status | String | Status filter. Comma-separated statuses. | [optional] |
dids | String | Devices filter. Comma-separated device IDs. | [optional] |
- Content-Type: Not defined
- Accept: application/json
TaskStatusesHistoryEnvelope getStatusesHistory(tid, did)
Returns the history of the status changes for a specific task id, or for a specific device id in that task.
Returns the history of the status changes for a specific task id, or for a specific device id in that task.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String tid = "tid_example"; // String | Task ID.
String did = "did_example"; // String | Device ID. Optional.
try {
TaskStatusesHistoryEnvelope result = apiInstance.getStatusesHistory(tid, did);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#getStatusesHistory");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tid | String | Task ID. | |
did | String | Device ID. Optional. | [optional] |
- Content-Type: Not defined
- Accept: application/json
TaskEnvelope getTaskByID(tid)
Returns the details and global status of a specific task id.
Returns the details and global status of a specific task id.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String tid = "tid_example"; // String | Task ID.
try {
TaskEnvelope result = apiInstance.getTaskByID(tid);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#getTaskByID");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tid | String | Task ID. |
- Content-Type: Not defined
- Accept: application/json
TaskListEnvelope getTasks(dtid, count, offset, status, order, sort)
Returns the all the tasks for a device type.
Returns the all the tasks for a device type.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String dtid = "dtid_example"; // String | Device Type ID.
Integer count = 56; // Integer | Max results count.
Integer offset = 56; // Integer | Result starting offset.
String status = "status_example"; // String | Status filter. Comma-separated statuses.
String order = "order_example"; // String | Sort results by a field. Valid fields: createdOn.
String sort = "sort_example"; // String | Sort order. Valid values: asc or desc.
try {
TaskListEnvelope result = apiInstance.getTasks(dtid, count, offset, status, order, sort);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#getTasks");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dtid | String | Device Type ID. | |
count | Integer | Max results count. | [optional] |
offset | Integer | Result starting offset. | [optional] |
status | String | Status filter. Comma-separated statuses. | [optional] |
order | String | Sort results by a field. Valid fields: createdOn. | [optional] |
sort | String | Sort order. Valid values: asc or desc. | [optional] |
- Content-Type: Not defined
- Accept: application/json
MetadataQueryEnvelope queryProperties(dtid, count, offset, filter, includeTimestamp)
Query device properties across devices.
Query device properties across devices.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String dtid = "dtid_example"; // String | Device Type ID.
Integer count = 56; // Integer | Max results count.
Integer offset = 56; // Integer | Result starting offset.
String filter = "filter_example"; // String | Query filter. Comma-separated key=value pairs
Boolean includeTimestamp = true; // Boolean | Include timestamp.
try {
MetadataQueryEnvelope result = apiInstance.queryProperties(dtid, count, offset, filter, includeTimestamp);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#queryProperties");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dtid | String | Device Type ID. | |
count | Integer | Max results count. | [optional] |
offset | Integer | Result starting offset. | [optional] |
filter | String | Query filter. Comma-separated key=value pairs | [optional] |
includeTimestamp | Boolean | Include timestamp. | [optional] |
- Content-Type: Not defined
- Accept: application/json
DeviceTypesInfoEnvelope updateDeviceTypesInfo(dtid, deviceTypeInfo)
Updates a device type information
Updates a device type information
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String dtid = "dtid_example"; // String | Device type ID.
DeviceTypesInfo deviceTypeInfo = new DeviceTypesInfo(); // DeviceTypesInfo | Device type info object to be set
try {
DeviceTypesInfoEnvelope result = apiInstance.updateDeviceTypesInfo(dtid, deviceTypeInfo);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#updateDeviceTypesInfo");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
dtid | String | Device type ID. | |
deviceTypeInfo | DeviceTypesInfo | Device type info object to be set |
- Content-Type: Not defined
- Accept: application/json
MetadataEnvelope updateServerProperties(did, deviceProperties)
Updates a device's server properties.
Updates a device's server properties.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String did = "did_example"; // String | Device ID.
Object deviceProperties = null; // Object | Device properties object to be set
try {
MetadataEnvelope result = apiInstance.updateServerProperties(did, deviceProperties);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#updateServerProperties");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
did | String | Device ID. | |
deviceProperties | Object | Device properties object to be set |
- Content-Type: Not defined
- Accept: application/json
TaskUpdateResponse updateTask(tid, taskUpdateRequest)
Updates a task for all devices - For now just allows changing the state to cancelled.
Updates a task for all devices - For now just allows changing the state to cancelled.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String tid = "tid_example"; // String | Task ID.
TaskUpdateRequest taskUpdateRequest = new TaskUpdateRequest(); // TaskUpdateRequest | Task update request
try {
TaskUpdateResponse result = apiInstance.updateTask(tid, taskUpdateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#updateTask");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tid | String | Task ID. | |
taskUpdateRequest | TaskUpdateRequest | Task update request |
- Content-Type: Not defined
- Accept: application/json
DeviceTaskUpdateResponse updateTaskForDevice(tid, did, deviceTaskUpdateRequest)
Updates a task for a specific device - For now just allows changing the state to cancelled.
Updates a task for a specific device - For now just allows changing the state to cancelled.
// Import classes:
//import cloud.artik.client.ApiClient;
//import cloud.artik.client.ApiException;
//import cloud.artik.client.Configuration;
//import cloud.artik.client.auth.*;
//import cloud.artik.api.DevicesManagementApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: artikcloud_oauth
OAuth artikcloud_oauth = (OAuth) defaultClient.getAuthentication("artikcloud_oauth");
artikcloud_oauth.setAccessToken("YOUR ACCESS TOKEN");
DevicesManagementApi apiInstance = new DevicesManagementApi();
String tid = "tid_example"; // String | Task ID.
String did = "did_example"; // String | Device ID.
DeviceTaskUpdateRequest deviceTaskUpdateRequest = new DeviceTaskUpdateRequest(); // DeviceTaskUpdateRequest | Device task update request
try {
DeviceTaskUpdateResponse result = apiInstance.updateTaskForDevice(tid, did, deviceTaskUpdateRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DevicesManagementApi#updateTaskForDevice");
e.printStackTrace();
}
Name | Type | Description | Notes |
---|---|---|---|
tid | String | Task ID. | |
did | String | Device ID. | |
deviceTaskUpdateRequest | DeviceTaskUpdateRequest | Device task update request |
- Content-Type: Not defined
- Accept: application/json