MySqlExtensions.GetMySqlServers Method

Definition

Overloads

GetMySqlServers(ResourceGroupResource)

Gets a collection of MySqlServerResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMySqlServers() instead.

GetMySqlServers(SubscriptionResource, CancellationToken)

List all the servers in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers
  • Operation Id: Servers_List
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource

GetMySqlServers(ResourceGroupResource)

Source:
MySqlExtensions.cs
Source:
MySqlExtensions.cs

Gets a collection of MySqlServerResources in the ResourceGroupResource. MockingTo mock this method, please mock GetMySqlServers() instead.

public static Azure.ResourceManager.MySql.MySqlServerCollection GetMySqlServers (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetMySqlServers : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.MySql.MySqlServerCollection
<Extension()>
Public Function GetMySqlServers (resourceGroupResource As ResourceGroupResource) As MySqlServerCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of MySqlServerResources and their operations over a MySqlServerResource.

Exceptions

resourceGroupResource is null.

Applies to

GetMySqlServers(SubscriptionResource, CancellationToken)

Source:
MySqlExtensions.cs
Source:
MySqlExtensions.cs

List all the servers in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/servers
  • Operation Id: Servers_List
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
public static Azure.Pageable<Azure.ResourceManager.MySql.MySqlServerResource> GetMySqlServers (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetMySqlServers : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.MySql.MySqlServerResource>
<Extension()>
Public Function GetMySqlServers (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of MySqlServerResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to