View Source NervesHubUserAPI.DeviceCertificate (nerves_hub_user_api v0.9.0)
Manage NervesHub device certificates
Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates
Link to this section 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.
Sign a new certificate signing request for a device.
Link to this section Functions
@spec create( String.t(), String.t(), String.t(), String.t(), NervesHubUserAPI.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(), NervesHubUserAPI.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(), NervesHubUserAPI.Auth.t()) :: {:error, any()} | {:ok, any()}
List certificates for a device.
Verb: GET Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates
@spec sign(String.t(), String.t(), String.t(), String.t(), NervesHubUserAPI.Auth.t()) :: {:error, any()} | {:ok, any()}
Sign a new certificate signing request for a device.
Verb: POST Path: /orgs/:org_name/products/:product_name/devices/:device_identifier/certificates/sign