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.
List certificates for a device.
Functions
@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
@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
@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