Interface PoliciesClient
public interface PoliciesClient
An instance of this class provides access to all the operations defined in PoliciesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,
WebApplicationFirewallPolicyInner> beginCreateOrUpdate
(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Create or update policy with specified rule set name within a resource group.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,
WebApplicationFirewallPolicyInner> beginCreateOrUpdate
(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Create or update policy with specified rule set name within a resource group.beginDelete
(String resourceGroupName, String policyName) Deletes Policy.beginDelete
(String resourceGroupName, String policyName, com.azure.core.util.Context context) Deletes Policy.createOrUpdate
(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Create or update policy with specified rule set name within a resource group.createOrUpdate
(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Create or update policy with specified rule set name within a resource group.void
Deletes Policy.void
Deletes Policy.getByResourceGroup
(String resourceGroupName, String policyName) Retrieve protection policy with specified name within a resource group.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.com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner>
listByResourceGroup
(String resourceGroupName) Lists all of the protection policies within a resource group.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.
-
Method Details
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<WebApplicationFirewallPolicyInner> 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<WebApplicationFirewallPolicyInner> 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<WebApplicationFirewallPolicyInner> 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
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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginCreateOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Create or update policy with specified rule set 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.parameters
- Policy to be created.- Returns:
- the
SyncPoller
for polling of 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<WebApplicationFirewallPolicyInner>,WebApplicationFirewallPolicyInner> beginCreateOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Create or update policy with specified rule set 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.parameters
- Policy to be created.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of 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.
-
createOrUpdate
WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters) Create or update policy with specified rule set 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.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.
-
createOrUpdate
WebApplicationFirewallPolicyInner createOrUpdate(String resourceGroupName, String policyName, WebApplicationFirewallPolicyInner parameters, com.azure.core.util.Context context) Create or update policy with specified rule set 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.parameters
- Policy to be created.context
- The context to associate with this operation.- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- 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
- 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:
- 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.
-
delete
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
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.
-