Reserve DSNs

This API reserves a range of DSNs. It is intended for module and gateway manufacturers, but not for module-based product manufacturers. The caller must be a member of the OEM::SoftwareOEMManufacturer, OEM::Admin, or Ayla::Admin role.

The response data is an array of objects. Each object contains a device field:

NameTypeDescription
deviceobjectDevice objects

The Device object contains the following fields:

NameTypeExample
dsnstringAC000W123456789
public_keystring-----BEGIN RSA PUBLIC KEY-----MIIBC...AQAB-----END RSA PUBLIC KEY-----
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

The model field specifies the module model name (e.g. AY001MTP1 ) not the oem_model name (e.g. ledevb). A device reports the module model name to the Ayla Device Service (ADS) at connection time.

int32
required

Specifies the number of DSNs to reserve.

string
required

Specifies the oem id.

Responses

401

Unauthorized

403

Forbidden

422

Unprocessable Entity

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json