View Source NervesHubCLI.API.DeviceCertificate (nerves_hub_cli v2.0.1)

Manage NervesHub device certificates

Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates

Summary

Functions

Upload a trusted certificate for a device.

Removes the Device certificate with the specified serial number from NervesHub.

Functions

Link to this function

create(org_name, product_name, device_identifier, pem, auth)

View Source
@spec create(
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  NervesHubCLI.API.Auth.t()
) ::
  {:error, any()} | {:ok, any()}

Upload a trusted certificate for a device.

Verb: POST Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates

Link to this function

delete(org_name, product_name, device_identifier, serial, auth)

View Source
@spec delete(
  String.t(),
  String.t(),
  String.t(),
  String.t(),
  NervesHubCLI.API.Auth.t()
) ::
  {:error, any()} | {:ok, any()}

Removes the Device certificate with the specified serial number from NervesHub.

Verb: DELETE Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates/:serial

Link to this function

list(org_name, product_name, device_identifier, auth)

View Source
@spec list(String.t(), String.t(), String.t(), NervesHubCLI.API.Auth.t()) ::
  {:error, any()} | {:ok, any()}

List certificates for a device.

Verb: GET Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates

Link to this function

path(org_name, product_name, device_identifier, serial)

View Source
@spec path(String.t(), String.t(), String.t(), String.t()) :: String.t()