1. Packages
  2. Packages
  3. Oracle Cloud Infrastructure
  4. API Docs
  5. oci
  6. getDataccVmInstance
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
oci logo oci logo
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi

    This data source provides details about a specific Vm Instance resource in Oracle Cloud Infrastructure Datacc service.

    Obtain the VM instance on Database Infrastructure that has the specified OCID.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testVmInstance = oci.oci.getDataccVmInstance({
        vmInstanceId: testVmInstanceOciDataccVmInstance.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_vm_instance = oci.oci.get_datacc_vm_instance(vm_instance_id=test_vm_instance_oci_datacc_vm_instance["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v4/go/oci/oci"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := oci.LookupDataccVmInstance(ctx, &oci.LookupDataccVmInstanceArgs{
    			VmInstanceId: testVmInstanceOciDataccVmInstance.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 testVmInstance = Oci.Oci.GetDataccVmInstance.Invoke(new()
        {
            VmInstanceId = testVmInstanceOciDataccVmInstance.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.GetDataccVmInstanceArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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 testVmInstance = OciFunctions.getDataccVmInstance(GetDataccVmInstanceArgs.builder()
                .vmInstanceId(testVmInstanceOciDataccVmInstance.id())
                .build());
    
        }
    }
    
    variables:
      testVmInstance:
        fn::invoke:
          function: oci:oci:getDataccVmInstance
          arguments:
            vmInstanceId: ${testVmInstanceOciDataccVmInstance.id}
    
    pulumi {
      required_providers {
        oci = {
          source = "pulumi/oci"
        }
      }
    }
    
    data "oci_oci_getdataccvminstance" "testVmInstance" {
      vm_instance_id = testVmInstanceOciDataccVmInstance.id
    }
    

    Using getDataccVmInstance

    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 getDataccVmInstance(args: GetDataccVmInstanceArgs, opts?: InvokeOptions): Promise<GetDataccVmInstanceResult>
    function getDataccVmInstanceOutput(args: GetDataccVmInstanceOutputArgs, opts?: InvokeOptions): Output<GetDataccVmInstanceResult>
    def get_datacc_vm_instance(vm_instance_id: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetDataccVmInstanceResult
    def get_datacc_vm_instance_output(vm_instance_id: pulumi.Input[Optional[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetDataccVmInstanceResult]
    func LookupDataccVmInstance(ctx *Context, args *LookupDataccVmInstanceArgs, opts ...InvokeOption) (*LookupDataccVmInstanceResult, error)
    func LookupDataccVmInstanceOutput(ctx *Context, args *LookupDataccVmInstanceOutputArgs, opts ...InvokeOption) LookupDataccVmInstanceResultOutput

    > Note: This function is named LookupDataccVmInstance in the Go SDK.

    public static class GetDataccVmInstance 
    {
        public static Task<GetDataccVmInstanceResult> InvokeAsync(GetDataccVmInstanceArgs args, InvokeOptions? opts = null)
        public static Output<GetDataccVmInstanceResult> Invoke(GetDataccVmInstanceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDataccVmInstanceResult> getDataccVmInstance(GetDataccVmInstanceArgs args, InvokeOptions options)
    public static Output<GetDataccVmInstanceResult> getDataccVmInstance(GetDataccVmInstanceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: oci:oci/getDataccVmInstance:getDataccVmInstance
      arguments:
        # arguments dictionary
    data "oci_oci_get_datacc_vm_instance" "name" {
        # arguments
    }

    The following arguments are supported:

    VmInstanceId string
    The OCID of the VM instance.
    VmInstanceId string
    The OCID of the VM instance.
    vm_instance_id string
    The OCID of the VM instance.
    vmInstanceId String
    The OCID of the VM instance.
    vmInstanceId string
    The OCID of the VM instance.
    vm_instance_id str
    The OCID of the VM instance.
    vmInstanceId String
    The OCID of the VM instance.

    getDataccVmInstance Result

    The following output properties are available:

    BootStorageSizeInGbs double
    Boot storage memory to be allocated in GBs.
    CompartmentId string
    The OCID of the compartment containing the VM instance.
    CpusEnabled int
    The number of CPU cores enabled for each VM instance.
    DataStorageSizeInGb double
    Data storage to be allocated in GBs.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    VM instance description.
    DisplayName string
    VM instance display name. This name does not have to be unique, and is changeable.
    DnsServers List<string>
    The list of DNS server IP addresses. Maximum of 3 allowed.
    DomainName string
    The domain name of the VM instance.
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    Gateway string
    The gateway IP address of the VM instance network.
    Hostname string
    The host name of the instance.
    Id string
    The OCID of the VM instance.
    ImageId string
    The OCID of the VM custom instance uploaded.
    InfrastructureId string
    The OCID of the Database Infrastructure.
    IpAddress string
    The IP address of the instance.
    LifecycleDetails string
    Lifecycle state details of the VM instance.
    MemorySizeInGbs double
    The memory to be allocated in GBs.
    Metadata Dictionary<string, string>
    Custom metadata key/value pairs which can be used to:

    • Provide information to Cloud-Init to be used for various system initialization tasks.
    • Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.
    Netmask string
    The netmask of the VM instance network.
    NtpServers List<string>
    The list of NTP server addresses. Maximum of 3 allowed.
    ServerId string
    The OCID of the compute node on which VM instance should be launched.
    SshPublicKeys List<string>
    List of public key used for SSH access to the VM instance.
    State string
    The current state of the VM instance.
    SystemTags Dictionary<string, string>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time that the VM instance was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time that the VM instance was last updated. An RFC3339 formatted datetime string.
    TimeZone string
    The time zone to use for the VM instance.
    Userdata string
    Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation.
    VlanId string
    The network VLAN ID.
    VmInstanceId string
    VmNetworkId string
    The OCID of the VM Network.
    BootStorageSizeInGbs float64
    Boot storage memory to be allocated in GBs.
    CompartmentId string
    The OCID of the compartment containing the VM instance.
    CpusEnabled int
    The number of CPU cores enabled for each VM instance.
    DataStorageSizeInGb float64
    Data storage to be allocated in GBs.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    VM instance description.
    DisplayName string
    VM instance display name. This name does not have to be unique, and is changeable.
    DnsServers []string
    The list of DNS server IP addresses. Maximum of 3 allowed.
    DomainName string
    The domain name of the VM instance.
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    Gateway string
    The gateway IP address of the VM instance network.
    Hostname string
    The host name of the instance.
    Id string
    The OCID of the VM instance.
    ImageId string
    The OCID of the VM custom instance uploaded.
    InfrastructureId string
    The OCID of the Database Infrastructure.
    IpAddress string
    The IP address of the instance.
    LifecycleDetails string
    Lifecycle state details of the VM instance.
    MemorySizeInGbs float64
    The memory to be allocated in GBs.
    Metadata map[string]string
    Custom metadata key/value pairs which can be used to:

    • Provide information to Cloud-Init to be used for various system initialization tasks.
    • Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.
    Netmask string
    The netmask of the VM instance network.
    NtpServers []string
    The list of NTP server addresses. Maximum of 3 allowed.
    ServerId string
    The OCID of the compute node on which VM instance should be launched.
    SshPublicKeys []string
    List of public key used for SSH access to the VM instance.
    State string
    The current state of the VM instance.
    SystemTags map[string]string
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time that the VM instance was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time that the VM instance was last updated. An RFC3339 formatted datetime string.
    TimeZone string
    The time zone to use for the VM instance.
    Userdata string
    Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation.
    VlanId string
    The network VLAN ID.
    VmInstanceId string
    VmNetworkId string
    The OCID of the VM Network.
    boot_storage_size_in_gbs number
    Boot storage memory to be allocated in GBs.
    compartment_id string
    The OCID of the compartment containing the VM instance.
    cpus_enabled number
    The number of CPU cores enabled for each VM instance.
    data_storage_size_in_gb number
    Data storage to be allocated in GBs.
    defined_tags map(string)
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    VM instance description.
    display_name string
    VM instance display name. This name does not have to be unique, and is changeable.
    dns_servers list(string)
    The list of DNS server IP addresses. Maximum of 3 allowed.
    domain_name string
    The domain name of the VM instance.
    freeform_tags map(string)
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    gateway string
    The gateway IP address of the VM instance network.
    hostname string
    The host name of the instance.
    id string
    The OCID of the VM instance.
    image_id string
    The OCID of the VM custom instance uploaded.
    infrastructure_id string
    The OCID of the Database Infrastructure.
    ip_address string
    The IP address of the instance.
    lifecycle_details string
    Lifecycle state details of the VM instance.
    memory_size_in_gbs number
    The memory to be allocated in GBs.
    metadata map(string)
    Custom metadata key/value pairs which can be used to:

    • Provide information to Cloud-Init to be used for various system initialization tasks.
    • Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.
    netmask string
    The netmask of the VM instance network.
    ntp_servers list(string)
    The list of NTP server addresses. Maximum of 3 allowed.
    server_id string
    The OCID of the compute node on which VM instance should be launched.
    ssh_public_keys list(string)
    List of public key used for SSH access to the VM instance.
    state string
    The current state of the VM instance.
    system_tags map(string)
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created string
    The time that the VM instance was created. An RFC3339 formatted datetime string.
    time_updated string
    The time that the VM instance was last updated. An RFC3339 formatted datetime string.
    time_zone string
    The time zone to use for the VM instance.
    userdata string
    Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation.
    vlan_id string
    The network VLAN ID.
    vm_instance_id string
    vm_network_id string
    The OCID of the VM Network.
    bootStorageSizeInGbs Double
    Boot storage memory to be allocated in GBs.
    compartmentId String
    The OCID of the compartment containing the VM instance.
    cpusEnabled Integer
    The number of CPU cores enabled for each VM instance.
    dataStorageSizeInGb Double
    Data storage to be allocated in GBs.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    VM instance description.
    displayName String
    VM instance display name. This name does not have to be unique, and is changeable.
    dnsServers List<String>
    The list of DNS server IP addresses. Maximum of 3 allowed.
    domainName String
    The domain name of the VM instance.
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    gateway String
    The gateway IP address of the VM instance network.
    hostname String
    The host name of the instance.
    id String
    The OCID of the VM instance.
    imageId String
    The OCID of the VM custom instance uploaded.
    infrastructureId String
    The OCID of the Database Infrastructure.
    ipAddress String
    The IP address of the instance.
    lifecycleDetails String
    Lifecycle state details of the VM instance.
    memorySizeInGbs Double
    The memory to be allocated in GBs.
    metadata Map<String,String>
    Custom metadata key/value pairs which can be used to:

    • Provide information to Cloud-Init to be used for various system initialization tasks.
    • Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.
    netmask String
    The netmask of the VM instance network.
    ntpServers List<String>
    The list of NTP server addresses. Maximum of 3 allowed.
    serverId String
    The OCID of the compute node on which VM instance should be launched.
    sshPublicKeys List<String>
    List of public key used for SSH access to the VM instance.
    state String
    The current state of the VM instance.
    systemTags Map<String,String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time that the VM instance was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time that the VM instance was last updated. An RFC3339 formatted datetime string.
    timeZone String
    The time zone to use for the VM instance.
    userdata String
    Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation.
    vlanId String
    The network VLAN ID.
    vmInstanceId String
    vmNetworkId String
    The OCID of the VM Network.
    bootStorageSizeInGbs number
    Boot storage memory to be allocated in GBs.
    compartmentId string
    The OCID of the compartment containing the VM instance.
    cpusEnabled number
    The number of CPU cores enabled for each VM instance.
    dataStorageSizeInGb number
    Data storage to be allocated in GBs.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    VM instance description.
    displayName string
    VM instance display name. This name does not have to be unique, and is changeable.
    dnsServers string[]
    The list of DNS server IP addresses. Maximum of 3 allowed.
    domainName string
    The domain name of the VM instance.
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    gateway string
    The gateway IP address of the VM instance network.
    hostname string
    The host name of the instance.
    id string
    The OCID of the VM instance.
    imageId string
    The OCID of the VM custom instance uploaded.
    infrastructureId string
    The OCID of the Database Infrastructure.
    ipAddress string
    The IP address of the instance.
    lifecycleDetails string
    Lifecycle state details of the VM instance.
    memorySizeInGbs number
    The memory to be allocated in GBs.
    metadata {[key: string]: string}
    Custom metadata key/value pairs which can be used to:

    • Provide information to Cloud-Init to be used for various system initialization tasks.
    • Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.
    netmask string
    The netmask of the VM instance network.
    ntpServers string[]
    The list of NTP server addresses. Maximum of 3 allowed.
    serverId string
    The OCID of the compute node on which VM instance should be launched.
    sshPublicKeys string[]
    List of public key used for SSH access to the VM instance.
    state string
    The current state of the VM instance.
    systemTags {[key: string]: string}
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time that the VM instance was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time that the VM instance was last updated. An RFC3339 formatted datetime string.
    timeZone string
    The time zone to use for the VM instance.
    userdata string
    Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation.
    vlanId string
    The network VLAN ID.
    vmInstanceId string
    vmNetworkId string
    The OCID of the VM Network.
    boot_storage_size_in_gbs float
    Boot storage memory to be allocated in GBs.
    compartment_id str
    The OCID of the compartment containing the VM instance.
    cpus_enabled int
    The number of CPU cores enabled for each VM instance.
    data_storage_size_in_gb float
    Data storage to be allocated in GBs.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    VM instance description.
    display_name str
    VM instance display name. This name does not have to be unique, and is changeable.
    dns_servers Sequence[str]
    The list of DNS server IP addresses. Maximum of 3 allowed.
    domain_name str
    The domain name of the VM instance.
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    gateway str
    The gateway IP address of the VM instance network.
    hostname str
    The host name of the instance.
    id str
    The OCID of the VM instance.
    image_id str
    The OCID of the VM custom instance uploaded.
    infrastructure_id str
    The OCID of the Database Infrastructure.
    ip_address str
    The IP address of the instance.
    lifecycle_details str
    Lifecycle state details of the VM instance.
    memory_size_in_gbs float
    The memory to be allocated in GBs.
    metadata Mapping[str, str]
    Custom metadata key/value pairs which can be used to:

    • Provide information to Cloud-Init to be used for various system initialization tasks.
    • Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.
    netmask str
    The netmask of the VM instance network.
    ntp_servers Sequence[str]
    The list of NTP server addresses. Maximum of 3 allowed.
    server_id str
    The OCID of the compute node on which VM instance should be launched.
    ssh_public_keys Sequence[str]
    List of public key used for SSH access to the VM instance.
    state str
    The current state of the VM instance.
    system_tags Mapping[str, str]
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time that the VM instance was created. An RFC3339 formatted datetime string.
    time_updated str
    The time that the VM instance was last updated. An RFC3339 formatted datetime string.
    time_zone str
    The time zone to use for the VM instance.
    userdata str
    Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation.
    vlan_id str
    The network VLAN ID.
    vm_instance_id str
    vm_network_id str
    The OCID of the VM Network.
    bootStorageSizeInGbs Number
    Boot storage memory to be allocated in GBs.
    compartmentId String
    The OCID of the compartment containing the VM instance.
    cpusEnabled Number
    The number of CPU cores enabled for each VM instance.
    dataStorageSizeInGb Number
    Data storage to be allocated in GBs.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    VM instance description.
    displayName String
    VM instance display name. This name does not have to be unique, and is changeable.
    dnsServers List<String>
    The list of DNS server IP addresses. Maximum of 3 allowed.
    domainName String
    The domain name of the VM instance.
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. This tag option exists for cross-compatibility only. Example: {"bar-key": "value"}
    gateway String
    The gateway IP address of the VM instance network.
    hostname String
    The host name of the instance.
    id String
    The OCID of the VM instance.
    imageId String
    The OCID of the VM custom instance uploaded.
    infrastructureId String
    The OCID of the Database Infrastructure.
    ipAddress String
    The IP address of the instance.
    lifecycleDetails String
    Lifecycle state details of the VM instance.
    memorySizeInGbs Number
    The memory to be allocated in GBs.
    metadata Map<String>
    Custom metadata key/value pairs which can be used to:

    • Provide information to Cloud-Init to be used for various system initialization tasks.
    • Provide additional information which is exposed inside the instance context and can be queried or referenced by user-data scripts for dynamic configuration.
    netmask String
    The netmask of the VM instance network.
    ntpServers List<String>
    The list of NTP server addresses. Maximum of 3 allowed.
    serverId String
    The OCID of the compute node on which VM instance should be launched.
    sshPublicKeys List<String>
    List of public key used for SSH access to the VM instance.
    state String
    The current state of the VM instance.
    systemTags Map<String>
    Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time that the VM instance was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time that the VM instance was last updated. An RFC3339 formatted datetime string.
    timeZone String
    The time zone to use for the VM instance.
    userdata String
    Base64-encoded data to be used by Cloud-Init to run custom scripts or provide custom Cloud-Init configuration. For information about how to take advantage of user data, see the Cloud-Init Documentation.
    vlanId String
    The network VLAN ID.
    vmInstanceId String
    vmNetworkId String
    The OCID of the VM Network.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo oci logo
    Viewing docs for Oracle Cloud Infrastructure v4.20.0
    published on Wednesday, Jul 15, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial