1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. getAutonomousVirtualMachine
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Database.getAutonomousVirtualMachine

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    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/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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Database/getAutonomousVirtualMachine:getAutonomousVirtualMachine
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AutonomousVirtualMachineId string
    The Autonomous Virtual machine OCID.
    AutonomousVirtualMachineId string
    The Autonomous Virtual machine OCID.
    autonomousVirtualMachineId String
    The Autonomous Virtual machine OCID.
    autonomousVirtualMachineId string
    The Autonomous Virtual machine OCID.
    autonomous_virtual_machine_id str
    The Autonomous Virtual machine OCID.
    autonomousVirtualMachineId String
    The Autonomous Virtual machine OCID.

    getAutonomousVirtualMachine Result

    The following output properties are available:

    AutonomousVirtualMachineId string
    AutonomousVmClusterId string
    The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
    ClientIpAddress string
    Client IP Address.
    CompartmentId string
    The OCID of the compartment.
    CpuCoreCount int
    The number of CPU cores enabled on the Autonomous Virtual Machine.
    DbNodeStorageSizeInGbs int
    The allocated local node storage in GBs on the Autonomous Virtual Machine.
    DbServerDisplayName string
    The display name of the dbServer associated with the Autonomous Virtual Machine.
    DbServerId string
    The OCID of the Db server associated with the Autonomous Virtual Machine.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags Dictionary<string, object>
    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.
    MemorySizeInGbs int
    The allocated memory in GBs on the Autonomous Virtual Machine.
    State string
    The current state of the Autonomous Virtual Machine.
    VmName string
    The name of the Autonomous Virtual Machine.
    AutonomousVirtualMachineId string
    AutonomousVmClusterId string
    The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
    ClientIpAddress string
    Client IP Address.
    CompartmentId string
    The OCID of the compartment.
    CpuCoreCount int
    The number of CPU cores enabled on the Autonomous Virtual Machine.
    DbNodeStorageSizeInGbs int
    The allocated local node storage in GBs on the Autonomous Virtual Machine.
    DbServerDisplayName string
    The display name of the dbServer associated with the Autonomous Virtual Machine.
    DbServerId string
    The OCID of the Db server associated with the Autonomous Virtual Machine.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags map[string]interface{}
    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.
    MemorySizeInGbs int
    The allocated memory in GBs on the Autonomous Virtual Machine.
    State string
    The current state of the Autonomous Virtual Machine.
    VmName string
    The name of the Autonomous Virtual Machine.
    autonomousVirtualMachineId String
    autonomousVmClusterId String
    The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
    clientIpAddress String
    Client IP Address.
    compartmentId String
    The OCID of the compartment.
    cpuCoreCount Integer
    The number of CPU cores enabled on the Autonomous Virtual Machine.
    dbNodeStorageSizeInGbs Integer
    The allocated local node storage in GBs on the Autonomous Virtual Machine.
    dbServerDisplayName String
    The display name of the dbServer associated with the Autonomous Virtual Machine.
    dbServerId String
    The OCID of the Db server associated with the Autonomous Virtual Machine.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String,Object>
    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.
    memorySizeInGbs Integer
    The allocated memory in GBs on the Autonomous Virtual Machine.
    state String
    The current state of the Autonomous Virtual Machine.
    vmName String
    The name of the Autonomous Virtual Machine.
    autonomousVirtualMachineId string
    autonomousVmClusterId string
    The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
    clientIpAddress string
    Client IP Address.
    compartmentId string
    The OCID of the compartment.
    cpuCoreCount number
    The number of CPU cores enabled on the Autonomous Virtual Machine.
    dbNodeStorageSizeInGbs number
    The allocated local node storage in GBs on the Autonomous Virtual Machine.
    dbServerDisplayName string
    The display name of the dbServer associated with the Autonomous Virtual Machine.
    dbServerId string
    The OCID of the Db server associated with the Autonomous Virtual Machine.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags {[key: string]: any}
    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.
    memorySizeInGbs number
    The allocated memory in GBs on the Autonomous Virtual Machine.
    state string
    The current state of the Autonomous Virtual Machine.
    vmName string
    The name of the Autonomous Virtual Machine.
    autonomous_virtual_machine_id str
    autonomous_vm_cluster_id str
    The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
    client_ip_address str
    Client IP Address.
    compartment_id str
    The OCID of the compartment.
    cpu_core_count int
    The number of CPU cores enabled on the Autonomous Virtual Machine.
    db_node_storage_size_in_gbs int
    The allocated local node storage in GBs on the Autonomous Virtual Machine.
    db_server_display_name str
    The display name of the dbServer associated with the Autonomous Virtual Machine.
    db_server_id str
    The OCID of the Db server associated with the Autonomous Virtual Machine.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags Mapping[str, Any]
    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_in_gbs int
    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.
    autonomousVirtualMachineId String
    autonomousVmClusterId String
    The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
    clientIpAddress String
    Client IP Address.
    compartmentId String
    The OCID of the compartment.
    cpuCoreCount Number
    The number of CPU cores enabled on the Autonomous Virtual Machine.
    dbNodeStorageSizeInGbs Number
    The allocated local node storage in GBs on the Autonomous Virtual Machine.
    dbServerDisplayName String
    The display name of the dbServer associated with the Autonomous Virtual Machine.
    dbServerId String
    The OCID of the Db server associated with the Autonomous Virtual Machine.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<Any>
    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.
    memorySizeInGbs Number
    The allocated memory in GBs on the Autonomous Virtual Machine.
    state String
    The current state of the Autonomous Virtual Machine.
    vmName 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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi