AITRIOS | Console (1.4.2)

Provisioning

GetQrCodeForProvisioning

Generate the service QR code information used for device provisioning.
Return a base64-encoded PNG image.

query Parameters
ntp
required
string (Ntp)

NTP. *Max. 64 characters.

auto
boolean (Auto)
Default: false

Connection state.

  • Value definition
    true: Generate QR code for auto enrollment.
    false: Generate QR code for manual enrollment.
wifi_ssid
string (Wifi Ssid)

WIFI SSID.

wifi_pass
string (Wifi Pass)

WIFI Password.

proxy_url
string (Proxy Url)

Proxy URL.

proxy_port
string (Proxy Port)

Proxy port.

proxy_user_name
string (Proxy User Name)

Proxy user name.

proxy_pass
string (Proxy Pass)

Proxy password.

ip_address
string (Ip Address)

IP Address. *Max. 39 characters.

subnet_mask
string (Subnet Mask)

Subnet Mask. *Max. 39 characters.

gateway
string (Gateway)

Gateway. *Max. 39 characters.

dns
string (Dns)

DNS. *Max. 39 characters.

Responses

Response samples

Content type
application/json
{
  • "result": "SUCCESS",
  • "contents": "string"
}

Certificate

EnrollDevice

Register a device.
Assumptions and Notes:
惻Registration certificate: X.509 primary certificate (.pem file or .cer file or .crt file)

Request Body schema: application/json
device_name
required
string (Device Name)

Device name. *Max. 255 characters

primary_certificate
required
string (Primary Certificate)

X.509 primary certificate (.pem file or .cer file or .crt file) . *Specify the following certificate without the leading and trailing signatures. -----BEGIN CERTIFICATE-----

-----END CERTIFICATE----- Also, do not include line breaks.

Responses

Request samples

Content type
application/json
{
  • "device_name": "string",
  • "primary_certificate": "string"
}

Response samples

Content type
application/json
{
  • "result": "string",
  • "id": "string"
}

DeleteDevice

Delete a specified device.

path Parameters
device_id
required
string (Device Id)

Device ID

Responses

Response samples

Content type
application/json
{
  • "result": "SUCCESS"
}

GetDeviceCertificates

Get the device certificate list information.

Responses

Response samples

Content type
application/json
{
  • "certificates":
    [
    ]
}

GetDeviceCertificate

Get the device certificate information for a specified device.

path Parameters
device_id
required
string (Device Id)

Device ID.

Responses