Skip to main content

hypervisors

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

Overview

Namehypervisors
TypeResource
Idaws.backup_gateway.hypervisors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
hoststringThe server host of the hypervisor. This can be either an IP address or a fully-qualified domain name (FQDN). (pattern: <code>.+</code>)
hypervisor_arnstringThe Amazon Resource Name (ARN) of the hypervisor. (pattern: <code>arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}/[a-zA-Z-0-9]+</code>)
kms_key_arnstringThe Amazon Resource Name (ARN) of the KMS used to encrypt the hypervisor. (pattern: <code>(^arn:(aws|aws-cn|aws-us-gov):kms:([a-zA-Z0-9-]+):([0-9]+):(key|alias)/(\S+)$)|(^alias/(\S+)$)</code>)
last_successful_metadata_sync_timestring (date-time)This is the time when the most recent successful sync of metadata occurred.
latest_metadata_sync_statusstringThis is the most recent status for the indicated metadata sync. (CREATED, RUNNING, FAILED, PARTIALLY_FAILED, SUCCEEDED)
latest_metadata_sync_status_messagestringThis is the most recent status for the indicated metadata sync.
log_group_arnstringThe Amazon Resource Name (ARN) of the group of gateways within the requested log. (pattern: <code>$|^arn:(aws|aws-cn|aws-us-gov):logs:([a-zA-Z0-9-]+):([0-9]+):log-group:[a-zA-Z0-9_-/.]+:*</code>)
namestringThis is the name of the specified hypervisor. (pattern: <code>[a-zA-Z0-9-]*</code>)
statestringThis is the current state of the specified hypervisor. The possible states are PENDING, ONLINE, OFFLINE, or ERROR. (PENDING, ONLINE, OFFLINE, ERROR)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_hypervisorselectregionThis action requests information about the specified hypervisor to which the gateway will connect. A hypervisor is hardware, software, or firmware that creates and manages virtual machines, and allocates resources to them.
list_hypervisorsselectregionLists your hypervisors.
update_hypervisorupdateregion, HypervisorArnUpdates a hypervisor metadata, including its host, username, and password. Specify which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor in your request.
delete_hypervisordeleteregionDeletes a hypervisor.
import_hypervisor_configurationexecregionConnect to a hypervisor by importing its configuration.
test_hypervisor_configurationexecregion, GatewayArnTests your hypervisor configuration to validate that backup gateway can connect with the hypervisor and its resources.

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

This action requests information about the specified hypervisor to which the gateway will connect. A hypervisor is hardware, software, or firmware that creates and manages virtual machines, and allocates resources to them.

SELECT
host,
hypervisor_arn,
kms_key_arn,
last_successful_metadata_sync_time,
latest_metadata_sync_status,
latest_metadata_sync_status_message,
log_group_arn,
name,
state
FROM aws.backup_gateway.hypervisors
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Updates a hypervisor metadata, including its host, username, and password. Specify which hypervisor to update using the Amazon Resource Name (ARN) of the hypervisor in your request.

UPDATE aws.backup_gateway.hypervisors
SET
HypervisorArn = '{{ HypervisorArn }}',
Host = '{{ Host }}',
Username = '{{ Username }}',
Password = '{{ Password }}',
Name = '{{ Name }}',
LogGroupArn = '{{ LogGroupArn }}'
WHERE
region = '{{ region }}' --required
AND HypervisorArn = '{{ HypervisorArn }}' --required
RETURNING
hypervisor_arn;

DELETE examples

Deletes a hypervisor.

DELETE FROM aws.backup_gateway.hypervisors
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Connect to a hypervisor by importing its configuration.

EXEC aws.backup_gateway.hypervisors.import_hypervisor_configuration
@region='{{ region }}' --required
@@json=
'{
"Name": "{{ Name }}",
"Host": "{{ Host }}",
"Username": "{{ Username }}",
"Password": "{{ Password }}",
"KmsKeyArn": "{{ KmsKeyArn }}",
"Tags": "{{ Tags }}"
}'
;