Skip to main content

devices_for_users

Creates, updates, deletes, gets or lists a devices_for_users resource.

Overview

Namedevices_for_users
TypeResource
Idaws.wickr.devices_for_users

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
app_idstringThe unique application ID for the Wickr app on this device. (pattern: <code>[\S\s]*</code>)
createdstringThe timestamp when the device first appeared in the Wickr database. (pattern: <code>[\S\s]*</code>)
last_loginstringThe timestamp when the device last successfully logged into Wickr. This is also used to determine SSO idle time. (pattern: <code>[\S\s]*</code>)
status_textstringThe current status of the device, either 'Active' or 'Reset' depending on whether the device is currently active or has been marked for reset. (pattern: <code>[\S\s]*</code>)
suspendbooleanIndicates whether the device is suspended.
type_stringThe operating system of the device (e.g., 'MacOSX', 'Windows', 'iOS', 'Android'). (pattern: <code>[\S\s]*</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_devices_for_userselectnetwork_id, user_id, regionnextToken, maxResults, sortFields, sortDirectionRetrieves a paginated list of devices associated with a specific user in a Wickr network. This operation returns information about all devices where the user has logged into Wickr.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
network_idstringThe ID of the Wickr network containing the user.
regionstringAWS region (default: us-east-1)
user_idstringThe unique identifier of the user whose devices will be listed.
maxResultsintegerThe maximum number of devices to return in a single page. Valid range is 1-100. Default is 10.
nextTokenstringThe token for retrieving the next page of results. This is returned from a previous request when there are more results available.
sortDirectionstringThe direction to sort results. Valid values are 'ASC' (ascending) or 'DESC' (descending). Default is 'DESC'.
sortFieldsstringThe fields to sort devices by. Multiple fields can be specified by separating them with '+'. Accepted values include 'lastlogin', 'type', 'suspend', and 'created'.

SELECT examples

Retrieves a paginated list of devices associated with a specific user in a Wickr network. This operation returns information about all devices where the user has logged into Wickr.

SELECT
app_id,
created,
last_login,
status_text,
suspend,
type_
FROM aws.wickr.devices_for_users
WHERE network_id = '{{ network_id }}' -- required
AND user_id = '{{ user_id }}' -- required
AND region = '{{ region }}' -- required
AND nextToken = '{{ nextToken }}'
AND maxResults = '{{ maxResults }}'
AND sortFields = '{{ sortFields }}'
AND sortDirection = '{{ sortDirection }}'
;