Skip to main content

virtual_machines

Creates, updates, deletes, gets or lists a virtual_machines resource.

Overview

Namevirtual_machines
TypeResource
Idaws.backup_gateway.virtual_machines

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
host_namestringThe host name of the virtual machine. (pattern: <code>[a-zA-Z0-9-]*</code>)
hypervisor_idstringThe ID of the virtual machine's hypervisor.
last_backup_datestring (date-time)The most recent date a virtual machine was backed up, in Unix format and UTC time.
namestringThe name of the virtual machine. (pattern: <code>[a-zA-Z0-9-]*</code>)
pathstringThe path of the virtual machine. (pattern: <code>[^\x00]+</code>)
resource_arnstringThe Amazon Resource Name (ARN) of the virtual machine. For example, arn:aws:backup-gateway:us-west-1:0000000000000:vm/vm-0000ABCDEFGIJKL. (pattern: <code>arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}/[a-zA-Z-0-9]+</code>)
vmware_tagsarrayThese are the details of the VMware tags associated with the specified virtual machine.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_virtual_machineselectregionBy providing the ARN (Amazon Resource Name), this API returns the virtual machine.
list_virtual_machinesselectregionLists your virtual machines.
start_virtual_machines_metadata_syncexecregion, HypervisorArnThis action sends a request to sync metadata across the specified virtual machines.

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
regionstringAWS region (default: us-east-1)

SELECT examples

By providing the ARN (Amazon Resource Name), this API returns the virtual machine.

SELECT
host_name,
hypervisor_id,
last_backup_date,
name,
path,
resource_arn,
vmware_tags
FROM aws.backup_gateway.virtual_machines
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

This action sends a request to sync metadata across the specified virtual machines.

EXEC aws.backup_gateway.virtual_machines.start_virtual_machines_metadata_sync
@region='{{ region }}' --required
@@json=
'{
"HypervisorArn": "{{ HypervisorArn }}"
}'
;