Condividi tramite


FlexibleServersExtensions.GetMySqlFlexibleServers Method

Definition

Overloads

GetMySqlFlexibleServers(ResourceGroupResource)

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

GetMySqlFlexibleServers(SubscriptionResource, CancellationToken)

List all the servers in a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DBforMySQL/flexibleServers
  • Operation Id: Servers_List
  • Default Api Version: 2023-12-30
  • Resource: MySqlFlexibleServerResource

GetMySqlFlexibleServers(ResourceGroupResource)

Source:
FlexibleServersExtensions.cs
Source:
FlexibleServersExtensions.cs

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

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

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of MySqlFlexibleServerResources and their operations over a MySqlFlexibleServerResource.

Exceptions

resourceGroupResource is null.

Applies to

GetMySqlFlexibleServers(SubscriptionResource, CancellationToken)

Source:
FlexibleServersExtensions.cs
Source:
FlexibleServersExtensions.cs

List all the servers in a given subscription.

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

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to