nerves_hub_user_api v0.6.0 NervesHubUserAPI.Device
Manage NervesHub devices
Path: /orgs/:org_name/products/:product_name/devices
Link to this section Summary
Functions
Check authentication status for device certificate.
List certificates for a device.
Sign a new certificate signing request for a device.
Create a new device.
Delete an existing device.
List all devices.
Update an existing device.
Link to this section Functions
auth(org_name, product_name, cert_pem, auth)
Check authentication status for device certificate.
Verb: POST Path: /orgs/:org_name/products/:product_name/devices/auth
cert_list(org_name, product_name, device_identifier, auth)
List certificates for a device.
Verb: GET Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates
cert_sign(org_name, product_name, device_identifier, csr, auth)
Sign a new certificate signing request for a device.
Verb: POST Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates/sign
create(org_name, product_name, identifier, description, tags, auth)
Create a new device.
Verb: POST Path: /orgs/:org_name/products/:product_name/devices
delete(org_name, product_name, device_identifier, auth)
Delete an existing device.
Verb: DELETE Path: /orgs/:org_name/products/:product_name/devices/:device_identifer
list(org_name, product_name, auth)
list(String.t(), String.t(), NervesHubUserAPI.Auth.t()) ::
{:error, any()} | {:ok, any()}
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
update(org_name, product_name, device_identifier, params, auth)
Update an existing device.
Verb: PUT Path: /orgs/:org_name/products/:product_name/devices/:device_identifier