PolicyStatesClientImpl.listQueryResultsForResource Method

Definition

Overloads

listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId)

Queries policy states for the resource.

listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String expand, String skipToken, Context context)

Queries policy states for the resource.

listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId)

Queries policy states for the resource.

public PagedIterable<PolicyStateInner> listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId)

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).

resourceId
java.lang.String

Resource ID.

Returns

listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String expand, String skipToken, Context context)

Queries policy states for the resource.

public PagedIterable<PolicyStateInner> listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String expand, 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).

resourceId
java.lang.String

Resource ID.

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.

expand
java.lang.String

The $expand query parameter. For example, to expand components use $expand=components.

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

Applies to