다음을 통해 공유


ResourceProviderCollection.GetAllAsync(String, CancellationToken) Method

Definition

Gets all resource providers for a subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers
  • Operation Id: Providers_List
  • Default Api Version: 2022-09-01
  • Resource: ResourceProviderResource
public virtual Azure.AsyncPageable<Azure.ResourceManager.Resources.ResourceProviderResource> GetAllAsync (string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Resources.ResourceProviderResource>
override this.GetAllAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.Resources.ResourceProviderResource>
Public Overridable Function GetAllAsync (Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ResourceProviderResource)

Parameters

expand
String

The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ResourceProviderResource that may take multiple service requests to iterate over.

Applies to