Protection Containers - Refresh
Discovers all the containers in the subscription that can be backed up to Recovery Services Vault. This is an asynchronous operation. To know the status of the operation, call GetRefreshOperationResult API.
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers?api-version=2025-08-01
POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers?api-version=2025-08-01&$filter={$filter}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
fabric
|
path | True |
string |
Fabric name associated the container. |
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
vault
|
path | True |
string |
The name of the recovery services vault. |
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
$filter
|
query |
string |
OData filter options. |
Responses
Name | Type | Description |
---|---|---|
202 Accepted |
Resource operation accepted. |
|
Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Trigger Azure Vm Discovery
Sample request
POST https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/refreshContainers?api-version=2025-08-01
Sample response
Location: https://management.azure.com/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupFabrics/Azure/operationResults/00000000-0000-0000-0000-000000000000?api-version=2016-12-01
Retry-After: 60
Definitions
Name | Description |
---|---|
Error |
Error Detail class which encapsulates Code, Message and Recommendations. |
Error |
Error response |
ErrorDetail
Error Detail class which encapsulates Code, Message and Recommendations.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error Message related to the Code. |
recommendations |
string[] |
List of recommendation strings. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |