Getting a Digital Twin's Instance Content

Get content from a digital twin's instance.

After you delete a digital twin instance, you may be able to get the contents for the digital twin instance for up to 24 hours after it's deleted.

When you use the API or CLI to get the latest content from a digital twin instance, expect the following status codes:
  • For unstructured telemetry: If the specific digital twin instance does not exist, or if a digital twin model is not associated to the digital twin instance, the response contains a 404 status code.
  • For structured telemetry: If a digital twin model is associated to the digital twin instance and the digital twin instance content is retrieved successfully, the response contains a 200 status code.
    1. On the Domains list page, select the domain that you want to work with. If you need help finding the IoT domains list page or an IoT domain, see Listing IoT Domains.
    2. Select the Digital twin instances tab.
    3. Select the digital twin instance name you want to work with. The details page opens.
    4. Select the Data tab, to view the latest snapshot data for this instance. For more information, see IoT Domain Database Schema Reference.
  • Use the oci iot digital-twin-instance get-content command and the required parameter to get a digital twin's instance content:

    oci iot digital-twin-instance get-content --digital-twin-instance-id <digital-twin-instance-OCID>

    For a complete list of parameters and values for CLI commands, see CLI Command Reference.

  • Run the GetDigitalTwinInstanceContent operation to get content from a digital twin instance.