Skip to main content

autonomous_virtual_machines

Creates, updates, deletes, gets or lists an autonomous_virtual_machines resource.

Overview​

Nameautonomous_virtual_machines
TypeResource
Idoci.database.autonomous_virtual_machines

Fields​

The following fields are returned by SELECT queries:

Autonomous Virtual Machine details.

NameDatatypeDescription
idstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Autonomous Virtual Machine.
autonomousVmClusterIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Autonomous VM Cluster associated with the Autonomous Virtual Machine.
clientIpAddressstringClient IP Address.
cloudAutonomousVmClusterIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Cloud Autonomous VM Cluster associated with the Autonomous Virtual Machine.
compartmentIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the compartment.
cpuCoreCountintegerThe number of CPU cores enabled on the Autonomous Virtual Machine.
dbNodeStorageSizeInGBsintegerThe allocated local node storage in GBs on the Autonomous Virtual Machine.
dbServerDisplayNamestringThe display name of the dbServer associated with the Autonomous Virtual Machine.
dbServerIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the Db server associated with the Autonomous Virtual Machine.
definedTagsobjectDefined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/Content/General/Concepts/resourcetags.htm).
freeformTagsobjectFree-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](/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"}
lifecycleStatestringThe current state of the Autonomous Virtual Machine. (PROVISIONING, AVAILABLE, UPDATING, TERMINATING, TERMINATED, FAILED, MAINTENANCE_IN_PROGRESS)
memorySizeInGBsintegerThe allocated memory in GBs on the Autonomous Virtual Machine.
vmNamestringThe name of the Autonomous Virtual Machine.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectautonomousVirtualMachineId, regionopc-request-idGets the details of specific Autonomous Virtual Machine.<br />
listselectcompartmentId, autonomousVmClusterId, regionlimit, page, opc-request-id, lifecycleStateLists the Autonomous Virtual Machines in the specified Autonomous VM Cluster and Compartment.<br />

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
autonomousVirtualMachineIdstringThe Autonomous Virtual machine [OCID](/Content/General/Concepts/identifiers.htm).
autonomousVmClusterIdstringThe Autonomous Virtual machine [OCID](/Content/General/Concepts/identifiers.htm).
compartmentIdstringThe compartment [OCID](/Content/General/Concepts/identifiers.htm).
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
lifecycleStatestringA filter to return only resources that match the given lifecycle state exactly.
limitintegerThe maximum number of items to return per page.
opc-request-idstringUnique identifier for the request.
pagestringThe pagination token to continue listing from.

SELECT examples​

Gets the details of specific Autonomous Virtual Machine.<br />

SELECT
id,
autonomousVmClusterId,
clientIpAddress,
cloudAutonomousVmClusterId,
compartmentId,
cpuCoreCount,
dbNodeStorageSizeInGBs,
dbServerDisplayName,
dbServerId,
definedTags,
freeformTags,
lifecycleState,
memorySizeInGBs,
vmName
FROM oci.database.autonomous_virtual_machines
WHERE autonomousVirtualMachineId = '{{ autonomousVirtualMachineId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;