PolicyStates.listQueryResultsForSubscriptionLevelPolicyAssignment Method

Definition

Overloads

listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName)

Queries policy states for the subscription level policy assignment.

listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, Context context)

Queries policy states for the subscription level policy assignment.

listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName)

Queries policy states for the subscription level policy assignment.

public abstract PagedIterable<PolicyState> listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName)

Parameters

policyStatesResource
PolicyStatesResource

The virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).

subscriptionId
java.lang.String

Microsoft Azure subscription ID.

policyAssignmentName
java.lang.String

Policy assignment name.

Returns

query results.

listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, Context context)

Queries policy states for the subscription level policy assignment.

public abstract PagedIterable<PolicyState> listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, Context context)

Parameters

policyStatesResource
PolicyStatesResource

The virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s).

subscriptionId
java.lang.String

Microsoft Azure subscription ID.

policyAssignmentName
java.lang.String

Policy assignment name.

top
java.lang.Integer

Maximum number of records to return.

orderBy
java.lang.String

Ordering expression using OData notation. One or more comma-separated column names with an optional "desc" (the default) or "asc", e.g. "$orderby=PolicyAssignmentId, ResourceId asc".

select
java.lang.String

Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".

from
java.time.OffsetDateTime

ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).

to
java.time.OffsetDateTime

ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.

filter
java.lang.String

OData filter expression.

apply
java.lang.String

OData apply expression for aggregations.

skipToken
java.lang.String

Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.

context
Context

The context to associate with this operation.

Returns

query results.

Applies to