Language

SqlDatabaseCollection.GetAll Method

Definition

Gets a list of databases.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases.
  • Operation Id. : Databases_ListByServer.
  • Default Api Version. : 2025-08-01-preview.
public virtual Azure.Pageable<Azure.ResourceManager.Sql.SqlDatabaseResource> GetAll(long? top = default, long? skip = default, string filter = default, string orderby = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : Nullable<int64> * Nullable<int64> * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.SqlDatabaseResource>
override this.GetAll : Nullable<int64> * Nullable<int64> * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Sql.SqlDatabaseResource>
Public Overridable Function GetAll (Optional top As Nullable(Of Long) = Nothing, Optional skip As Nullable(Of Long) = Nothing, Optional filter As String = Nothing, Optional orderby As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of SqlDatabaseResource)

Parameters

top
Nullable<Int64>

The number of elements to return from the collection.

skip
Nullable<Int64>

The number of elements in the collection to skip.

filter
String

An OData filter expression that filters elements in the collection.

orderby
String

How the results should be ordered.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to