...
Go to the Registries page.
Click the device’s registry ID.
In the left registry menu, click Devices.
Click Create a device.
To modify a device's public keys, click the device's ID on the Devices page and click Edit device at the top.
Enter a device ID that describes the device or helps you identify it (this field can't be edited later).
For Device communication, select Allow or Block. The latter allows you to block communication when needed, such as when a device malfunctions. You'll most likely want to enable communication when creating the device.
For Public key format, select RS256_X509 or ES256_X509. Paste the device public key certificate in the Public key value field. You can also set the key’s expiration date.
To add a key to an existing device, click Add public key on the Device details page.
To remove a key from an existing device:
Check the box next to the key on the Device details page.
Click Delete to remove the key.
To edit a key, click the Edit icon next to the key on the Device details page.
Select the input method you want to use to enter the device public key certificate.
Manual: Copy and paste the device public key certificate into the Public key value field.
Upload: In the Public key value field, click Browse to select a file on your device.
Use the Key and Value fields to add optional device metadata, such as a serial number.
Select a Cloud Logging level to determine which device events are sent to Cloud Logging.
Click Create Submit to create the device.
API:
...