Creating an IoT Domain
Create an Internet of Things (IoT) domain that's associated to an IoT domain group. When you create digital twin resources for a device, you associate all the related digital twin resources to a specific IoT domain.
For each IoT domain, a unique device endpoint and a dedicated database schema are created with a domain short id.
device-host:<domain-short-id-from-device-host>.device.iot.<region>.oci.oraclecloud.com
- Read only database schema with the digital twin definitions and telemetry data sent to and from the device:
<domain-short-id-from-device-host>__IOT
You can create up to 2 IoT domains in each IoT domain group. The maximum number of IoT domain groups is 5 and maximum number IoT domains is 10 for each region in your tenancy. To create an IoT domain your user must have read access for the associated IoT domain group.
All the IoT resources must be in the same region.
Use the
oci iot domain create
command and required parameters to create an Internet of Things (IoT) domain.Replace the
<iot-domain-group-OCID>
with the IoT domain group you want to associate to the IoT domain. Replace the<compartment-OCID>
with the compartment OCID for the IoT domain:oci iot domain create --compartment-id <compartment-OCID> --iot-domain-group-id <iot-domain-group-OCID>
For a complete list of parameters and values for CLI commands, see CLI Command Reference.
Run CreateIotDomain operation to create a domain.