MockablePolicyInsightsSubscriptionResource.GetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStates 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.
Queries component policy states for the subscription level policy assignment.
- Request Path: /subscriptions/{subscriptionId}/providers/{authorizationNamespace}/policyAssignments/{policyAssignmentName}/providers/Microsoft.PolicyInsights/componentPolicyStates/{componentPolicyStatesResource}/queryResults
- Operation Id: ComponentPolicyStates_ListQueryResultsForSubscriptionLevelPolicyAssignment
- Default Api Version: 2024-10-01
public virtual Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.ComponentPolicyState> GetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStates(Azure.ResourceManager.PolicyInsights.Models.SubscriptionResourceGetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStatesOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStates : Azure.ResourceManager.PolicyInsights.Models.SubscriptionResourceGetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStatesOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.ComponentPolicyState>
override this.GetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStates : Azure.ResourceManager.PolicyInsights.Models.SubscriptionResourceGetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStatesOptions * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.PolicyInsights.Models.ComponentPolicyState>
Public Overridable Function GetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStates (options As SubscriptionResourceGetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStatesOptions, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ComponentPolicyState)
Parameters
- options
- SubscriptionResourceGetQueryResultsForSubscriptionLevelPolicyAssignmentComponentPolicyStatesOptions
A property bag which contains all the parameters of this method except the LRO qualifier and request context parameter.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ComponentPolicyState that may take multiple service requests to iterate over.
Exceptions
options is null.