gateways
Creates, updates, deletes, gets or lists a gateways resource.
Overview
| Name | gateways |
| Type | Resource |
| Id | aws.backup_gateway.gateways |
Fields
The following fields are returned by SELECT queries:
- get_gateway
- list_gateways
| Name | Datatype | Description |
|---|---|---|
deprecation_date | string (date-time) | Date after which this gateway will not receive software updates for new features and bug fixes. |
gateway_arn | string | The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region. (pattern: <code>arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}/[a-zA-Z-0-9]+</code>) |
gateway_display_name | string | The display name of the gateway. (pattern: <code>[a-zA-Z0-9-]*</code>) |
gateway_type | string | The type of the gateway type. (BACKUP_VM) |
hypervisor_id | string | The hypervisor ID of the gateway. |
last_seen_time | string (date-time) | Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time. |
maintenance_start_time | object | Returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are in terms of the gateway's time zone. Can be weekly or monthly. |
next_update_availability_time | string (date-time) | Details showing the next update availability time of the gateway. |
software_version | string | The version number of the software running on the gateway appliance. (pattern: <code>[a-zA-Z0-9-]*</code>) |
vpc_endpoint | string | The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for backup gateway. |
| Name | Datatype | Description |
|---|---|---|
gateway_arn | string | The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region. (pattern: <code>arn:(aws|aws-cn|aws-us-gov):backup-gateway(:[a-zA-Z-0-9]+){3}/[a-zA-Z-0-9]+</code>) |
gateway_display_name | string | The display name of the gateway. (pattern: <code>[a-zA-Z0-9-]*</code>) |
gateway_type | string | The type of the gateway. (BACKUP_VM) |
hypervisor_id | string | The hypervisor ID of the gateway. |
last_seen_time | string (date-time) | The last time Backup gateway communicated with the gateway, in Unix format and UTC time. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_gateway | select | region | By providing the ARN (Amazon Resource Name), this API returns the gateway. | |
list_gateways | select | region | Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN). | |
create_gateway | insert | region, ActivationKey, GatewayDisplayName, GatewayType | Creates a backup gateway. After you create a gateway, you can associate it with a server using the AssociateGatewayToServer operation. | |
associate_gateway_to_server | update | region, GatewayArn, ServerArn | Associates a backup gateway with your server. After you complete the association process, you can back up and restore your VMs through the gateway. | |
disassociate_gateway_from_server | update | region, GatewayArn | Disassociates a backup gateway from the specified server. After the disassociation process finishes, the gateway can no longer access the virtual machines on the server. | |
put_maintenance_start_time | replace | region, GatewayArn, HourOfDay, MinuteOfHour | Set the maintenance start time for a gateway. | |
delete_gateway | delete | region | Deletes a backup gateway. | |
update_gateway_information | exec | region, GatewayArn | Updates a gateway's name. Specify which gateway to update using the Amazon Resource Name (ARN) of the gateway in your request. | |
update_gateway_software_now | exec | region, GatewayArn | Updates the gateway virtual machine (VM) software. The request immediately triggers the software update. When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_gateway
- list_gateways
By providing the ARN (Amazon Resource Name), this API returns the gateway.
SELECT
deprecation_date,
gateway_arn,
gateway_display_name,
gateway_type,
hypervisor_id,
last_seen_time,
maintenance_start_time,
next_update_availability_time,
software_version,
vpc_endpoint
FROM aws.backup_gateway.gateways
WHERE region = '{{ region }}' -- required
;
Lists backup gateways owned by an Amazon Web Services account in an Amazon Web Services Region. The returned list is ordered by gateway Amazon Resource Name (ARN).
SELECT
gateway_arn,
gateway_display_name,
gateway_type,
hypervisor_id,
last_seen_time
FROM aws.backup_gateway.gateways
WHERE region = '{{ region }}' -- required
;
INSERT examples
- create_gateway
- Manifest
Creates a backup gateway. After you create a gateway, you can associate it with a server using the AssociateGatewayToServer operation.
INSERT INTO aws.backup_gateway.gateways (
ActivationKey,
GatewayDisplayName,
GatewayType,
Tags,
region
)
SELECT
'{{ ActivationKey }}' /* required */,
'{{ GatewayDisplayName }}' /* required */,
'{{ GatewayType }}' /* required */,
'{{ Tags }}',
'{{ region }}'
RETURNING
gateway_arn
;
# Description fields are for documentation purposes
- name: gateways
props:
- name: region
value: "{{ region }}"
description: Required parameter for the gateways resource.
- name: ActivationKey
value: "{{ ActivationKey }}"
description: |
The activation key of the created gateway.
- name: GatewayDisplayName
value: "{{ GatewayDisplayName }}"
description: |
The display name of the created gateway.
- name: GatewayType
value: "{{ GatewayType }}"
description: |
The type of created gateway.
valid_values: ['BACKUP_VM']
- name: Tags
description: |
A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair.
value:
- Key: "{{ Key }}"
Value: "{{ Value }}"
UPDATE examples
- associate_gateway_to_server
- disassociate_gateway_from_server
Associates a backup gateway with your server. After you complete the association process, you can back up and restore your VMs through the gateway.
UPDATE aws.backup_gateway.gateways
SET
GatewayArn = '{{ GatewayArn }}',
ServerArn = '{{ ServerArn }}'
WHERE
region = '{{ region }}' --required
AND GatewayArn = '{{ GatewayArn }}' --required
AND ServerArn = '{{ ServerArn }}' --required
RETURNING
gateway_arn;
Disassociates a backup gateway from the specified server. After the disassociation process finishes, the gateway can no longer access the virtual machines on the server.
UPDATE aws.backup_gateway.gateways
SET
GatewayArn = '{{ GatewayArn }}'
WHERE
region = '{{ region }}' --required
AND GatewayArn = '{{ GatewayArn }}' --required
RETURNING
gateway_arn;
REPLACE examples
- put_maintenance_start_time
Set the maintenance start time for a gateway.
REPLACE aws.backup_gateway.gateways
SET
GatewayArn = '{{ GatewayArn }}',
HourOfDay = {{ HourOfDay }},
MinuteOfHour = {{ MinuteOfHour }},
DayOfWeek = {{ DayOfWeek }},
DayOfMonth = {{ DayOfMonth }}
WHERE
region = '{{ region }}' --required
AND GatewayArn = '{{ GatewayArn }}' --required
AND HourOfDay = '{{ HourOfDay }}' --required
AND MinuteOfHour = '{{ MinuteOfHour }}' --required
RETURNING
gateway_arn;
DELETE examples
- delete_gateway
Deletes a backup gateway.
DELETE FROM aws.backup_gateway.gateways
WHERE region = '{{ region }}' --required
;
Lifecycle Methods
- update_gateway_information
- update_gateway_software_now
Updates a gateway's name. Specify which gateway to update using the Amazon Resource Name (ARN) of the gateway in your request.
EXEC aws.backup_gateway.gateways.update_gateway_information
@region='{{ region }}' --required
@@json=
'{
"GatewayArn": "{{ GatewayArn }}",
"GatewayDisplayName": "{{ GatewayDisplayName }}"
}'
;
Updates the gateway virtual machine (VM) software. The request immediately triggers the software update. When you make this request, you get a 200 OK success response immediately. However, it might take some time for the update to complete.
EXEC aws.backup_gateway.gateways.update_gateway_software_now
@region='{{ region }}' --required
@@json=
'{
"GatewayArn": "{{ GatewayArn }}"
}'
;