View Source NervesHubUserAPI.Device (nerves_hub_user_api v0.9.0)
Manage NervesHub devices
Path: /orgs/:org_name/products/:product_name/devices
Link to this section Summary
Functions
Check authentication status for device certificate.
Create a new device.
Delete an existing device.
List all devices.
Update an existing device.
Link to this section Functions
@spec auth(String.t(), String.t(), String.t(), NervesHubUserAPI.Auth.t()) :: {:error, any()} | {:ok, any()}
Check authentication status for device certificate.
Verb: POST Path: /orgs/:org_name/products/:product_name/devices/auth
This function is deprecated. use NervesHubUserAPI.DeviceCertificate.list/4 instead.
This function is deprecated. use NervesHubUserAPI.DeviceCertificate.sign/5 instead.
Link to this function
create(org_name, product_name, identifier, description, tags, auth)
View Source@spec create( String.t(), String.t(), String.t(), String.t(), [String.t()], NervesHubUserAPI.Auth.t() ) :: {:error, any()} | {:ok, any()}
Create a new device.
Verb: POST Path: /orgs/:org_name/products/:product_name/devices
@spec delete(String.t(), String.t(), String.t(), NervesHubUserAPI.Auth.t()) :: {:error, any()} | {:ok, any()}
Delete an existing device.
Verb: DELETE Path: /orgs/:org_name/products/:product_name/devices/:device_identifer
@spec list(String.t(), String.t(), NervesHubUserAPI.Auth.t()) :: {:error, any()} | {:ok, any()}
List all devices.
Verb: GET Path: /orgs/:org_name/products/:product_name/devices
@spec update(String.t(), String.t(), String.t(), map(), NervesHubUserAPI.Auth.t()) :: {:error, any()} | {:ok, any()}
Update an existing device.
Verb: PUT Path: /orgs/:org_name/products/:product_name/devices/:device_identifier