Skip to main content

restore_point_collections

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

Overview

Namerestore_point_collections
TypeResource
Idazure.compute.restore_point_collections

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id
namestringResource name
locationstringResource location
propertiesobjectThe restore point collection properties.
tagsobjectResource tags
typestringResource type

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, restorePointCollectionName$expandThe operation to get the restore point collection.
listselectsubscriptionId, resourceGroupNameGets the list of restore point collections in a resource group.
list_allselectsubscriptionIdGets the list of restore point collections in the subscription. Use nextLink property in the response to get the next page of restore point collections. Do this till nextLink is not null to fetch all the restore point collections.
create_or_updateinsertsubscriptionId, resourceGroupName, restorePointCollectionNameThe operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified.
updateupdatesubscriptionId, resourceGroupName, restorePointCollectionNameThe operation to update the restore point collection.
deletedeletesubscriptionId, resourceGroupName, restorePointCollectionNameThe operation to delete the restore point collection. This operation will also delete all the contained restore points.

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
resourceGroupNamestringThe name of the resource group.
restorePointCollectionNamestringThe name of the Restore Point Collection.
subscriptionIdstringSubscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
$expandstringThe expand expression to apply on the operation. If expand=restorePoints, server will return all contained restore points in the restorePointCollection.

SELECT examples

The operation to get the restore point collection.

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.compute.restore_point_collections
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND restorePointCollectionName = '{{ restorePointCollectionName }}' -- required
AND $expand = '{{ $expand }}'
;

INSERT examples

The operation to create or update the restore point collection. Please refer to https://aka.ms/RestorePoints for more details. When updating a restore point collection, only tags may be modified.

INSERT INTO azure.compute.restore_point_collections (
data__properties,
data__location,
data__tags,
subscriptionId,
resourceGroupName,
restorePointCollectionName
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ restorePointCollectionName }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

UPDATE examples

The operation to update the restore point collection.

UPDATE azure.compute.restore_point_collections
SET
data__properties = '{{ properties }}',
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND restorePointCollectionName = '{{ restorePointCollectionName }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

The operation to delete the restore point collection. This operation will also delete all the contained restore points.

DELETE FROM azure.compute.restore_point_collections
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND restorePointCollectionName = '{{ restorePointCollectionName }}' --required
;