SqlDatabaseCollection.GetAll Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.