다음을 통해 공유


SqlDatabaseCollection Class

Definition

A class representing a collection of SqlDatabaseResource and their operations. Each SqlDatabaseResource in the collection will belong to the same instance of SqlServerResource. To get a SqlDatabaseCollection instance call the GetSqlDatabases method from an instance of SqlServerResource.

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

Constructors

SqlDatabaseCollection()

Initializes a new instance of the SqlDatabaseCollection 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, SqlDatabaseData, CancellationToken)

Creates a new database or updates an existing database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_CreateOrUpdate
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
CreateOrUpdateAsync(WaitUntil, String, SqlDatabaseData, CancellationToken)

Creates a new database or updates an existing database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_CreateOrUpdate
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
Exists(String, String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
ExistsAsync(String, String, String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
Get(String, String, String, CancellationToken)

Gets a database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
GetAll(String, CancellationToken)

Gets a list of databases.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases
  • Operation Id: Databases_ListByServer
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
GetAllAsync(String, CancellationToken)

Gets a list of databases.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases
  • Operation Id: Databases_ListByServer
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
GetAsync(String, String, String, CancellationToken)

Gets a database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
GetIfExists(String, CancellationToken)
GetIfExists(String, String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
GetIfExistsAsync(String, CancellationToken)
GetIfExistsAsync(String, String, String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}
  • Operation Id: Databases_Get
  • Default Api Version: 2023-02-01-preview
  • Resource: SqlDatabaseResource
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<SqlDatabaseResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<SqlDatabaseResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to