Interface Policies


public interface Policies
Resource collection API of Policies.
  • Method Details

    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicy> listByResourceGroup(String resourceGroupName)
      Lists all of the protection policies within a resource group.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      Returns:
      defines a list of WebApplicationFirewallPolicies 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicy> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      Lists all of the protection policies within a resource group.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      context - The context to associate with this operation.
      Returns:
      defines a list of WebApplicationFirewallPolicies 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<WebApplicationFirewallPolicy> getByResourceGroupWithResponse(String resourceGroupName, String policyName, com.azure.core.util.Context context)
      Retrieve protection policy with specified name within a resource group.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      policyName - The name of the Web Application Firewall Policy.
      context - The context to associate with this operation.
      Returns:
      defines web application firewall policy 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.
    • getByResourceGroup

      WebApplicationFirewallPolicy getByResourceGroup(String resourceGroupName, String policyName)
      Retrieve protection policy with specified name within a resource group.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      policyName - The name of the Web Application Firewall Policy.
      Returns:
      defines web application firewall policy.
      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.
    • deleteByResourceGroup

      void deleteByResourceGroup(String resourceGroupName, String policyName)
      Deletes Policy.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      policyName - The name of the Web Application Firewall Policy.
      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.
    • delete

      void delete(String resourceGroupName, String policyName, com.azure.core.util.Context context)
      Deletes Policy.
      Parameters:
      resourceGroupName - Name of the Resource group within the Azure subscription.
      policyName - The name of the Web Application Firewall Policy.
      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.
    • getById

      Retrieve protection policy with specified name within a resource group.
      Parameters:
      id - the resource ID.
      Returns:
      defines web application firewall policy 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.
    • getByIdWithResponse

      com.azure.core.http.rest.Response<WebApplicationFirewallPolicy> getByIdWithResponse(String id, com.azure.core.util.Context context)
      Retrieve protection policy with specified name within a resource group.
      Parameters:
      id - the resource ID.
      context - The context to associate with this operation.
      Returns:
      defines web application firewall policy 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.
    • deleteById

      void deleteById(String id)
      Deletes Policy.
      Parameters:
      id - the resource 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.
    • deleteByIdWithResponse

      void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
      Deletes Policy.
      Parameters:
      id - the resource 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.
    • define

      Begins definition for a new WebApplicationFirewallPolicy resource.
      Parameters:
      name - resource name.
      Returns:
      the first stage of the new WebApplicationFirewallPolicy definition.