Interface WebApplicationFirewallPoliciesClient

    • Method Detail

      • listByResourceGroup

        com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> listByResourceGroup​(String resourceGroupName)
        Lists all of the protection policies within a resource group.
        Specified by:
        listByResourceGroup in interface InnerSupportsListing<WebApplicationFirewallPolicyInner>
        Parameters:
        resourceGroupName - The name of the resource group.
        Returns:
        result of the request to list 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<WebApplicationFirewallPolicyInner> listByResourceGroup​(String resourceGroupName,
                                                                                                      com.azure.core.util.Context context)
        Lists all of the protection policies within a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        context - The context to associate with this operation.
        Returns:
        result of the request to list 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.
      • list

        com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> list​(com.azure.core.util.Context context)
        Gets all the WAF policies in a subscription.
        Parameters:
        context - The context to associate with this operation.
        Returns:
        all the WAF policies in a subscription 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.
      • getByResourceGroupWithResponseAsync

        Mono<com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner>> getByResourceGroupWithResponseAsync​(String resourceGroupName,
                                                                                                                       String policyName)
        Retrieve protection policy with specified name within a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        Returns:
        defines web application firewall policy along with Response on successful completion of Mono.
        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<WebApplicationFirewallPolicyInner> getByResourceGroupWithResponse​(String resourceGroupName,
                                                                                                            String policyName,
                                                                                                            com.azure.core.util.Context context)
        Retrieve protection policy with specified name within a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the 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.
      • createOrUpdateWithResponseAsync

        Mono<com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner>> createOrUpdateWithResponseAsync​(String resourceGroupName,
                                                                                                                   String policyName,
                                                                                                                   WebApplicationFirewallPolicyInner parameters)
        Creates or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        parameters - Policy to be created.
        Returns:
        defines web application firewall policy along with Response on successful completion of Mono.
        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.
      • createOrUpdateAsync

        Mono<WebApplicationFirewallPolicyInner> createOrUpdateAsync​(String resourceGroupName,
                                                                    String policyName,
                                                                    WebApplicationFirewallPolicyInner parameters)
        Creates or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        parameters - Policy to be created.
        Returns:
        defines web application firewall policy on successful completion of Mono.
        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.
      • createOrUpdate

        WebApplicationFirewallPolicyInner createOrUpdate​(String resourceGroupName,
                                                         String policyName,
                                                         WebApplicationFirewallPolicyInner parameters)
        Creates or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        parameters - Policy to be created.
        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.
      • createOrUpdateWithResponse

        com.azure.core.http.rest.Response<WebApplicationFirewallPolicyInner> createOrUpdateWithResponse​(String resourceGroupName,
                                                                                                        String policyName,
                                                                                                        WebApplicationFirewallPolicyInner parameters,
                                                                                                        com.azure.core.util.Context context)
        Creates or update policy with specified rule set name within a resource group.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        parameters - Policy to be created.
        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.
      • deleteWithResponseAsync

        Mono<com.azure.core.http.rest.Response<Flux<ByteBuffer>>> deleteWithResponseAsync​(String resourceGroupName,
                                                                                          String policyName)
        Deletes Policy.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        Returns:
        the Response on successful completion of Mono.
        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.
      • beginDeleteAsync

        com.azure.core.util.polling.PollerFlux<com.azure.core.management.polling.PollResult<Void>,​Void> beginDeleteAsync​(String resourceGroupName,
                                                                                                                               String policyName)
        Deletes Policy.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        Returns:
        the PollerFlux 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.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String policyName)
        Deletes Policy.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        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.
      • beginDelete

        com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,​Void> beginDelete​(String resourceGroupName,
                                                                                                                          String policyName,
                                                                                                                          com.azure.core.util.Context context)
        Deletes Policy.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        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.
      • deleteAsync

        Mono<Void> deleteAsync​(String resourceGroupName,
                               String policyName)
        Deletes Policy.
        Specified by:
        deleteAsync in interface InnerSupportsDelete<Void>
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the policy.
        Returns:
        A Mono that completes when a successful response is received.
        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)
        Deletes Policy.
        Parameters:
        resourceGroupName - The name of the resource group.
        policyName - The name of the 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 - The name of the resource group.
        policyName - The name of the 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.