共用方式為


ManagedDatabaseCollection Class

Definition

A class representing a collection of ManagedDatabaseResource and their operations. Each ManagedDatabaseResource in the collection will belong to the same instance of ManagedInstanceResource. To get a ManagedDatabaseCollection instance call the GetManagedDatabases method from an instance of ManagedInstanceResource.

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

Constructors

ManagedDatabaseCollection()

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

Creates a new database or updates an existing database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}
  • Operation Id: ManagedDatabases_CreateOrUpdate
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
CreateOrUpdateAsync(WaitUntil, String, ManagedDatabaseData, CancellationToken)

Creates a new database or updates an existing database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}
  • Operation Id: ManagedDatabases_CreateOrUpdate
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
Exists(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}
  • Operation Id: ManagedDatabases_Get
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
ExistsAsync(String, CancellationToken)

Checks to see if the resource exists in azure.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}
  • Operation Id: ManagedDatabases_Get
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
Get(String, CancellationToken)

Gets a managed database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}
  • Operation Id: ManagedDatabases_Get
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
GetAll(CancellationToken)

Gets a list of managed databases.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases
  • Operation Id: ManagedDatabases_ListByInstance
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
GetAllAsync(CancellationToken)

Gets a list of managed databases.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases
  • Operation Id: ManagedDatabases_ListByInstance
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
GetAsync(String, CancellationToken)

Gets a managed database.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}
  • Operation Id: ManagedDatabases_Get
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
GetIfExists(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}
  • Operation Id: ManagedDatabases_Get
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
GetIfExistsAsync(String, CancellationToken)

Tries to get details for this resource from the service.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}
  • Operation Id: ManagedDatabases_Get
  • Default Api Version: 2022-08-01-preview
  • Resource: ManagedDatabaseResource
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<ManagedDatabaseResource>.GetAsyncEnumerator(CancellationToken)

Returns an enumerator that iterates asynchronously through the collection.

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

IEnumerable<ManagedDatabaseResource>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Applies to