1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. oci
  5. IotDigitalTwinInstanceInvokeRawCommand
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi
oci logo
Oracle Cloud Infrastructure v3.12.0 published on Friday, Nov 21, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDigitalTwinInstanceInvokeRawCommand = new oci.oci.IotDigitalTwinInstanceInvokeRawCommand("test_digital_twin_instance_invoke_raw_command", {
        digitalTwinInstanceId: testDigitalTwinInstance.id,
        requestDataFormat: digitalTwinInstanceInvokeRawCommandRequestDataFormat,
        requestEndpoint: digitalTwinInstanceInvokeRawCommandRequestEndpoint,
        requestData: digitalTwinInstanceInvokeRawCommandRequestData,
        requestDataContentType: digitalTwinInstanceInvokeRawCommandRequestDataContentType,
        requestDuration: digitalTwinInstanceInvokeRawCommandRequestDuration,
        responseDuration: digitalTwinInstanceInvokeRawCommandResponseDuration,
        responseEndpoint: digitalTwinInstanceInvokeRawCommandResponseEndpoint,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_digital_twin_instance_invoke_raw_command = oci.oci.IotDigitalTwinInstanceInvokeRawCommand("test_digital_twin_instance_invoke_raw_command",
        digital_twin_instance_id=test_digital_twin_instance["id"],
        request_data_format=digital_twin_instance_invoke_raw_command_request_data_format,
        request_endpoint=digital_twin_instance_invoke_raw_command_request_endpoint,
        request_data=digital_twin_instance_invoke_raw_command_request_data,
        request_data_content_type=digital_twin_instance_invoke_raw_command_request_data_content_type,
        request_duration=digital_twin_instance_invoke_raw_command_request_duration,
        response_duration=digital_twin_instance_invoke_raw_command_response_duration,
        response_endpoint=digital_twin_instance_invoke_raw_command_response_endpoint)
    
    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.NewIotDigitalTwinInstanceInvokeRawCommand(ctx, "test_digital_twin_instance_invoke_raw_command", &oci.IotDigitalTwinInstanceInvokeRawCommandArgs{
    			DigitalTwinInstanceId:  pulumi.Any(testDigitalTwinInstance.Id),
    			RequestDataFormat:      pulumi.Any(digitalTwinInstanceInvokeRawCommandRequestDataFormat),
    			RequestEndpoint:        pulumi.Any(digitalTwinInstanceInvokeRawCommandRequestEndpoint),
    			RequestData:            pulumi.Any(digitalTwinInstanceInvokeRawCommandRequestData),
    			RequestDataContentType: pulumi.Any(digitalTwinInstanceInvokeRawCommandRequestDataContentType),
    			RequestDuration:        pulumi.Any(digitalTwinInstanceInvokeRawCommandRequestDuration),
    			ResponseDuration:       pulumi.Any(digitalTwinInstanceInvokeRawCommandResponseDuration),
    			ResponseEndpoint:       pulumi.Any(digitalTwinInstanceInvokeRawCommandResponseEndpoint),
    		})
    		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 testDigitalTwinInstanceInvokeRawCommand = new Oci.Oci.IotDigitalTwinInstanceInvokeRawCommand("test_digital_twin_instance_invoke_raw_command", new()
        {
            DigitalTwinInstanceId = testDigitalTwinInstance.Id,
            RequestDataFormat = digitalTwinInstanceInvokeRawCommandRequestDataFormat,
            RequestEndpoint = digitalTwinInstanceInvokeRawCommandRequestEndpoint,
            RequestData = digitalTwinInstanceInvokeRawCommandRequestData,
            RequestDataContentType = digitalTwinInstanceInvokeRawCommandRequestDataContentType,
            RequestDuration = digitalTwinInstanceInvokeRawCommandRequestDuration,
            ResponseDuration = digitalTwinInstanceInvokeRawCommandResponseDuration,
            ResponseEndpoint = digitalTwinInstanceInvokeRawCommandResponseEndpoint,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.oci.IotDigitalTwinInstanceInvokeRawCommand;
    import com.pulumi.oci.oci.IotDigitalTwinInstanceInvokeRawCommandArgs;
    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) {
            var testDigitalTwinInstanceInvokeRawCommand = new IotDigitalTwinInstanceInvokeRawCommand("testDigitalTwinInstanceInvokeRawCommand", IotDigitalTwinInstanceInvokeRawCommandArgs.builder()
                .digitalTwinInstanceId(testDigitalTwinInstance.id())
                .requestDataFormat(digitalTwinInstanceInvokeRawCommandRequestDataFormat)
                .requestEndpoint(digitalTwinInstanceInvokeRawCommandRequestEndpoint)
                .requestData(digitalTwinInstanceInvokeRawCommandRequestData)
                .requestDataContentType(digitalTwinInstanceInvokeRawCommandRequestDataContentType)
                .requestDuration(digitalTwinInstanceInvokeRawCommandRequestDuration)
                .responseDuration(digitalTwinInstanceInvokeRawCommandResponseDuration)
                .responseEndpoint(digitalTwinInstanceInvokeRawCommandResponseEndpoint)
                .build());
    
        }
    }
    
    resources:
      testDigitalTwinInstanceInvokeRawCommand:
        type: oci:oci:IotDigitalTwinInstanceInvokeRawCommand
        name: test_digital_twin_instance_invoke_raw_command
        properties:
          digitalTwinInstanceId: ${testDigitalTwinInstance.id}
          requestDataFormat: ${digitalTwinInstanceInvokeRawCommandRequestDataFormat}
          requestEndpoint: ${digitalTwinInstanceInvokeRawCommandRequestEndpoint}
          requestData: ${digitalTwinInstanceInvokeRawCommandRequestData}
          requestDataContentType: ${digitalTwinInstanceInvokeRawCommandRequestDataContentType}
          requestDuration: ${digitalTwinInstanceInvokeRawCommandRequestDuration}
          responseDuration: ${digitalTwinInstanceInvokeRawCommandResponseDuration}
          responseEndpoint: ${digitalTwinInstanceInvokeRawCommandResponseEndpoint}
    

    Create IotDigitalTwinInstanceInvokeRawCommand Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IotDigitalTwinInstanceInvokeRawCommand(name: string, args: IotDigitalTwinInstanceInvokeRawCommandArgs, opts?: CustomResourceOptions);
    @overload
    def IotDigitalTwinInstanceInvokeRawCommand(resource_name: str,
                                               args: IotDigitalTwinInstanceInvokeRawCommandArgs,
                                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def IotDigitalTwinInstanceInvokeRawCommand(resource_name: str,
                                               opts: Optional[ResourceOptions] = None,
                                               digital_twin_instance_id: Optional[str] = None,
                                               request_data_format: Optional[str] = None,
                                               request_endpoint: Optional[str] = None,
                                               request_data: Optional[str] = None,
                                               request_data_content_type: Optional[str] = None,
                                               request_duration: Optional[str] = None,
                                               response_duration: Optional[str] = None,
                                               response_endpoint: Optional[str] = None)
    func NewIotDigitalTwinInstanceInvokeRawCommand(ctx *Context, name string, args IotDigitalTwinInstanceInvokeRawCommandArgs, opts ...ResourceOption) (*IotDigitalTwinInstanceInvokeRawCommand, error)
    public IotDigitalTwinInstanceInvokeRawCommand(string name, IotDigitalTwinInstanceInvokeRawCommandArgs args, CustomResourceOptions? opts = null)
    public IotDigitalTwinInstanceInvokeRawCommand(String name, IotDigitalTwinInstanceInvokeRawCommandArgs args)
    public IotDigitalTwinInstanceInvokeRawCommand(String name, IotDigitalTwinInstanceInvokeRawCommandArgs args, CustomResourceOptions options)
    
    type: oci:oci:IotDigitalTwinInstanceInvokeRawCommand
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IotDigitalTwinInstanceInvokeRawCommandArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IotDigitalTwinInstanceInvokeRawCommandArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IotDigitalTwinInstanceInvokeRawCommandArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IotDigitalTwinInstanceInvokeRawCommandArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IotDigitalTwinInstanceInvokeRawCommandArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var iotDigitalTwinInstanceInvokeRawCommandResource = new Oci.Oci.IotDigitalTwinInstanceInvokeRawCommand("iotDigitalTwinInstanceInvokeRawCommandResource", new()
    {
        DigitalTwinInstanceId = "string",
        RequestDataFormat = "string",
        RequestEndpoint = "string",
        RequestData = "string",
        RequestDataContentType = "string",
        RequestDuration = "string",
        ResponseDuration = "string",
        ResponseEndpoint = "string",
    });
    
    example, err := oci.NewIotDigitalTwinInstanceInvokeRawCommand(ctx, "iotDigitalTwinInstanceInvokeRawCommandResource", &oci.IotDigitalTwinInstanceInvokeRawCommandArgs{
    	DigitalTwinInstanceId:  pulumi.String("string"),
    	RequestDataFormat:      pulumi.String("string"),
    	RequestEndpoint:        pulumi.String("string"),
    	RequestData:            pulumi.String("string"),
    	RequestDataContentType: pulumi.String("string"),
    	RequestDuration:        pulumi.String("string"),
    	ResponseDuration:       pulumi.String("string"),
    	ResponseEndpoint:       pulumi.String("string"),
    })
    
    var iotDigitalTwinInstanceInvokeRawCommandResource = new IotDigitalTwinInstanceInvokeRawCommand("iotDigitalTwinInstanceInvokeRawCommandResource", IotDigitalTwinInstanceInvokeRawCommandArgs.builder()
        .digitalTwinInstanceId("string")
        .requestDataFormat("string")
        .requestEndpoint("string")
        .requestData("string")
        .requestDataContentType("string")
        .requestDuration("string")
        .responseDuration("string")
        .responseEndpoint("string")
        .build());
    
    iot_digital_twin_instance_invoke_raw_command_resource = oci.oci.IotDigitalTwinInstanceInvokeRawCommand("iotDigitalTwinInstanceInvokeRawCommandResource",
        digital_twin_instance_id="string",
        request_data_format="string",
        request_endpoint="string",
        request_data="string",
        request_data_content_type="string",
        request_duration="string",
        response_duration="string",
        response_endpoint="string")
    
    const iotDigitalTwinInstanceInvokeRawCommandResource = new oci.oci.IotDigitalTwinInstanceInvokeRawCommand("iotDigitalTwinInstanceInvokeRawCommandResource", {
        digitalTwinInstanceId: "string",
        requestDataFormat: "string",
        requestEndpoint: "string",
        requestData: "string",
        requestDataContentType: "string",
        requestDuration: "string",
        responseDuration: "string",
        responseEndpoint: "string",
    });
    
    type: oci:oci:IotDigitalTwinInstanceInvokeRawCommand
    properties:
        digitalTwinInstanceId: string
        requestData: string
        requestDataContentType: string
        requestDataFormat: string
        requestDuration: string
        requestEndpoint: string
        responseDuration: string
        responseEndpoint: string
    

    IotDigitalTwinInstanceInvokeRawCommand Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IotDigitalTwinInstanceInvokeRawCommand resource accepts the following input properties:

    DigitalTwinInstanceId string
    The OCID of digital twin instance.
    RequestDataFormat string
    data format: json, binary, text
    RequestEndpoint string
    Device endpoint where request should be forwarded to.
    RequestData string
    base 64 encoded request data
    RequestDataContentType string
    Mime content type of data encoded using base64, default is application/octet-stream
    RequestDuration string
    Specified duration by which to send the request by.
    ResponseDuration string
    Specified duration by which to receive the response by.
    ResponseEndpoint string

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DigitalTwinInstanceId string
    The OCID of digital twin instance.
    RequestDataFormat string
    data format: json, binary, text
    RequestEndpoint string
    Device endpoint where request should be forwarded to.
    RequestData string
    base 64 encoded request data
    RequestDataContentType string
    Mime content type of data encoded using base64, default is application/octet-stream
    RequestDuration string
    Specified duration by which to send the request by.
    ResponseDuration string
    Specified duration by which to receive the response by.
    ResponseEndpoint string

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    digitalTwinInstanceId String
    The OCID of digital twin instance.
    requestDataFormat String
    data format: json, binary, text
    requestEndpoint String
    Device endpoint where request should be forwarded to.
    requestData String
    base 64 encoded request data
    requestDataContentType String
    Mime content type of data encoded using base64, default is application/octet-stream
    requestDuration String
    Specified duration by which to send the request by.
    responseDuration String
    Specified duration by which to receive the response by.
    responseEndpoint String

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    digitalTwinInstanceId string
    The OCID of digital twin instance.
    requestDataFormat string
    data format: json, binary, text
    requestEndpoint string
    Device endpoint where request should be forwarded to.
    requestData string
    base 64 encoded request data
    requestDataContentType string
    Mime content type of data encoded using base64, default is application/octet-stream
    requestDuration string
    Specified duration by which to send the request by.
    responseDuration string
    Specified duration by which to receive the response by.
    responseEndpoint string

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    digital_twin_instance_id str
    The OCID of digital twin instance.
    request_data_format str
    data format: json, binary, text
    request_endpoint str
    Device endpoint where request should be forwarded to.
    request_data str
    base 64 encoded request data
    request_data_content_type str
    Mime content type of data encoded using base64, default is application/octet-stream
    request_duration str
    Specified duration by which to send the request by.
    response_duration str
    Specified duration by which to receive the response by.
    response_endpoint str

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    digitalTwinInstanceId String
    The OCID of digital twin instance.
    requestDataFormat String
    data format: json, binary, text
    requestEndpoint String
    Device endpoint where request should be forwarded to.
    requestData String
    base 64 encoded request data
    requestDataContentType String
    Mime content type of data encoded using base64, default is application/octet-stream
    requestDuration String
    Specified duration by which to send the request by.
    responseDuration String
    Specified duration by which to receive the response by.
    responseEndpoint String

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IotDigitalTwinInstanceInvokeRawCommand resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IotDigitalTwinInstanceInvokeRawCommand Resource

    Get an existing IotDigitalTwinInstanceInvokeRawCommand resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IotDigitalTwinInstanceInvokeRawCommandState, opts?: CustomResourceOptions): IotDigitalTwinInstanceInvokeRawCommand
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            digital_twin_instance_id: Optional[str] = None,
            request_data: Optional[str] = None,
            request_data_content_type: Optional[str] = None,
            request_data_format: Optional[str] = None,
            request_duration: Optional[str] = None,
            request_endpoint: Optional[str] = None,
            response_duration: Optional[str] = None,
            response_endpoint: Optional[str] = None) -> IotDigitalTwinInstanceInvokeRawCommand
    func GetIotDigitalTwinInstanceInvokeRawCommand(ctx *Context, name string, id IDInput, state *IotDigitalTwinInstanceInvokeRawCommandState, opts ...ResourceOption) (*IotDigitalTwinInstanceInvokeRawCommand, error)
    public static IotDigitalTwinInstanceInvokeRawCommand Get(string name, Input<string> id, IotDigitalTwinInstanceInvokeRawCommandState? state, CustomResourceOptions? opts = null)
    public static IotDigitalTwinInstanceInvokeRawCommand get(String name, Output<String> id, IotDigitalTwinInstanceInvokeRawCommandState state, CustomResourceOptions options)
    resources:  _:    type: oci:oci:IotDigitalTwinInstanceInvokeRawCommand    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DigitalTwinInstanceId string
    The OCID of digital twin instance.
    RequestData string
    base 64 encoded request data
    RequestDataContentType string
    Mime content type of data encoded using base64, default is application/octet-stream
    RequestDataFormat string
    data format: json, binary, text
    RequestDuration string
    Specified duration by which to send the request by.
    RequestEndpoint string
    Device endpoint where request should be forwarded to.
    ResponseDuration string
    Specified duration by which to receive the response by.
    ResponseEndpoint string

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DigitalTwinInstanceId string
    The OCID of digital twin instance.
    RequestData string
    base 64 encoded request data
    RequestDataContentType string
    Mime content type of data encoded using base64, default is application/octet-stream
    RequestDataFormat string
    data format: json, binary, text
    RequestDuration string
    Specified duration by which to send the request by.
    RequestEndpoint string
    Device endpoint where request should be forwarded to.
    ResponseDuration string
    Specified duration by which to receive the response by.
    ResponseEndpoint string

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    digitalTwinInstanceId String
    The OCID of digital twin instance.
    requestData String
    base 64 encoded request data
    requestDataContentType String
    Mime content type of data encoded using base64, default is application/octet-stream
    requestDataFormat String
    data format: json, binary, text
    requestDuration String
    Specified duration by which to send the request by.
    requestEndpoint String
    Device endpoint where request should be forwarded to.
    responseDuration String
    Specified duration by which to receive the response by.
    responseEndpoint String

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    digitalTwinInstanceId string
    The OCID of digital twin instance.
    requestData string
    base 64 encoded request data
    requestDataContentType string
    Mime content type of data encoded using base64, default is application/octet-stream
    requestDataFormat string
    data format: json, binary, text
    requestDuration string
    Specified duration by which to send the request by.
    requestEndpoint string
    Device endpoint where request should be forwarded to.
    responseDuration string
    Specified duration by which to receive the response by.
    responseEndpoint string

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    digital_twin_instance_id str
    The OCID of digital twin instance.
    request_data str
    base 64 encoded request data
    request_data_content_type str
    Mime content type of data encoded using base64, default is application/octet-stream
    request_data_format str
    data format: json, binary, text
    request_duration str
    Specified duration by which to send the request by.
    request_endpoint str
    Device endpoint where request should be forwarded to.
    response_duration str
    Specified duration by which to receive the response by.
    response_endpoint str

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    digitalTwinInstanceId String
    The OCID of digital twin instance.
    requestData String
    base 64 encoded request data
    requestDataContentType String
    Mime content type of data encoded using base64, default is application/octet-stream
    requestDataFormat String
    data format: json, binary, text
    requestDuration String
    Specified duration by which to send the request by.
    requestEndpoint String
    Device endpoint where request should be forwarded to.
    responseDuration String
    Specified duration by which to receive the response by.
    responseEndpoint String

    Device endpoint from which response is expected to come.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    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.12.0 published on Friday, Nov 21, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate