Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.Database.getAutonomousVirtualMachine
Explore with Pulumi AI
This data source provides details about a specific Autonomous Virtual Machine resource in Oracle Cloud Infrastructure Database service.
Gets the details of specific Autonomous Virtual Machine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousVirtualMachine = oci.Database.getAutonomousVirtualMachine({
    autonomousVirtualMachineId: testAutonomousVirtualMachineOciDatabaseAutonomousVirtualMachine.id,
});
import pulumi
import pulumi_oci as oci
test_autonomous_virtual_machine = oci.Database.get_autonomous_virtual_machine(autonomous_virtual_machine_id=test_autonomous_virtual_machine_oci_database_autonomous_virtual_machine["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/database"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := database.GetAutonomousVirtualMachine(ctx, &database.GetAutonomousVirtualMachineArgs{
			AutonomousVirtualMachineId: testAutonomousVirtualMachineOciDatabaseAutonomousVirtualMachine.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 testAutonomousVirtualMachine = Oci.Database.GetAutonomousVirtualMachine.Invoke(new()
    {
        AutonomousVirtualMachineId = testAutonomousVirtualMachineOciDatabaseAutonomousVirtualMachine.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetAutonomousVirtualMachineArgs;
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 testAutonomousVirtualMachine = DatabaseFunctions.getAutonomousVirtualMachine(GetAutonomousVirtualMachineArgs.builder()
            .autonomousVirtualMachineId(testAutonomousVirtualMachineOciDatabaseAutonomousVirtualMachine.id())
            .build());
    }
}
variables:
  testAutonomousVirtualMachine:
    fn::invoke:
      function: oci:Database:getAutonomousVirtualMachine
      arguments:
        autonomousVirtualMachineId: ${testAutonomousVirtualMachineOciDatabaseAutonomousVirtualMachine.id}
Using getAutonomousVirtualMachine
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 getAutonomousVirtualMachine(args: GetAutonomousVirtualMachineArgs, opts?: InvokeOptions): Promise<GetAutonomousVirtualMachineResult>
function getAutonomousVirtualMachineOutput(args: GetAutonomousVirtualMachineOutputArgs, opts?: InvokeOptions): Output<GetAutonomousVirtualMachineResult>def get_autonomous_virtual_machine(autonomous_virtual_machine_id: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetAutonomousVirtualMachineResult
def get_autonomous_virtual_machine_output(autonomous_virtual_machine_id: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousVirtualMachineResult]func GetAutonomousVirtualMachine(ctx *Context, args *GetAutonomousVirtualMachineArgs, opts ...InvokeOption) (*GetAutonomousVirtualMachineResult, error)
func GetAutonomousVirtualMachineOutput(ctx *Context, args *GetAutonomousVirtualMachineOutputArgs, opts ...InvokeOption) GetAutonomousVirtualMachineResultOutput> Note: This function is named GetAutonomousVirtualMachine in the Go SDK.
public static class GetAutonomousVirtualMachine 
{
    public static Task<GetAutonomousVirtualMachineResult> InvokeAsync(GetAutonomousVirtualMachineArgs args, InvokeOptions? opts = null)
    public static Output<GetAutonomousVirtualMachineResult> Invoke(GetAutonomousVirtualMachineInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAutonomousVirtualMachineResult> getAutonomousVirtualMachine(GetAutonomousVirtualMachineArgs args, InvokeOptions options)
public static Output<GetAutonomousVirtualMachineResult> getAutonomousVirtualMachine(GetAutonomousVirtualMachineArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Database/getAutonomousVirtualMachine:getAutonomousVirtualMachine
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Autonomous
Virtual stringMachine Id  - The Autonomous Virtual machine OCID.
 
- Autonomous
Virtual stringMachine Id  - The Autonomous Virtual machine OCID.
 
- autonomous
Virtual StringMachine Id  - The Autonomous Virtual machine OCID.
 
- autonomous
Virtual stringMachine Id  - The Autonomous Virtual machine OCID.
 
- autonomous_
virtual_ strmachine_ id  - The Autonomous Virtual machine OCID.
 
- autonomous
Virtual StringMachine Id  - The Autonomous Virtual machine OCID.
 
getAutonomousVirtualMachine Result
The following output properties are available:
- Autonomous
Virtual stringMachine Id  - Autonomous
Vm stringCluster Id  - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
 - Client
Ip stringAddress  - Client IP Address.
 - Compartment
Id string - The OCID of the compartment.
 - Cpu
Core intCount  - The number of CPU cores enabled on the Autonomous Virtual Machine.
 - Db
Node intStorage Size In Gbs  - The allocated local node storage in GBs on the Autonomous Virtual Machine.
 - Db
Server stringDisplay Name  - The display name of the dbServer associated with the Autonomous Virtual Machine.
 - Db
Server stringId  - The OCID of the Db server associated with the Autonomous Virtual Machine.
 - Dictionary<string, string>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - 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 provider-assigned unique ID for this managed resource.
 - Memory
Size intIn Gbs  - The allocated memory in GBs on the Autonomous Virtual Machine.
 - State string
 - The current state of the Autonomous Virtual Machine.
 - Vm
Name string - The name of the Autonomous Virtual Machine.
 
- Autonomous
Virtual stringMachine Id  - Autonomous
Vm stringCluster Id  - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
 - Client
Ip stringAddress  - Client IP Address.
 - Compartment
Id string - The OCID of the compartment.
 - Cpu
Core intCount  - The number of CPU cores enabled on the Autonomous Virtual Machine.
 - Db
Node intStorage Size In Gbs  - The allocated local node storage in GBs on the Autonomous Virtual Machine.
 - Db
Server stringDisplay Name  - The display name of the dbServer associated with the Autonomous Virtual Machine.
 - Db
Server stringId  - The OCID of the Db server associated with the Autonomous Virtual Machine.
 - map[string]string
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - 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 provider-assigned unique ID for this managed resource.
 - Memory
Size intIn Gbs  - The allocated memory in GBs on the Autonomous Virtual Machine.
 - State string
 - The current state of the Autonomous Virtual Machine.
 - Vm
Name string - The name of the Autonomous Virtual Machine.
 
- autonomous
Virtual StringMachine Id  - autonomous
Vm StringCluster Id  - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
 - client
Ip StringAddress  - Client IP Address.
 - compartment
Id String - The OCID of the compartment.
 - cpu
Core IntegerCount  - The number of CPU cores enabled on the Autonomous Virtual Machine.
 - db
Node IntegerStorage Size In Gbs  - The allocated local node storage in GBs on the Autonomous Virtual Machine.
 - db
Server StringDisplay Name  - The display name of the dbServer associated with the Autonomous Virtual Machine.
 - db
Server StringId  - The OCID of the Db server associated with the Autonomous Virtual Machine.
 - Map<String,String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - 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 provider-assigned unique ID for this managed resource.
 - memory
Size IntegerIn Gbs  - The allocated memory in GBs on the Autonomous Virtual Machine.
 - state String
 - The current state of the Autonomous Virtual Machine.
 - vm
Name String - The name of the Autonomous Virtual Machine.
 
- autonomous
Virtual stringMachine Id  - autonomous
Vm stringCluster Id  - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
 - client
Ip stringAddress  - Client IP Address.
 - compartment
Id string - The OCID of the compartment.
 - cpu
Core numberCount  - The number of CPU cores enabled on the Autonomous Virtual Machine.
 - db
Node numberStorage Size In Gbs  - The allocated local node storage in GBs on the Autonomous Virtual Machine.
 - db
Server stringDisplay Name  - The display name of the dbServer associated with the Autonomous Virtual Machine.
 - db
Server stringId  - The OCID of the Db server associated with the Autonomous Virtual Machine.
 - {[key: string]: string}
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - {[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 provider-assigned unique ID for this managed resource.
 - memory
Size numberIn Gbs  - The allocated memory in GBs on the Autonomous Virtual Machine.
 - state string
 - The current state of the Autonomous Virtual Machine.
 - vm
Name string - The name of the Autonomous Virtual Machine.
 
- autonomous_
virtual_ strmachine_ id  - autonomous_
vm_ strcluster_ id  - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
 - client_
ip_ straddress  - Client IP Address.
 - compartment_
id str - The OCID of the compartment.
 - cpu_
core_ intcount  - The number of CPU cores enabled on the Autonomous Virtual Machine.
 - db_
node_ intstorage_ size_ in_ gbs  - The allocated local node storage in GBs on the Autonomous Virtual Machine.
 - db_
server_ strdisplay_ name  - The display name of the dbServer associated with the Autonomous Virtual Machine.
 - db_
server_ strid  - The OCID of the Db server associated with the Autonomous Virtual Machine.
 - Mapping[str, str]
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - Mapping[str, str]
 - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: 
{"Department": "Finance"} - id str
 - The provider-assigned unique ID for this managed resource.
 - memory_
size_ intin_ gbs  - The allocated memory in GBs on the Autonomous Virtual Machine.
 - state str
 - The current state of the Autonomous Virtual Machine.
 - vm_
name str - The name of the Autonomous Virtual Machine.
 
- autonomous
Virtual StringMachine Id  - autonomous
Vm StringCluster Id  - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
 - client
Ip StringAddress  - Client IP Address.
 - compartment
Id String - The OCID of the compartment.
 - cpu
Core NumberCount  - The number of CPU cores enabled on the Autonomous Virtual Machine.
 - db
Node NumberStorage Size In Gbs  - The allocated local node storage in GBs on the Autonomous Virtual Machine.
 - db
Server StringDisplay Name  - The display name of the dbServer associated with the Autonomous Virtual Machine.
 - db
Server StringId  - The OCID of the Db server associated with the Autonomous Virtual Machine.
 - Map<String>
 - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
 - 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 provider-assigned unique ID for this managed resource.
 - memory
Size NumberIn Gbs  - The allocated memory in GBs on the Autonomous Virtual Machine.
 - state String
 - The current state of the Autonomous Virtual Machine.
 - vm
Name String - The name of the Autonomous Virtual Machine.
 
Package Details
- Repository
 - oci pulumi/pulumi-oci
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
ociTerraform Provider.