Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.oci.getIotDigitalTwinRelationship
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
This data source provides details about a specific Digital Twin Relationship resource in Oracle Cloud Infrastructure Iot service.
Retrieves the digital twin relationship identified by the specified OCID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDigitalTwinRelationship = oci.oci.getIotDigitalTwinRelationship({
digitalTwinRelationshipId: testDigitalTwinRelationshipOciIotDigitalTwinRelationship.id,
});
import pulumi
import pulumi_oci as oci
test_digital_twin_relationship = oci.oci.get_iot_digital_twin_relationship(digital_twin_relationship_id=test_digital_twin_relationship_oci_iot_digital_twin_relationship["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.LookupIotDigitalTwinRelationship(ctx, &oci.LookupIotDigitalTwinRelationshipArgs{
DigitalTwinRelationshipId: testDigitalTwinRelationshipOciIotDigitalTwinRelationship.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 testDigitalTwinRelationship = Oci.Oci.GetIotDigitalTwinRelationship.Invoke(new()
{
DigitalTwinRelationshipId = testDigitalTwinRelationshipOciIotDigitalTwinRelationship.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.GetIotDigitalTwinRelationshipArgs;
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 testDigitalTwinRelationship = OciFunctions.getIotDigitalTwinRelationship(GetIotDigitalTwinRelationshipArgs.builder()
.digitalTwinRelationshipId(testDigitalTwinRelationshipOciIotDigitalTwinRelationship.id())
.build());
}
}
variables:
testDigitalTwinRelationship:
fn::invoke:
function: oci:oci:getIotDigitalTwinRelationship
arguments:
digitalTwinRelationshipId: ${testDigitalTwinRelationshipOciIotDigitalTwinRelationship.id}
Using getIotDigitalTwinRelationship
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 getIotDigitalTwinRelationship(args: GetIotDigitalTwinRelationshipArgs, opts?: InvokeOptions): Promise<GetIotDigitalTwinRelationshipResult>
function getIotDigitalTwinRelationshipOutput(args: GetIotDigitalTwinRelationshipOutputArgs, opts?: InvokeOptions): Output<GetIotDigitalTwinRelationshipResult>def get_iot_digital_twin_relationship(digital_twin_relationship_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIotDigitalTwinRelationshipResult
def get_iot_digital_twin_relationship_output(digital_twin_relationship_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIotDigitalTwinRelationshipResult]func LookupIotDigitalTwinRelationship(ctx *Context, args *LookupIotDigitalTwinRelationshipArgs, opts ...InvokeOption) (*LookupIotDigitalTwinRelationshipResult, error)
func LookupIotDigitalTwinRelationshipOutput(ctx *Context, args *LookupIotDigitalTwinRelationshipOutputArgs, opts ...InvokeOption) LookupIotDigitalTwinRelationshipResultOutput> Note: This function is named LookupIotDigitalTwinRelationship in the Go SDK.
public static class GetIotDigitalTwinRelationship
{
public static Task<GetIotDigitalTwinRelationshipResult> InvokeAsync(GetIotDigitalTwinRelationshipArgs args, InvokeOptions? opts = null)
public static Output<GetIotDigitalTwinRelationshipResult> Invoke(GetIotDigitalTwinRelationshipInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIotDigitalTwinRelationshipResult> getIotDigitalTwinRelationship(GetIotDigitalTwinRelationshipArgs args, InvokeOptions options)
public static Output<GetIotDigitalTwinRelationshipResult> getIotDigitalTwinRelationship(GetIotDigitalTwinRelationshipArgs args, InvokeOptions options)
fn::invoke:
function: oci:oci/getIotDigitalTwinRelationship:getIotDigitalTwinRelationship
arguments:
# arguments dictionaryThe following arguments are supported:
- Digital
Twin stringRelationship Id - The OCID of digital twin relationship.
- Digital
Twin stringRelationship Id - The OCID of digital twin relationship.
- digital
Twin StringRelationship Id - The OCID of digital twin relationship.
- digital
Twin stringRelationship Id - The OCID of digital twin relationship.
- digital_
twin_ strrelationship_ id - The OCID of digital twin relationship.
- digital
Twin StringRelationship Id - The OCID of digital twin relationship.
getIotDigitalTwinRelationship Result
The following output properties are available:
- Content string
- The value(s) of the relationship properties defined in the source digital twin model.
- Content
Path string - Its the name of the relationship that links two digital twin instances. Here, it is the relationship name of the source digital twin model.
- 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 stringRelationship Id - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- Source
Digital stringTwin Instance Id - The OCID of source digital twin instance.
- State string
- The current state of the digital twin relationship.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Digital stringTwin Instance Id - The OCID of target digital twin instance.
- 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
- Content string
- The value(s) of the relationship properties defined in the source digital twin model.
- Content
Path string - Its the name of the relationship that links two digital twin instances. Here, it is the relationship name of the source digital twin model.
- 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 stringRelationship Id - Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- Source
Digital stringTwin Instance Id - The OCID of source digital twin instance.
- State string
- The current state of the digital twin relationship.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Digital stringTwin Instance Id - The OCID of target digital twin instance.
- 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
- content String
- The value(s) of the relationship properties defined in the source digital twin model.
- content
Path String - Its the name of the relationship that links two digital twin instances. Here, it is the relationship name of the source digital twin model.
- 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 StringRelationship Id - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- source
Digital StringTwin Instance Id - The OCID of source digital twin instance.
- state String
- The current state of the digital twin relationship.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Digital StringTwin Instance Id - The OCID of target digital twin instance.
- 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
- content string
- The value(s) of the relationship properties defined in the source digital twin model.
- content
Path string - Its the name of the relationship that links two digital twin instances. Here, it is the relationship name of the source digital twin model.
- {[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 stringRelationship Id - display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[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.
- source
Digital stringTwin Instance Id - The OCID of source digital twin instance.
- state string
- The current state of the digital twin relationship.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Digital stringTwin Instance Id - The OCID of target digital twin instance.
- 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
- content str
- The value(s) of the relationship properties defined in the source digital twin model.
- content_
path str - Its the name of the relationship that links two digital twin instances. Here, it is the relationship name of the source digital twin model.
- 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_ strrelationship_ id - display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- source_
digital_ strtwin_ instance_ id - The OCID of source digital twin instance.
- state str
- The current state of the digital twin relationship.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
digital_ strtwin_ instance_ id - The OCID of target digital twin instance.
- 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
- content String
- The value(s) of the relationship properties defined in the source digital twin model.
- content
Path String - Its the name of the relationship that links two digital twin instances. Here, it is the relationship name of the source digital twin model.
- 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 StringRelationship Id - display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- 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.
- source
Digital StringTwin Instance Id - The OCID of source digital twin instance.
- state String
- The current state of the digital twin relationship.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Digital StringTwin Instance Id - The OCID of target digital twin instance.
- 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.
Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
