Interface PolicyStatesClient
public interface PolicyStatesClient
An instance of this class provides access to all the operations defined in PolicyStatesClient.
-
Method Summary
Modifier and TypeMethodDescriptionbeginTriggerResourceGroupEvaluation
(String subscriptionId, String resourceGroupName) Triggers a policy evaluation scan for all the resources under the resource group.beginTriggerResourceGroupEvaluation
(String subscriptionId, String resourceGroupName, com.azure.core.util.Context context) Triggers a policy evaluation scan for all the resources under the resource group.beginTriggerSubscriptionEvaluation
(String subscriptionId) Triggers a policy evaluation scan for all the resources under the subscription.beginTriggerSubscriptionEvaluation
(String subscriptionId, com.azure.core.util.Context context) Triggers a policy evaluation scan for all the resources under the subscription.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForManagementGroup
(PolicyStatesResource policyStatesResource, String managementGroupName) Queries policy states for the resources under the management group.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForManagementGroup
(PolicyStatesResource policyStatesResource, String managementGroupName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the resources under the management group.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForPolicyDefinition
(PolicyStatesResource policyStatesResource, String subscriptionId, String policyDefinitionName) Queries policy states for the subscription level policy definition.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForPolicyDefinition
(PolicyStatesResource policyStatesResource, String subscriptionId, String policyDefinitionName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the subscription level policy definition.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForPolicySetDefinition
(PolicyStatesResource policyStatesResource, String subscriptionId, String policySetDefinitionName) Queries policy states for the subscription level policy set definition.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForPolicySetDefinition
(PolicyStatesResource policyStatesResource, String subscriptionId, String policySetDefinitionName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the subscription level policy set definition.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForResource
(PolicyStatesResource policyStatesResource, String resourceId) Queries policy states for the resource.com.azure.core.http.rest.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, com.azure.core.util.Context context) Queries policy states for the resource.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForResourceGroup
(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName) Queries policy states for the resources under the resource group.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForResourceGroup
(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the resources under the resource group.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForResourceGroupLevelPolicyAssignment
(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, String policyAssignmentName) Queries policy states for the resource group level policy assignment.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForResourceGroupLevelPolicyAssignment
(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, String policyAssignmentName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the resource group level policy assignment.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForSubscription
(PolicyStatesResource policyStatesResource, String subscriptionId) Queries policy states for the resources under the subscription.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForSubscription
(PolicyStatesResource policyStatesResource, String subscriptionId, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the resources under the subscription.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForSubscriptionLevelPolicyAssignment
(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName) Queries policy states for the subscription level policy assignment.com.azure.core.http.rest.PagedIterable<PolicyStateInner>
listQueryResultsForSubscriptionLevelPolicyAssignment
(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the subscription level policy assignment.summarizeForManagementGroup
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String managementGroupName) Summarizes policy states for the resources under the management group.com.azure.core.http.rest.Response<SummarizeResultsInner>
summarizeForManagementGroupWithResponse
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String managementGroupName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resources under the management group.summarizeForPolicyDefinition
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyDefinitionName) Summarizes policy states for the subscription level policy definition.com.azure.core.http.rest.Response<SummarizeResultsInner>
summarizeForPolicyDefinitionWithResponse
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyDefinitionName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the subscription level policy definition.summarizeForPolicySetDefinition
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policySetDefinitionName) Summarizes policy states for the subscription level policy set definition.com.azure.core.http.rest.Response<SummarizeResultsInner>
summarizeForPolicySetDefinitionWithResponse
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policySetDefinitionName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the subscription level policy set definition.summarizeForResource
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String resourceId) Summarizes policy states for the resource.summarizeForResourceGroup
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName) Summarizes policy states for the resources under the resource group.summarizeForResourceGroupLevelPolicyAssignment
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName, String policyAssignmentName) Summarizes policy states for the resource group level policy assignment.com.azure.core.http.rest.Response<SummarizeResultsInner>
summarizeForResourceGroupLevelPolicyAssignmentWithResponse
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName, String policyAssignmentName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resource group level policy assignment.com.azure.core.http.rest.Response<SummarizeResultsInner>
summarizeForResourceGroupWithResponse
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resources under the resource group.com.azure.core.http.rest.Response<SummarizeResultsInner>
summarizeForResourceWithResponse
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String resourceId, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resource.summarizeForSubscription
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId) Summarizes policy states for the resources under the subscription.summarizeForSubscriptionLevelPolicyAssignment
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyAssignmentName) Summarizes policy states for the subscription level policy assignment.com.azure.core.http.rest.Response<SummarizeResultsInner>
summarizeForSubscriptionLevelPolicyAssignmentWithResponse
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyAssignmentName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the subscription level policy assignment.com.azure.core.http.rest.Response<SummarizeResultsInner>
summarizeForSubscriptionWithResponse
(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resources under the subscription.void
triggerResourceGroupEvaluation
(String subscriptionId, String resourceGroupName) Triggers a policy evaluation scan for all the resources under the resource group.void
triggerResourceGroupEvaluation
(String subscriptionId, String resourceGroupName, com.azure.core.util.Context context) Triggers a policy evaluation scan for all the resources under the resource group.void
triggerSubscriptionEvaluation
(String subscriptionId) Triggers a policy evaluation scan for all the resources under the subscription.void
triggerSubscriptionEvaluation
(String subscriptionId, com.azure.core.util.Context context) Triggers a policy evaluation scan for all the resources under the subscription.
-
Method Details
-
listQueryResultsForManagementGroup
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForManagementGroup(PolicyStatesResource policyStatesResource, String managementGroupName) Queries policy states for the resources under the management group.- Parameters:
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).managementGroupName
- Management group name.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForManagementGroup
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForManagementGroup(PolicyStatesResource policyStatesResource, String managementGroupName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the resources under the management group.- Parameters:
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).managementGroupName
- Management group name.top
- Maximum number of records to return.orderBy
- 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
- Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.apply
- OData apply expression for aggregations.skipToken
- Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.context
- The context to associate with this operation.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForManagementGroupWithResponse
com.azure.core.http.rest.Response<SummarizeResultsInner> summarizeForManagementGroupWithResponse(PolicyStatesSummaryResourceType policyStatesSummaryResource, String managementGroupName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resources under the management group.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.managementGroupName
- Management group name.top
- Maximum number of records to return.from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- summarize action results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForManagementGroup
SummarizeResultsInner summarizeForManagementGroup(PolicyStatesSummaryResourceType policyStatesSummaryResource, String managementGroupName) Summarizes policy states for the resources under the management group.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.managementGroupName
- Management group name.- Returns:
- summarize action results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForSubscription
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForSubscription(PolicyStatesResource policyStatesResource, String subscriptionId) Queries policy states for the resources under the subscription.- Parameters:
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
- Microsoft Azure subscription ID.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForSubscription
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForSubscription(PolicyStatesResource policyStatesResource, String subscriptionId, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the resources under the subscription.- Parameters:
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
- Microsoft Azure subscription ID.top
- Maximum number of records to return.orderBy
- 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
- Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.apply
- OData apply expression for aggregations.skipToken
- Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.context
- The context to associate with this operation.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForSubscriptionWithResponse
com.azure.core.http.rest.Response<SummarizeResultsInner> summarizeForSubscriptionWithResponse(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resources under the subscription.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.top
- Maximum number of records to return.from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- summarize action results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForSubscription
SummarizeResultsInner summarizeForSubscription(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId) Summarizes policy states for the resources under the subscription.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.- Returns:
- summarize action results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForResourceGroup
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForResourceGroup(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName) Queries policy states for the resources under the resource group.- Parameters:
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
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForResourceGroup
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForResourceGroup(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the resources under the resource group.- Parameters:
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
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.top
- Maximum number of records to return.orderBy
- 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
- Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.apply
- OData apply expression for aggregations.skipToken
- Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.context
- The context to associate with this operation.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForResourceGroupWithResponse
com.azure.core.http.rest.Response<SummarizeResultsInner> summarizeForResourceGroupWithResponse(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resources under the resource group.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.top
- Maximum number of records to return.from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- summarize action results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForResourceGroup
SummarizeResultsInner summarizeForResourceGroup(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName) Summarizes policy states for the resources under the resource group.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.- Returns:
- summarize action results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForResource
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForResource(PolicyStatesResource policyStatesResource, String resourceId) Queries policy states for the resource.- Parameters:
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
- Resource ID.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForResource
com.azure.core.http.rest.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, com.azure.core.util.Context context) Queries policy states for the resource.- Parameters:
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
- Resource ID.top
- Maximum number of records to return.orderBy
- 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
- Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.apply
- OData apply expression for aggregations.expand
- The $expand query parameter. For example, to expand components use $expand=components.skipToken
- Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.context
- The context to associate with this operation.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForResourceWithResponse
com.azure.core.http.rest.Response<SummarizeResultsInner> summarizeForResourceWithResponse(PolicyStatesSummaryResourceType policyStatesSummaryResource, String resourceId, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resource.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.resourceId
- Resource ID.top
- Maximum number of records to return.from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- summarize action results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForResource
SummarizeResultsInner summarizeForResource(PolicyStatesSummaryResourceType policyStatesSummaryResource, String resourceId) Summarizes policy states for the resource.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.resourceId
- Resource ID.- Returns:
- summarize action results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginTriggerSubscriptionEvaluation
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginTriggerSubscriptionEvaluation(String subscriptionId) Triggers a policy evaluation scan for all the resources under the subscription.- Parameters:
subscriptionId
- Microsoft Azure subscription ID.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginTriggerSubscriptionEvaluation
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginTriggerSubscriptionEvaluation(String subscriptionId, com.azure.core.util.Context context) Triggers a policy evaluation scan for all the resources under the subscription.- Parameters:
subscriptionId
- Microsoft Azure subscription ID.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
triggerSubscriptionEvaluation
Triggers a policy evaluation scan for all the resources under the subscription.- Parameters:
subscriptionId
- Microsoft Azure subscription ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
triggerSubscriptionEvaluation
Triggers a policy evaluation scan for all the resources under the subscription.- Parameters:
subscriptionId
- Microsoft Azure subscription ID.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginTriggerResourceGroupEvaluation
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginTriggerResourceGroupEvaluation(String subscriptionId, String resourceGroupName) Triggers a policy evaluation scan for all the resources under the resource group.- Parameters:
subscriptionId
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
beginTriggerResourceGroupEvaluation
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginTriggerResourceGroupEvaluation(String subscriptionId, String resourceGroupName, com.azure.core.util.Context context) Triggers a policy evaluation scan for all the resources under the resource group.- Parameters:
subscriptionId
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of long-running operation. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
triggerResourceGroupEvaluation
Triggers a policy evaluation scan for all the resources under the resource group.- Parameters:
subscriptionId
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
triggerResourceGroupEvaluation
void triggerResourceGroupEvaluation(String subscriptionId, String resourceGroupName, com.azure.core.util.Context context) Triggers a policy evaluation scan for all the resources under the resource group.- Parameters:
subscriptionId
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForPolicySetDefinition
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForPolicySetDefinition(PolicyStatesResource policyStatesResource, String subscriptionId, String policySetDefinitionName) Queries policy states for the subscription level policy set definition.- Parameters:
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
- Microsoft Azure subscription ID.policySetDefinitionName
- Policy set definition name.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForPolicySetDefinition
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForPolicySetDefinition(PolicyStatesResource policyStatesResource, String subscriptionId, String policySetDefinitionName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the subscription level policy set definition.- Parameters:
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
- Microsoft Azure subscription ID.policySetDefinitionName
- Policy set definition name.top
- Maximum number of records to return.orderBy
- 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
- Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.apply
- OData apply expression for aggregations.skipToken
- Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.context
- The context to associate with this operation.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForPolicySetDefinitionWithResponse
com.azure.core.http.rest.Response<SummarizeResultsInner> summarizeForPolicySetDefinitionWithResponse(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policySetDefinitionName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the subscription level policy set definition.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.policySetDefinitionName
- Policy set definition name.top
- Maximum number of records to return.from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- summarize action results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForPolicySetDefinition
SummarizeResultsInner summarizeForPolicySetDefinition(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policySetDefinitionName) Summarizes policy states for the subscription level policy set definition.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.policySetDefinitionName
- Policy set definition name.- Returns:
- summarize action results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForPolicyDefinition
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForPolicyDefinition(PolicyStatesResource policyStatesResource, String subscriptionId, String policyDefinitionName) Queries policy states for the subscription level policy definition.- Parameters:
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
- Microsoft Azure subscription ID.policyDefinitionName
- Policy definition name.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForPolicyDefinition
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForPolicyDefinition(PolicyStatesResource policyStatesResource, String subscriptionId, String policyDefinitionName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the subscription level policy definition.- Parameters:
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
- Microsoft Azure subscription ID.policyDefinitionName
- Policy definition name.top
- Maximum number of records to return.orderBy
- 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
- Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.apply
- OData apply expression for aggregations.skipToken
- Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.context
- The context to associate with this operation.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForPolicyDefinitionWithResponse
com.azure.core.http.rest.Response<SummarizeResultsInner> summarizeForPolicyDefinitionWithResponse(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyDefinitionName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the subscription level policy definition.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.policyDefinitionName
- Policy definition name.top
- Maximum number of records to return.from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- summarize action results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForPolicyDefinition
SummarizeResultsInner summarizeForPolicyDefinition(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyDefinitionName) Summarizes policy states for the subscription level policy definition.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.policyDefinitionName
- Policy definition name.- Returns:
- summarize action results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForSubscriptionLevelPolicyAssignment
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName) Queries policy states for the subscription level policy assignment.- Parameters:
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
- Microsoft Azure subscription ID.policyAssignmentName
- Policy assignment name.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForSubscriptionLevelPolicyAssignment
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String policyAssignmentName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the subscription level policy assignment.- Parameters:
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
- Microsoft Azure subscription ID.policyAssignmentName
- Policy assignment name.top
- Maximum number of records to return.orderBy
- 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
- Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.apply
- OData apply expression for aggregations.skipToken
- Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.context
- The context to associate with this operation.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForSubscriptionLevelPolicyAssignmentWithResponse
com.azure.core.http.rest.Response<SummarizeResultsInner> summarizeForSubscriptionLevelPolicyAssignmentWithResponse(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyAssignmentName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the subscription level policy assignment.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.policyAssignmentName
- Policy assignment name.top
- Maximum number of records to return.from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- summarize action results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForSubscriptionLevelPolicyAssignment
SummarizeResultsInner summarizeForSubscriptionLevelPolicyAssignment(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String policyAssignmentName) Summarizes policy states for the subscription level policy assignment.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.policyAssignmentName
- Policy assignment name.- Returns:
- summarize action results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForResourceGroupLevelPolicyAssignment
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForResourceGroupLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, String policyAssignmentName) Queries policy states for the resource group level policy assignment.- Parameters:
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
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.policyAssignmentName
- Policy assignment name.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listQueryResultsForResourceGroupLevelPolicyAssignment
com.azure.core.http.rest.PagedIterable<PolicyStateInner> listQueryResultsForResourceGroupLevelPolicyAssignment(PolicyStatesResource policyStatesResource, String subscriptionId, String resourceGroupName, String policyAssignmentName, Integer top, String orderBy, String select, OffsetDateTime from, OffsetDateTime to, String filter, String apply, String skipToken, com.azure.core.util.Context context) Queries policy states for the resource group level policy assignment.- Parameters:
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
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.policyAssignmentName
- Policy assignment name.top
- Maximum number of records to return.orderBy
- 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
- Select expression using OData notation. Limits the columns on each record to just those requested, e.g. "$select=PolicyAssignmentId, ResourceId".from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.apply
- OData apply expression for aggregations.skipToken
- Skiptoken is only provided if a previous response returned a partial result as a part of nextLink element.context
- The context to associate with this operation.- Returns:
- query results as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForResourceGroupLevelPolicyAssignmentWithResponse
com.azure.core.http.rest.Response<SummarizeResultsInner> summarizeForResourceGroupLevelPolicyAssignmentWithResponse(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName, String policyAssignmentName, Integer top, OffsetDateTime from, OffsetDateTime to, String filter, com.azure.core.util.Context context) Summarizes policy states for the resource group level policy assignment.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.policyAssignmentName
- Policy assignment name.top
- Maximum number of records to return.from
- ISO 8601 formatted timestamp specifying the start time of the interval to query. When not specified, the service uses ($to - 1-day).to
- ISO 8601 formatted timestamp specifying the end time of the interval to query. When not specified, the service uses request time.filter
- OData filter expression.context
- The context to associate with this operation.- Returns:
- summarize action results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
summarizeForResourceGroupLevelPolicyAssignment
SummarizeResultsInner summarizeForResourceGroupLevelPolicyAssignment(PolicyStatesSummaryResourceType policyStatesSummaryResource, String subscriptionId, String resourceGroupName, String policyAssignmentName) Summarizes policy states for the resource group level policy assignment.- Parameters:
policyStatesSummaryResource
- The virtual resource under PolicyStates resource type for summarize action. In a given time range, 'latest' represents the latest policy state(s) and is the only allowed value.subscriptionId
- Microsoft Azure subscription ID.resourceGroupName
- Resource group name.policyAssignmentName
- Policy assignment name.- Returns:
- summarize action results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-