1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. getIotDigitalTwinModel
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

oci.oci.getIotDigitalTwinModel

Get Started
oci logo
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi

    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 dictionary

    The following arguments are supported:

    DigitalTwinModelId string
    The OCID of digital twin model.
    DigitalTwinModelId string
    The OCID of digital twin model.
    digitalTwinModelId String
    The OCID of digital twin model.
    digitalTwinModelId string
    The OCID of digital twin model.
    digital_twin_model_id str
    The OCID of digital twin model.
    digitalTwinModelId String
    The OCID of digital twin model.

    getIotDigitalTwinModel Result

    The following output properties are available:

    DefinedTags 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.
    DigitalTwinModelId string
    DisplayName 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.
    FreeformTags 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.
    IotDomainId string
    The OCID of the IoT domain.
    Spec string
    SpecUri 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.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated 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
    DefinedTags 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.
    DigitalTwinModelId string
    DisplayName 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.
    FreeformTags 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.
    IotDomainId string
    The OCID of the IoT domain.
    Spec string
    SpecUri 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.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    TimeUpdated 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
    definedTags 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.
    digitalTwinModelId String
    displayName 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.
    freeformTags 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.
    iotDomainId String
    The OCID of the IoT domain.
    spec String
    specUri 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.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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
    definedTags {[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.
    digitalTwinModelId string
    displayName 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.
    freeformTags {[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.
    iotDomainId string
    The OCID of the IoT domain.
    spec string
    specUri 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.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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
    defined_tags 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_model_id str
    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.
    freeform_tags 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_id str
    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.
    system_tags 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
    definedTags 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.
    digitalTwinModelId String
    displayName 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.
    freeformTags 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.
    iotDomainId String
    The OCID of the IoT domain.
    spec String
    specUri 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.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The date and time when the resource was created, in the format defined by RFC 3339. Example: 2016-08-25T21:10:29.600Z
    timeUpdated 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate