Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Database.getAutonomousVirtualMachines
Explore with Pulumi AI
This data source provides the list of Autonomous Virtual Machines in Oracle Cloud Infrastructure Database service.
Lists the Autonomous Virtual Machines in the specified Autonomous VM Cluster and Compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAutonomousVirtualMachines = oci.Database.getAutonomousVirtualMachines({
autonomousVmClusterId: testAutonomousVmCluster.id,
compartmentId: compartmentId,
state: autonomousVirtualMachineState,
});
import pulumi
import pulumi_oci as oci
test_autonomous_virtual_machines = oci.Database.get_autonomous_virtual_machines(autonomous_vm_cluster_id=test_autonomous_vm_cluster["id"],
compartment_id=compartment_id,
state=autonomous_virtual_machine_state)
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.GetAutonomousVirtualMachines(ctx, &database.GetAutonomousVirtualMachinesArgs{
AutonomousVmClusterId: testAutonomousVmCluster.Id,
CompartmentId: compartmentId,
State: pulumi.StringRef(autonomousVirtualMachineState),
}, 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 testAutonomousVirtualMachines = Oci.Database.GetAutonomousVirtualMachines.Invoke(new()
{
AutonomousVmClusterId = testAutonomousVmCluster.Id,
CompartmentId = compartmentId,
State = autonomousVirtualMachineState,
});
});
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.GetAutonomousVirtualMachinesArgs;
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 testAutonomousVirtualMachines = DatabaseFunctions.getAutonomousVirtualMachines(GetAutonomousVirtualMachinesArgs.builder()
.autonomousVmClusterId(testAutonomousVmCluster.id())
.compartmentId(compartmentId)
.state(autonomousVirtualMachineState)
.build());
}
}
variables:
testAutonomousVirtualMachines:
fn::invoke:
Function: oci:Database:getAutonomousVirtualMachines
Arguments:
autonomousVmClusterId: ${testAutonomousVmCluster.id}
compartmentId: ${compartmentId}
state: ${autonomousVirtualMachineState}
Using getAutonomousVirtualMachines
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 getAutonomousVirtualMachines(args: GetAutonomousVirtualMachinesArgs, opts?: InvokeOptions): Promise<GetAutonomousVirtualMachinesResult>
function getAutonomousVirtualMachinesOutput(args: GetAutonomousVirtualMachinesOutputArgs, opts?: InvokeOptions): Output<GetAutonomousVirtualMachinesResult>
def get_autonomous_virtual_machines(autonomous_vm_cluster_id: Optional[str] = None,
compartment_id: Optional[str] = None,
filters: Optional[Sequence[_database.GetAutonomousVirtualMachinesFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAutonomousVirtualMachinesResult
def get_autonomous_virtual_machines_output(autonomous_vm_cluster_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetAutonomousVirtualMachinesFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAutonomousVirtualMachinesResult]
func GetAutonomousVirtualMachines(ctx *Context, args *GetAutonomousVirtualMachinesArgs, opts ...InvokeOption) (*GetAutonomousVirtualMachinesResult, error)
func GetAutonomousVirtualMachinesOutput(ctx *Context, args *GetAutonomousVirtualMachinesOutputArgs, opts ...InvokeOption) GetAutonomousVirtualMachinesResultOutput
> Note: This function is named GetAutonomousVirtualMachines
in the Go SDK.
public static class GetAutonomousVirtualMachines
{
public static Task<GetAutonomousVirtualMachinesResult> InvokeAsync(GetAutonomousVirtualMachinesArgs args, InvokeOptions? opts = null)
public static Output<GetAutonomousVirtualMachinesResult> Invoke(GetAutonomousVirtualMachinesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAutonomousVirtualMachinesResult> getAutonomousVirtualMachines(GetAutonomousVirtualMachinesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getAutonomousVirtualMachines:getAutonomousVirtualMachines
arguments:
# arguments dictionary
The following arguments are supported:
- Autonomous
Vm stringCluster Id - The Autonomous Virtual machine OCID.
- Compartment
Id string - The compartment OCID.
- Filters
List<Get
Autonomous Virtual Machines Filter> - State string
- A filter to return only resources that match the given lifecycle state exactly.
- Autonomous
Vm stringCluster Id - The Autonomous Virtual machine OCID.
- Compartment
Id string - The compartment OCID.
- Filters
[]Get
Autonomous Virtual Machines Filter - State string
- A filter to return only resources that match the given lifecycle state exactly.
- autonomous
Vm StringCluster Id - The Autonomous Virtual machine OCID.
- compartment
Id String - The compartment OCID.
- filters
List<Get
Autonomous Virtual Machines Filter> - state String
- A filter to return only resources that match the given lifecycle state exactly.
- autonomous
Vm stringCluster Id - The Autonomous Virtual machine OCID.
- compartment
Id string - The compartment OCID.
- filters
Get
Autonomous Virtual Machines Filter[] - state string
- A filter to return only resources that match the given lifecycle state exactly.
- autonomous_
vm_ strcluster_ id - The Autonomous Virtual machine OCID.
- compartment_
id str - The compartment OCID.
- filters
Sequence[database.
Get Autonomous Virtual Machines Filter] - state str
- A filter to return only resources that match the given lifecycle state exactly.
- autonomous
Vm StringCluster Id - The Autonomous Virtual machine OCID.
- compartment
Id String - The compartment OCID.
- filters List<Property Map>
- state String
- A filter to return only resources that match the given lifecycle state exactly.
getAutonomousVirtualMachines Result
The following output properties are available:
- Autonomous
Virtual List<GetMachines Autonomous Virtual Machines Autonomous Virtual Machine> - The list of autonomous_virtual_machines.
- Autonomous
Vm stringCluster Id - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Autonomous Virtual Machines Filter> - State string
- The current state of the Autonomous Virtual Machine.
- Autonomous
Virtual []GetMachines Autonomous Virtual Machines Autonomous Virtual Machine - The list of autonomous_virtual_machines.
- Autonomous
Vm stringCluster Id - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
- Compartment
Id string - The OCID of the compartment.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Autonomous Virtual Machines Filter - State string
- The current state of the Autonomous Virtual Machine.
- autonomous
Virtual List<GetMachines Autonomous Virtual Machines Autonomous Virtual Machine> - The list of autonomous_virtual_machines.
- autonomous
Vm StringCluster Id - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Autonomous Virtual Machines Filter> - state String
- The current state of the Autonomous Virtual Machine.
- autonomous
Virtual GetMachines Autonomous Virtual Machines Autonomous Virtual Machine[] - The list of autonomous_virtual_machines.
- autonomous
Vm stringCluster Id - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
- compartment
Id string - The OCID of the compartment.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Autonomous Virtual Machines Filter[] - state string
- The current state of the Autonomous Virtual Machine.
- autonomous_
virtual_ Sequence[database.machines Get Autonomous Virtual Machines Autonomous Virtual Machine] - The list of autonomous_virtual_machines.
- autonomous_
vm_ strcluster_ id - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
- compartment_
id str - The OCID of the compartment.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[database.
Get Autonomous Virtual Machines Filter] - state str
- The current state of the Autonomous Virtual Machine.
- autonomous
Virtual List<Property Map>Machines - The list of autonomous_virtual_machines.
- autonomous
Vm StringCluster Id - The OCID of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
- compartment
Id String - The OCID of the compartment.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- state String
- The current state of the Autonomous Virtual Machine.
Supporting Types
GetAutonomousVirtualMachinesAutonomousVirtualMachine
- Autonomous
Vm stringCluster Id - The Autonomous Virtual machine OCID.
- Client
Ip stringAddress - Client IP Address.
- Compartment
Id string - The compartment OCID.
- 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 OCID of the Autonomous Virtual Machine.
- Memory
Size intIn Gbs - The allocated memory in GBs on the Autonomous Virtual Machine.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- Vm
Name string - The name of the Autonomous Virtual Machine.
- Autonomous
Vm stringCluster Id - The Autonomous Virtual machine OCID.
- Client
Ip stringAddress - Client IP Address.
- Compartment
Id string - The compartment OCID.
- 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 OCID of the Autonomous Virtual Machine.
- Memory
Size intIn Gbs - The allocated memory in GBs on the Autonomous Virtual Machine.
- State string
- A filter to return only resources that match the given lifecycle state exactly.
- Vm
Name string - The name of the Autonomous Virtual Machine.
- autonomous
Vm StringCluster Id - The Autonomous Virtual machine OCID.
- client
Ip StringAddress - Client IP Address.
- compartment
Id String - The compartment OCID.
- 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 OCID of the Autonomous Virtual Machine.
- memory
Size IntegerIn Gbs - The allocated memory in GBs on the Autonomous Virtual Machine.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- vm
Name String - The name of the Autonomous Virtual Machine.
- autonomous
Vm stringCluster Id - The Autonomous Virtual machine OCID.
- client
Ip stringAddress - Client IP Address.
- compartment
Id string - The compartment OCID.
- 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 OCID of the Autonomous Virtual Machine.
- memory
Size numberIn Gbs - The allocated memory in GBs on the Autonomous Virtual Machine.
- state string
- A filter to return only resources that match the given lifecycle state exactly.
- vm
Name string - The name of the Autonomous Virtual Machine.
- autonomous_
vm_ strcluster_ id - The Autonomous Virtual machine OCID.
- client_
ip_ straddress - Client IP Address.
- compartment_
id str - The compartment OCID.
- 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 OCID of the Autonomous Virtual Machine.
- memory_
size_ intin_ gbs - The allocated memory in GBs on the Autonomous Virtual Machine.
- state str
- A filter to return only resources that match the given lifecycle state exactly.
- vm_
name str - The name of the Autonomous Virtual Machine.
- autonomous
Vm StringCluster Id - The Autonomous Virtual machine OCID.
- client
Ip StringAddress - Client IP Address.
- compartment
Id String - The compartment OCID.
- 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 OCID of the Autonomous Virtual Machine.
- memory
Size NumberIn Gbs - The allocated memory in GBs on the Autonomous Virtual Machine.
- state String
- A filter to return only resources that match the given lifecycle state exactly.
- vm
Name String - The name of the Autonomous Virtual Machine.
GetAutonomousVirtualMachinesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.