You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/backup/use-restapi-update-vault-properties.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,12 @@
1
1
---
2
2
title: Update Recovery Services vault configuration with REST API
3
3
description: In this article, learn how to update vault's configuration using REST API.
4
-
ms.topic: conceptual
5
-
ms.date: 12/06/2019
4
+
ms.topic: how-to
5
+
ms.date: 11/02/2023
6
6
ms.assetid: 9aafa5a0-1e57-4644-bf79-97124db27aa2
7
7
author: AbhishekMallick-MS
8
8
ms.author: v-abhmallick
9
+
ms.custom: engagement-fy24
9
10
---
10
11
# Update Azure Recovery Services vault configurations using REST API
11
12
@@ -17,11 +18,11 @@ Deleting backups of a protected item is a significant operation that has to be m
17
18
18
19
But there are scenarios in which this capability isn't required. An Azure Recovery Services vault can't be deleted if there are backup items within it, even soft-deleted ones. This may pose a problem if the vault needs to be immediately deleted. For example: deployment operations often clean up the created resources in the same workflow. A deployment can create a vault, configure backups for an item, do a test restore and then proceed to delete the backup items and the vault. If the vault deletion fails, the entire deployment might fail. Disabling soft-delete is the only way to guarantee immediate deletion.
19
20
20
-
So you need to carefully choose whether or not to disable soft-delete for a particular vault depending on the scenario. For more information, see the [soft-delete article](backup-azure-security-feature-cloud.md).
21
+
So you need to carefully choose to disable the softdelete feature for a particular vault depending on the scenario. Learn more about [soft delete](backup-azure-security-feature-cloud.md).
21
22
22
23
### Fetch soft delete state using REST API
23
24
24
-
By default, the soft-delete state will be enabled for any newly created Recovery Services vault. To fetch/update the state of soft-delete for a vault, use the backup vault's config related [REST API document](/rest/api/backup/backup-resource-vault-configs)
25
+
By default, the softdelete state will be enabled for any newly created Recovery Services vault. To fetch/update the state of soft-delete for a vault, use the backup vault's config related [REST API document](/rest/api/backup/backup-resource-vault-configs)
25
26
26
27
To fetch the current state of soft-delete for a vault, use the following *GET* operation
27
28
@@ -61,7 +62,7 @@ Once the 'GET' request is submitted, a 200 (successful) response is returned.
61
62
62
63
### Update soft delete state using REST API
63
64
64
-
To update the soft-delete state of the Recovery Services vault using REST API, use the following *PUT* operation
65
+
To update the softdelete state of the Recovery Services vault using REST API, use the following *PUT* operation
65
66
66
67
```http
67
68
PUT https://management.azure.com/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupconfig/vaultconfig?api-version=2019-06-15
@@ -88,7 +89,7 @@ For more details, refer to [the REST API documentation](/rest/api/backup/backup-
88
89
89
90
#### Example request body
90
91
91
-
The following example is used to update the soft-delete state to 'disabled'.
92
+
Use the following example to update the softdelete state to 'disabled'.
0 commit comments