Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.oci.getIotDigitalTwinModel
This data source provides details about a specific Digital Twin Model resource in Oracle Cloud Infrastructure Iot service.
Retrieves the digital twin model identified by the specified OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDigitalTwinModel = oci.oci.getIotDigitalTwinModel({
digitalTwinModelId: testDigitalTwinModelOciIotDigitalTwinModel.id,
});
import pulumi
import pulumi_oci as oci
test_digital_twin_model = oci.oci.get_iot_digital_twin_model(digital_twin_model_id=test_digital_twin_model_oci_iot_digital_twin_model["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.LookupIotDigitalTwinModel(ctx, &oci.LookupIotDigitalTwinModelArgs{
DigitalTwinModelId: testDigitalTwinModelOciIotDigitalTwinModel.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 testDigitalTwinModel = Oci.Oci.GetIotDigitalTwinModel.Invoke(new()
{
DigitalTwinModelId = testDigitalTwinModelOciIotDigitalTwinModel.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.GetIotDigitalTwinModelArgs;
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 testDigitalTwinModel = OciFunctions.getIotDigitalTwinModel(GetIotDigitalTwinModelArgs.builder()
.digitalTwinModelId(testDigitalTwinModelOciIotDigitalTwinModel.id())
.build());
}
}
variables:
testDigitalTwinModel:
fn::invoke:
function: oci:oci:getIotDigitalTwinModel
arguments:
digitalTwinModelId: ${testDigitalTwinModelOciIotDigitalTwinModel.id}
Using getIotDigitalTwinModel
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 getIotDigitalTwinModel(args: GetIotDigitalTwinModelArgs, opts?: InvokeOptions): Promise<GetIotDigitalTwinModelResult>
function getIotDigitalTwinModelOutput(args: GetIotDigitalTwinModelOutputArgs, opts?: InvokeOptions): Output<GetIotDigitalTwinModelResult>def get_iot_digital_twin_model(digital_twin_model_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIotDigitalTwinModelResult
def get_iot_digital_twin_model_output(digital_twin_model_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIotDigitalTwinModelResult]func LookupIotDigitalTwinModel(ctx *Context, args *LookupIotDigitalTwinModelArgs, opts ...InvokeOption) (*LookupIotDigitalTwinModelResult, error)
func LookupIotDigitalTwinModelOutput(ctx *Context, args *LookupIotDigitalTwinModelOutputArgs, opts ...InvokeOption) LookupIotDigitalTwinModelResultOutput> Note: This function is named LookupIotDigitalTwinModel in the Go SDK.
public static class GetIotDigitalTwinModel
{
public static Task<GetIotDigitalTwinModelResult> InvokeAsync(GetIotDigitalTwinModelArgs args, InvokeOptions? opts = null)
public static Output<GetIotDigitalTwinModelResult> Invoke(GetIotDigitalTwinModelInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIotDigitalTwinModelResult> getIotDigitalTwinModel(GetIotDigitalTwinModelArgs args, InvokeOptions options)
public static Output<GetIotDigitalTwinModelResult> getIotDigitalTwinModel(GetIotDigitalTwinModelArgs args, InvokeOptions options)
fn::invoke:
function: oci:oci/getIotDigitalTwinModel:getIotDigitalTwinModel
arguments:
# arguments dictionaryThe following arguments are supported:
- Digital
Twin stringModel Id - The OCID of digital twin model.
- Digital
Twin stringModel Id - The OCID of digital twin model.
- digital
Twin StringModel Id - The OCID of digital twin model.
- digital
Twin stringModel Id - The OCID of digital twin model.
- digital_
twin_ strmodel_ id - The OCID of digital twin model.
- digital
Twin StringModel Id - The OCID of digital twin model.
getIotDigitalTwinModel Result
The following output properties are available:
- 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. If left blank, the description will be derived from the spec.
- Digital
Twin stringModel Id - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If left blank, the display name will be derived from the spec.
- 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.
- Spec string
- Spec
Uri string - This is the DTMI (Digital Twin Model Identifier) of the digital twin model as defined in DTDL specification.
- State string
- The current state of the digital twin model.
- 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
- 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. If left blank, the description will be derived from the spec.
- Digital
Twin stringModel Id - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If left blank, the display name will be derived from the spec.
- 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.
- Spec string
- Spec
Uri string - This is the DTMI (Digital Twin Model Identifier) of the digital twin model as defined in DTDL specification.
- State string
- The current state of the digital twin model.
- 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
- 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. If left blank, the description will be derived from the spec.
- digital
Twin StringModel Id - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If left blank, the display name will be derived from the spec.
- 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.
- spec String
- spec
Uri String - This is the DTMI (Digital Twin Model Identifier) of the digital twin model as defined in DTDL specification.
- state String
- The current state of the digital twin model.
- 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
- {[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. If left blank, the description will be derived from the spec.
- digital
Twin stringModel Id - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If left blank, the display name will be derived from the spec.
- {[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.
- spec string
- spec
Uri string - This is the DTMI (Digital Twin Model Identifier) of the digital twin model as defined in DTDL specification.
- state string
- The current state of the digital twin model.
- {[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
- 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. If left blank, the description will be derived from the spec.
- digital_
twin_ strmodel_ id - display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If left blank, the display name will be derived from the spec.
- 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.
- spec str
- spec_
uri str - This is the DTMI (Digital Twin Model Identifier) of the digital twin model as defined in DTDL specification.
- state str
- The current state of the digital twin model.
- 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
- 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. If left blank, the description will be derived from the spec.
- digital
Twin StringModel Id - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. If left blank, the display name will be derived from the spec.
- 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.
- spec String
- spec
Uri String - This is the DTMI (Digital Twin Model Identifier) of the digital twin model as defined in DTDL specification.
- state String
- The current state of the digital twin model.
- 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.
