CosmosDBExtensions.GetSoftDeletedDatabaseAccountGetResult Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the properties of a soft-deleted Azure Cosmos DB database account by location and accountName. This call requires 'Microsoft.DocumentDB/locations/softDeletedDatabaseAccounts/read' permission. <item> Mocking. To mock this method, please mock GetSoftDeletedDatabaseAccountGetResult(AzureLocation, String, CancellationToken) instead. </item>
public static Azure.Response<Azure.ResourceManager.CosmosDB.SoftDeletedDatabaseAccountGetResultResource> GetSoftDeletedDatabaseAccountGetResult(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.Core.AzureLocation location, string accountName, System.Threading.CancellationToken cancellationToken = default);
static member GetSoftDeletedDatabaseAccountGetResult : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.CosmosDB.SoftDeletedDatabaseAccountGetResultResource>
<Extension()>
Public Function GetSoftDeletedDatabaseAccountGetResult (resourceGroupResource As ResourceGroupResource, location As AzureLocation, accountName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SoftDeletedDatabaseAccountGetResultResource)
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- location
- AzureLocation
The name of the Azure region.
- accountName
- String
Cosmos DB database account name.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource is null.