MockableSqlSubscriptionResource.GetDeletedServers 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.
Overloads
| Name | Description |
|---|---|
| GetDeletedServers(AzureLocation) |
Gets a collection of DeletedServers in the SubscriptionResource. |
| GetDeletedServers(CancellationToken) |
Gets a list of all deleted servers in a subscription.
|
GetDeletedServers(AzureLocation)
Gets a collection of DeletedServers in the SubscriptionResource.
public virtual Azure.ResourceManager.Sql.DeletedServerCollection GetDeletedServers(Azure.Core.AzureLocation locationName);
abstract member GetDeletedServers : Azure.Core.AzureLocation -> Azure.ResourceManager.Sql.DeletedServerCollection
override this.GetDeletedServers : Azure.Core.AzureLocation -> Azure.ResourceManager.Sql.DeletedServerCollection
Public Overridable Function GetDeletedServers (locationName As AzureLocation) As DeletedServerCollection
Parameters
- locationName
- AzureLocation
The locationName for the resource.
Returns
An object representing collection of DeletedServers and their operations over a DeletedServerResource.
Applies to
GetDeletedServers(CancellationToken)
Gets a list of all deleted servers in a subscription.
- Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Sql/deletedServers.
- Operation Id. : DeletedServersOperationGroup_List.
- Default Api Version. : 2025-08-01-preview.
public virtual Azure.Pageable<Azure.ResourceManager.Sql.DeletedServerResource> GetDeletedServers(System.Threading.CancellationToken cancellationToken = default);
abstract member GetDeletedServers : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.DeletedServerResource>
override this.GetDeletedServers : System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.DeletedServerResource>
Public Overridable Function GetDeletedServers (Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DeletedServerResource)
Parameters
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of DeletedServerResource that may take multiple service requests to iterate over.