Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.oci.getIotDigitalTwinInstance
This data source provides details about a specific Digital Twin Instance resource in Oracle Cloud Infrastructure Iot service.
Retrieves the digital twin instance identified by the specified OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDigitalTwinInstance = oci.oci.getIotDigitalTwinInstance({
digitalTwinInstanceId: testDigitalTwinInstanceOciIotDigitalTwinInstance.id,
});
import pulumi
import pulumi_oci as oci
test_digital_twin_instance = oci.oci.get_iot_digital_twin_instance(digital_twin_instance_id=test_digital_twin_instance_oci_iot_digital_twin_instance["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/oci"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oci.LookupIotDigitalTwinInstance(ctx, &oci.LookupIotDigitalTwinInstanceArgs{
DigitalTwinInstanceId: testDigitalTwinInstanceOciIotDigitalTwinInstance.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDigitalTwinInstance = Oci.Oci.GetIotDigitalTwinInstance.Invoke(new()
{
DigitalTwinInstanceId = testDigitalTwinInstanceOciIotDigitalTwinInstance.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.oci.OciFunctions;
import com.pulumi.oci.oci.inputs.GetIotDigitalTwinInstanceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var testDigitalTwinInstance = OciFunctions.getIotDigitalTwinInstance(GetIotDigitalTwinInstanceArgs.builder()
.digitalTwinInstanceId(testDigitalTwinInstanceOciIotDigitalTwinInstance.id())
.build());
}
}
variables:
testDigitalTwinInstance:
fn::invoke:
function: oci:oci:getIotDigitalTwinInstance
arguments:
digitalTwinInstanceId: ${testDigitalTwinInstanceOciIotDigitalTwinInstance.id}
Using getIotDigitalTwinInstance
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getIotDigitalTwinInstance(args: GetIotDigitalTwinInstanceArgs, opts?: InvokeOptions): Promise<GetIotDigitalTwinInstanceResult>
function getIotDigitalTwinInstanceOutput(args: GetIotDigitalTwinInstanceOutputArgs, opts?: InvokeOptions): Output<GetIotDigitalTwinInstanceResult>def get_iot_digital_twin_instance(digital_twin_instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIotDigitalTwinInstanceResult
def get_iot_digital_twin_instance_output(digital_twin_instance_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIotDigitalTwinInstanceResult]func LookupIotDigitalTwinInstance(ctx *Context, args *LookupIotDigitalTwinInstanceArgs, opts ...InvokeOption) (*LookupIotDigitalTwinInstanceResult, error)
func LookupIotDigitalTwinInstanceOutput(ctx *Context, args *LookupIotDigitalTwinInstanceOutputArgs, opts ...InvokeOption) LookupIotDigitalTwinInstanceResultOutput> Note: This function is named LookupIotDigitalTwinInstance in the Go SDK.
public static class GetIotDigitalTwinInstance
{
public static Task<GetIotDigitalTwinInstanceResult> InvokeAsync(GetIotDigitalTwinInstanceArgs args, InvokeOptions? opts = null)
public static Output<GetIotDigitalTwinInstanceResult> Invoke(GetIotDigitalTwinInstanceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIotDigitalTwinInstanceResult> getIotDigitalTwinInstance(GetIotDigitalTwinInstanceArgs args, InvokeOptions options)
public static Output<GetIotDigitalTwinInstanceResult> getIotDigitalTwinInstance(GetIotDigitalTwinInstanceArgs args, InvokeOptions options)
fn::invoke:
function: oci:oci/getIotDigitalTwinInstance:getIotDigitalTwinInstance
arguments:
# arguments dictionaryThe following arguments are supported:
- Digital
Twin stringInstance Id - The OCID of digital twin instance.
- Digital
Twin stringInstance Id - The OCID of digital twin instance.
- digital
Twin StringInstance Id - The OCID of digital twin instance.
- digital
Twin stringInstance Id - The OCID of digital twin instance.
- digital_
twin_ strinstance_ id - The OCID of digital twin instance.
- digital
Twin StringInstance Id - The OCID of digital twin instance.
getIotDigitalTwinInstance Result
The following output properties are available:
- Auth
Id string - The OCID of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- A short description of the resource.
- Digital
Twin stringAdapter Id - The OCID of the digital twin adapter.
- Digital
Twin stringInstance Id - Digital
Twin stringModel Id - The OCID of the digital twin model.
- Digital
Twin stringModel Spec Uri - The URI of the digital twin model specification.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- External
Key string - A unique identifier for the physical entity (typically an IoT device) represented by the digital twin instance. This could be a Bluetooth address, Ethernet MAC address, or serial number, depending on the use case. If not provided, the system will automatically generate one.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the resource.
- Iot
Domain stringId - The OCID of the IoT domain.
- State string
- The current state of the digital twin instance.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time when the resource was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time when the resource was last updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- Auth
Id string - The OCID of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - Description string
- A short description of the resource.
- Digital
Twin stringAdapter Id - The OCID of the digital twin adapter.
- Digital
Twin stringInstance Id - Digital
Twin stringModel Id - The OCID of the digital twin model.
- Digital
Twin stringModel Spec Uri - The URI of the digital twin model specification.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- External
Key string - A unique identifier for the physical entity (typically an IoT device) represented by the digital twin instance. This could be a Bluetooth address, Ethernet MAC address, or serial number, depending on the use case. If not provided, the system will automatically generate one.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - Id string
- The OCID of the resource.
- Iot
Domain stringId - The OCID of the IoT domain.
- State string
- The current state of the digital twin instance.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - The date and time when the resource was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - Time
Updated string - The date and time when the resource was last updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- auth
Id String - The OCID of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- A short description of the resource.
- digital
Twin StringAdapter Id - The OCID of the digital twin adapter.
- digital
Twin StringInstance Id - digital
Twin StringModel Id - The OCID of the digital twin model.
- digital
Twin StringModel Spec Uri - The URI of the digital twin model specification.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- external
Key String - A unique identifier for the physical entity (typically an IoT device) represented by the digital twin instance. This could be a Bluetooth address, Ethernet MAC address, or serial number, depending on the use case. If not provided, the system will automatically generate one.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the resource.
- iot
Domain StringId - The OCID of the IoT domain.
- state String
- The current state of the digital twin instance.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time when the resource was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time when the resource was last updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- auth
Id string - The OCID of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description string
- A short description of the resource.
- digital
Twin stringAdapter Id - The OCID of the digital twin adapter.
- digital
Twin stringInstance Id - digital
Twin stringModel Id - The OCID of the digital twin model.
- digital
Twin stringModel Spec Uri - The URI of the digital twin model specification.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- external
Key string - A unique identifier for the physical entity (typically an IoT device) represented by the digital twin instance. This could be a Bluetooth address, Ethernet MAC address, or serial number, depending on the use case. If not provided, the system will automatically generate one.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id string
- The OCID of the resource.
- iot
Domain stringId - The OCID of the IoT domain.
- state string
- The current state of the digital twin instance.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - The date and time when the resource was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated string - The date and time when the resource was last updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- auth_
id str - The OCID of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description str
- A short description of the resource.
- digital_
twin_ stradapter_ id - The OCID of the digital twin adapter.
- digital_
twin_ strinstance_ id - digital_
twin_ strmodel_ id - The OCID of the digital twin model.
- digital_
twin_ strmodel_ spec_ uri - The URI of the digital twin model specification.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- external_
key str - A unique identifier for the physical entity (typically an IoT device) represented by the digital twin instance. This could be a Bluetooth address, Ethernet MAC address, or serial number, depending on the use case. If not provided, the system will automatically generate one.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id str
- The OCID of the resource.
- iot_
domain_ strid - The OCID of the IoT domain.
- state str
- The current state of the digital twin instance.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time_
created str - The date and time when the resource was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time_
updated str - The date and time when the resource was last updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
- auth
Id String - The OCID of the resource (like VaultSecret, ClientCertificate etc.,) used to authenticate the digital twin instance.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"} - description String
- A short description of the resource.
- digital
Twin StringAdapter Id - The OCID of the digital twin adapter.
- digital
Twin StringInstance Id - digital
Twin StringModel Id - The OCID of the digital twin model.
- digital
Twin StringModel Spec Uri - The URI of the digital twin model specification.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- external
Key String - A unique identifier for the physical entity (typically an IoT device) represented by the digital twin instance. This could be a Bluetooth address, Ethernet MAC address, or serial number, depending on the use case. If not provided, the system will automatically generate one.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"} - id String
- The OCID of the resource.
- iot
Domain StringId - The OCID of the IoT domain.
- state String
- The current state of the digital twin instance.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - The date and time when the resource was created, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z - time
Updated String - The date and time when the resource was last updated, in the format defined by RFC 3339. Example:
2016-08-25T21:10:29.600Z
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
