Interface PolicyEventsClient


public interface PolicyEventsClient
An instance of this class provides access to all the operations defined in PolicyEventsClient.
  • Method Details

    • listQueryResultsForManagementGroup

      com.azure.core.http.rest.PagedIterable<PolicyEventInner> listQueryResultsForManagementGroup(PolicyEventsResourceType policyEventsResource, String managementGroupName)
      Queries policy events for the resources under the management group.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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<PolicyEventInner> listQueryResultsForManagementGroup(PolicyEventsResourceType policyEventsResource, 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 events for the resources under the management group.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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.
    • listQueryResultsForSubscription

      com.azure.core.http.rest.PagedIterable<PolicyEventInner> listQueryResultsForSubscription(PolicyEventsResourceType policyEventsResource, String subscriptionId)
      Queries policy events for the resources under the subscription.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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<PolicyEventInner> listQueryResultsForSubscription(PolicyEventsResourceType policyEventsResource, 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 events for the resources under the subscription.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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.
    • listQueryResultsForResourceGroup

      com.azure.core.http.rest.PagedIterable<PolicyEventInner> listQueryResultsForResourceGroup(PolicyEventsResourceType policyEventsResource, String subscriptionId, String resourceGroupName)
      Queries policy events for the resources under the resource group.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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<PolicyEventInner> listQueryResultsForResourceGroup(PolicyEventsResourceType policyEventsResource, 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 events for the resources under the resource group.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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.
    • listQueryResultsForResource

      com.azure.core.http.rest.PagedIterable<PolicyEventInner> listQueryResultsForResource(PolicyEventsResourceType policyEventsResource, String resourceId)
      Queries policy events for the resource.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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<PolicyEventInner> listQueryResultsForResource(PolicyEventsResourceType policyEventsResource, 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 events for the resource.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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.
    • listQueryResultsForPolicySetDefinition

      com.azure.core.http.rest.PagedIterable<PolicyEventInner> listQueryResultsForPolicySetDefinition(PolicyEventsResourceType policyEventsResource, String subscriptionId, String policySetDefinitionName)
      Queries policy events for the subscription level policy set definition.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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<PolicyEventInner> listQueryResultsForPolicySetDefinition(PolicyEventsResourceType policyEventsResource, 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 events for the subscription level policy set definition.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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.
    • listQueryResultsForPolicyDefinition

      com.azure.core.http.rest.PagedIterable<PolicyEventInner> listQueryResultsForPolicyDefinition(PolicyEventsResourceType policyEventsResource, String subscriptionId, String policyDefinitionName)
      Queries policy events for the subscription level policy definition.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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<PolicyEventInner> listQueryResultsForPolicyDefinition(PolicyEventsResourceType policyEventsResource, 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 events for the subscription level policy definition.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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.
    • listQueryResultsForSubscriptionLevelPolicyAssignment

      com.azure.core.http.rest.PagedIterable<PolicyEventInner> listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyEventsResourceType policyEventsResource, String subscriptionId, String policyAssignmentName)
      Queries policy events for the subscription level policy assignment.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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<PolicyEventInner> listQueryResultsForSubscriptionLevelPolicyAssignment(PolicyEventsResourceType policyEventsResource, 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 events for the subscription level policy assignment.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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.
    • listQueryResultsForResourceGroupLevelPolicyAssignment

      com.azure.core.http.rest.PagedIterable<PolicyEventInner> listQueryResultsForResourceGroupLevelPolicyAssignment(PolicyEventsResourceType policyEventsResource, String subscriptionId, String resourceGroupName, String policyAssignmentName)
      Queries policy events for the resource group level policy assignment.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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<PolicyEventInner> listQueryResultsForResourceGroupLevelPolicyAssignment(PolicyEventsResourceType policyEventsResource, 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 events for the resource group level policy assignment.
      Parameters:
      policyEventsResource - The name of the virtual resource under PolicyEvents resource type; only "default" is allowed.
      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.