다음을 통해 공유


MySqlServerCollection Class

Definition

A class representing a collection of MySqlServerResource and their operations. Each MySqlServerResource in the collection will belong to the same instance of ResourceGroupResource. To get a MySqlServerCollection instance call the GetMySqlServers method from an instance of ResourceGroupResource.

public class MySqlServerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable<Azure.ResourceManager.MySql.MySqlServerResource>, System.Collections.Generic.IEnumerable<Azure.ResourceManager.MySql.MySqlServerResource>
type MySqlServerCollection = class
    inherit ArmCollection
    interface seq<MySqlServerResource>
    interface IEnumerable
    interface IAsyncEnumerable<MySqlServerResource>
Public Class MySqlServerCollection
Inherits ArmCollection
Implements IAsyncEnumerable(Of MySqlServerResource), IEnumerable(Of MySqlServerResource)
Inheritance
MySqlServerCollection
Implements

Constructors

MySqlServerCollection()

Initializes a new instance of the MySqlServerCollection class for mocking.

Properties

Client

Gets the ArmClient this resource client was created from.

(Inherited from ArmCollection)
Diagnostics

Gets the diagnostic options for this resource client.

(Inherited from ArmCollection)
Endpoint

Gets the base uri for this resource client.

(Inherited from ArmCollection)
Id

Gets the resource identifier.

(Inherited from ArmCollection)
Pipeline

Gets the pipeline for this resource client.

(Inherited from ArmCollection)

Methods

CreateOrUpdate(WaitUntil, String, MySqlServerCreateOrUpdateContent, CancellationToken)

Creates a new server or updates an existing server. The update action will overwrite the existing server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}
  • Operation Id: Servers_Create
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
CreateOrUpdateAsync(WaitUntil, String, MySqlServerCreateOrUpdateContent, CancellationToken)

Creates a new server or updates an existing server. The update action will overwrite the existing server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}
  • Operation Id: Servers_Create
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
Get(String, CancellationToken)

Gets information about a server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
GetAll(CancellationToken)

List all the servers in a given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers
  • Operation Id: Servers_ListByResourceGroup
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
GetAllAsync(CancellationToken)

List all the servers in a given resource group.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers
  • Operation Id: Servers_ListByResourceGroup
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
GetAsync(String, CancellationToken)

Gets information about a server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}
  • Operation Id: Servers_Get
  • Default Api Version: 2017-12-01
  • Resource: MySqlServerResource
GetReplicas(String, CancellationToken)

List all the replicas for a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/replicas
  • Operation Id: Replicas_ListByServer
  • Default Api Version: 2017-12-01
GetReplicasAsync(String, CancellationToken)

List all the replicas for a given server.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DBforMySQL/servers/{serverName}/replicas
  • Operation Id: Replicas_ListByServer
  • Default Api Version: 2017-12-01
TryGetApiVersion(ResourceType, String)

Gets the api version override if it has been set for the current client options.

(Inherited from ArmCollection)

Explicit Interface Implementations

IAsyncEnumerable<MySqlServerResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<MySqlServerResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to