ResourceGroupCollection.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 all the resource groups for a subscription.
- Request Path: /subscriptions/{subscriptionId}/resourcegroups
- Operation Id: ResourceGroups_List
- Default Api Version: 2022-09-01
- Resource: ResourceGroupResource
public virtual Azure.Pageable<Azure.ResourceManager.Resources.ResourceGroupResource> GetAll (string filter = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.ResourceGroupResource>
override this.GetAll : string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.ResourceGroupResource>
Public Overridable Function GetAll (Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ResourceGroupResource)
Parameters
- filter
- String
The filter to apply on the operation.<br><br>You can filter by tag names and values. For example, to filter for a tag name and value, use $filter=tagName eq 'tag1' and tagValue eq 'Value1'.
The number of results to return. If null is passed, returns all resource groups.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ResourceGroupResource that may take multiple service requests to iterate over.
Applies to
Azure SDK for .NET