ImpactCategoryCollection.GetAll(String, String, CancellationToken) Method

Definition

List ImpactCategory resources by subscription

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Impact/impactCategories.
  • Operation Id. : ImpactCategories_ListBySubscription.
  • Default Api Version. : 2024-05-01-preview.
public virtual Azure.Pageable<Azure.ResourceManager.ImpactReporting.ImpactCategoryResource> GetAll(string resourceType, string categoryName = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ImpactReporting.ImpactCategoryResource>
override this.GetAll : string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ImpactReporting.ImpactCategoryResource>
Public Overridable Function GetAll (resourceType As String, Optional categoryName As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ImpactCategoryResource)

Parameters

resourceType
String

Filter by resource type.

categoryName
String

Filter by category name .

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

resourceType is null.

resourceType is an empty string, and was expected to be non-empty.

Applies to