PolicySetDefinitionVersionCollection.GetAll Method

Definition

This operation retrieves a list of all the policy set definition versions for the given policy set definition.

  • Request Path. : /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}/versions.
  • Operation Id. : PolicySetDefinitionVersions_List.
  • Default Api Version. : 2025-12-01-preview.
public virtual Azure.Pageable<Azure.ResourceManager.Resources.Policy.PolicySetDefinitionVersionResource> GetAll(string expand = default, int? top = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAll : string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.Policy.PolicySetDefinitionVersionResource>
override this.GetAll : string * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Resources.Policy.PolicySetDefinitionVersionResource>
Public Overridable Function GetAll (Optional expand As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of PolicySetDefinitionVersionResource)

Parameters

expand
String

Comma-separated list of additional properties to be included in the response. Supported values are 'LatestDefinitionVersion, EffectiveDefinitionVersion'.

top
Nullable<Int32>

Maximum number of records to return. When the $top filter is not provided, it will return 500 records.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Applies to