Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
published on Wednesday, Jul 15, 2026 by Pulumi
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
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 dictionarydata "oci_oci_get_datacc_vm_instance" "name" {
# arguments
}The following arguments are supported:
- Vm
Instance stringId - The OCID of the VM instance.
- Vm
Instance stringId - The OCID of the VM instance.
- vm_
instance_ stringid - The OCID of the VM instance.
- vm
Instance StringId - The OCID of the VM instance.
- vm
Instance stringId - The OCID of the VM instance.
- vm_
instance_ strid - The OCID of the VM instance.
- vm
Instance StringId - The OCID of the VM instance.
getDataccVmInstance Result
The following output properties are available:
- Boot
Storage doubleSize In Gbs - Boot storage memory to be allocated in GBs.
- Compartment
Id string - The OCID of the compartment containing the VM instance.
- Cpus
Enabled int - The number of CPU cores enabled for each VM instance.
- Data
Storage doubleSize In Gb - Data storage to be allocated in GBs.
- 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.
- 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.
- 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.
- 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 doubleIn Gbs - 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.
- 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 List<string>Keys - List of public key used for SSH access to the VM instance.
- State string
- The current state of the VM instance.
- Dictionary<string, 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 stringId - Vm
Network stringId - The OCID of the VM Network.
- Boot
Storage float64Size In Gbs - Boot storage memory to be allocated in GBs.
- Compartment
Id string - The OCID of the compartment containing the VM instance.
- Cpus
Enabled int - The number of CPU cores enabled for each VM instance.
- Data
Storage float64Size In Gb - Data storage to be allocated in GBs.
- 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.
- Display
Name string - VM instance display name. This name does not have to be unique, and is changeable.
- Dns
Servers []string - The list of DNS server IP addresses. Maximum of 3 allowed.
- Domain
Name string - The domain name of the VM instance.
- 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.
- 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 float64In Gbs - 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.
- Ntp
Servers []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 []stringKeys - List of public key used for SSH access to the VM instance.
- State string
- The current state of the VM instance.
- map[string]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 stringId - Vm
Network stringId - The OCID of the VM Network.
- boot_
storage_ numbersize_ in_ gbs - 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_ numbersize_ in_ gb - Data storage to be allocated in GBs.
- 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.
- 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_ numberin_ gbs - 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_ list(string)keys - List of public key used for SSH access to the VM instance.
- state string
- The current state of the VM instance.
- 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_ stringid - vm_
network_ stringid - The OCID of the VM Network.
- boot
Storage DoubleSize In Gbs - Boot storage memory to be allocated in GBs.
- compartment
Id String - The OCID of the compartment containing the VM instance.
- cpus
Enabled Integer - The number of CPU cores enabled for each VM instance.
- data
Storage DoubleSize In Gb - Data storage to be allocated in GBs.
- 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.
- 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.
- 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.
- 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 DoubleIn Gbs - 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.
- 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 List<String>Keys - List of public key used for SSH access to the VM instance.
- state String
- The current state of the VM instance.
- Map<String,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 StringId - vm
Network StringId - The OCID of the VM Network.
- boot
Storage numberSize In Gbs - 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 numberSize In Gb - Data storage to be allocated in GBs.
- {[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.
- display
Name string - VM instance display name. This name does not have to be unique, and is changeable.
- dns
Servers string[] - The list of DNS server IP addresses. Maximum of 3 allowed.
- domain
Name string - The domain name of the VM instance.
- {[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.
- 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 numberIn Gbs - 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.
- ntp
Servers 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 string[]Keys - List of public key used for SSH access to the VM instance.
- state string
- The current state of the VM instance.
- {[key: string]: 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 stringId - vm
Network stringId - The OCID of the VM Network.
- boot_
storage_ floatsize_ in_ gbs - 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_ floatsize_ in_ gb - Data storage to be allocated in GBs.
- 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.
- 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_ floatin_ gbs - 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_ Sequence[str]keys - List of public key used for SSH access to the VM instance.
- state str
- The current state of the VM instance.
- 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_ strid - vm_
network_ strid - The OCID of the VM Network.
- boot
Storage NumberSize In Gbs - 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 NumberSize In Gb - Data storage to be allocated in GBs.
- 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.
- 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 NumberIn Gbs - 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 List<String>Keys - List of public key used for SSH access to the VM instance.
- state String
- The current state of the VM instance.
- 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 StringId - vm
Network StringId - 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
ociTerraform Provider.
Viewing docs for Oracle Cloud Infrastructure v4.20.0
published on Wednesday, Jul 15, 2026 by Pulumi
published on Wednesday, Jul 15, 2026 by Pulumi