Configuring an IoT Domain's Data Access
Configuring access to your view your data is optional and depends on which system you want to use to consume your data.
Depending on where you want to view your data configure you configure authentication options for the specific system you want to connect to.
When you create a domain you can specify the data access options. After a domain is created, you can change the options to authenticate connection to access your data.
Configuration depends on which system you want to connect to view your IoT data. Both of the following ways to require using the
oci iot domain configure-direct-data-access
command during the configuration process:- To query your IoT data directly in the database configure a direct database connection.
- To connect to Oracle Analytics Cloud configure data access to Oracle Analytics Cloud.
Use the
oci iot domain configure-direct-data-access
command and the required parameters to configure an IoT domain's authentication to establish a direct database connection.Replace the
<tenancy-OCID:<identity-group-name>
with the values for your environment.<identity-group-name>
can refer to either identity group of users or identity dynamic group.- For the
<identity-group-name>
parameter, you can refer to either the identity group of users or the identity dynamic group:<tenancy-OCID>:<identity-group-name>
- If the
<identity-domain-name>
is not in the default Identity domain, then you must specify the<identity-domain-name>
. For example:<tenancy-OCID>:<identity-domain-name>/<identity-group-name>
oci iot domain configure-direct-data-access --iot-domain-id <iot-domain-OCID> --db-allow-listed-identity-group-names '["<tenancy-OCID:<identity-domain-name>/<identity-group-name>"]'
To view your data in ORDS requires configuring access to view your IoT data in ORDS this configuration process uses the following command.
Use the
oci iot domain configure-ords-data-access
command and required parameters to configure an IoT domain's access to Oracle REST Data Services (ORDS):oci iot domain configure-ords-data-access --iot-domain-id <iot-domain-OCID> --db-allowed-identity-domain-host <idcs-<unique-id>.identity.oraclecloud.com>
To view your data in APEX requires configuring access to view your IoT data in APEX using the following command.
Use the
oci iot domain configure-apex-data-access
command and required parameters to configure an IoT domain's access to Oracle Application Express (APEX):oci iot domain configure-apex-data-access --iot-domain-id <iot-domain-OCID> --db-workspace-admin-initial-password "<your-apex-initial-password>"
Note
The initial APEX password must be at least 12 characters.For a complete list of parameters and values for CLI commands, see CLI Command Reference.
Run the ConfigureIotDomainDataAccess operation to authenticate an IoT domain to establish a direct database connection:
If you want to query your IoT data directly in the database, then you must configure a direct database connection or if you want to connect to Oracle Analytics Cloud, then you must configure a database connection to Oracle Analytics Cloud. As part of the configuration process you can use the API to add the Identity domain user or group to an IoT domain that's configured to connect to the IoT database, for example:POST /20250531/iotDomains/{iotDomainId}/actions/configureDataAccess { "type": "DIRECT", "dbAllowlistedIdentityGroupNames": ["<identity-group-name>",...] }
To view your data in ORDS requires configuring access to view your IoT data in ORDS. As part of the configuration process you can use the API to add the Identity domain host to an IoT domain to connect to Oracle REST Data Services (ORDS), for example:POST /20250531/iotDomains/{iotDomainId}/actions/configureDataAccess { "type": "ORDS", "dbAllowedIdentityDomainHost": "<idcs-<unique-id>.identity.oraclecloud.com>" }
To view your data in APEX requires configuring access to view your IoT data in APEX. As part of this configuration process you can use the API to configure your APEX for the IoT domain, for example:POST /20250531/iotDomains/{iotDomainId}/actions/configureDataAccess { "type": "APEX", "dbWorkspaceAdminInitialPassword": "<your-apex-initial-password>" }
Note
The initial APEX password must be at least 12 characters.