backups
Creates, updates, deletes, gets or lists a backups
resource.
Overview
Name | backups |
Type | Resource |
Id | azure_stack.backup_admin.backups |
Fields
- vw_backups
- backups
Name | Datatype | Description |
---|---|---|
id | text | URI of the resource. |
name | text | Name of the resource. |
backup | text | field from the properties object |
backup_info | text | field from the properties object |
location | text | Location of the resource. |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | List of key value pairs. |
type | text | Type of resource. |
Name | Datatype | Description |
---|---|---|
id | string | URI of the resource. |
name | string | Name of the resource. |
location | string | Location of the resource. |
properties | object | Properties for a backup. |
tags | object | List of key value pairs. |
type | string | Type of resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | backup, location, resourceGroupName, subscriptionId | Returns a backup from a location based on name. |
list | SELECT | location, resourceGroupName, subscriptionId | Returns a list of backups from a location. |
restore | EXEC | backup, location, resourceGroupName, subscriptionId | Restore a backup. |
SELECT
examples
Returns a list of backups from a location.
- vw_backups
- backups
SELECT
id,
name,
backup,
backup_info,
location,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure_stack.backup_admin.vw_backups
WHERE location = '{{ location }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure_stack.backup_admin.backups
WHERE location = '{{ location }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';