Share via


SqlExtensions.GetDeletedServers Method

Definition

Overloads

GetDeletedServers(SubscriptionResource, CancellationToken)

Gets a list of all deleted servers in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/deletedServers
  • Operation Id: DeletedServers_List
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
GetDeletedServers(SubscriptionResource, AzureLocation)

Gets a collection of DeletedServerResources in the SubscriptionResource. MockingTo mock this method, please mock GetDeletedServers(AzureLocation) instead.

GetDeletedServers(SubscriptionResource, CancellationToken)

Source:
SqlExtensions.cs
Source:
SqlExtensions.cs

Gets a list of all deleted servers in a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Sql/deletedServers
  • Operation Id: DeletedServers_List
  • Default Api Version: 2020-11-01-preview
  • Resource: DeletedServerResource
public static Azure.Pageable<Azure.ResourceManager.Sql.DeletedServerResource> GetDeletedServers (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetDeletedServers : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.DeletedServerResource>
<Extension()>
Public Function GetDeletedServers (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of DeletedServerResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of DeletedServerResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to

GetDeletedServers(SubscriptionResource, AzureLocation)

Source:
SqlExtensions.cs
Source:
SqlExtensions.cs

Gets a collection of DeletedServerResources in the SubscriptionResource. MockingTo mock this method, please mock GetDeletedServers(AzureLocation) instead.

public static Azure.ResourceManager.Sql.DeletedServerCollection GetDeletedServers (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation locationName);
static member GetDeletedServers : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation -> Azure.ResourceManager.Sql.DeletedServerCollection
<Extension()>
Public Function GetDeletedServers (subscriptionResource As SubscriptionResource, locationName As AzureLocation) As DeletedServerCollection

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

locationName
AzureLocation

The name of the region where the resource is located.

Returns

An object representing collection of DeletedServerResources and their operations over a DeletedServerResource.

Exceptions

subscriptionResource is null.

Applies to