Interface FirewallRulesClient
public interface FirewallRulesClient
An instance of this class provides access to all the operations defined in FirewallRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates or updates a firewall rule.createOrUpdateAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates or updates a firewall rule.com.azure.core.http.rest.Response<FirewallRuleInner>createOrUpdateWithResponse(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters, com.azure.core.util.Context context) Creates or updates a firewall rule.Mono<com.azure.core.http.rest.Response<FirewallRuleInner>>createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates or updates a firewall rule.voidDeletes a firewall rule.deleteAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes a firewall rule.com.azure.core.http.rest.Response<Void>deleteWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes a firewall rule.deleteWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes a firewall rule.Gets a firewall rule.Gets a firewall rule.com.azure.core.http.rest.Response<FirewallRuleInner>getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Gets a firewall rule.Mono<com.azure.core.http.rest.Response<FirewallRuleInner>>getWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) Gets a firewall rule.com.azure.core.http.rest.PagedIterable<FirewallRuleInner>listByServer(String resourceGroupName, String serverName) Gets a list of firewall rules.com.azure.core.http.rest.PagedIterable<FirewallRuleInner>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Gets a list of firewall rules.com.azure.core.http.rest.PagedFlux<FirewallRuleInner>listByServerAsync(String resourceGroupName, String serverName) Gets a list of firewall rules.replace(String resourceGroupName, String serverName, FirewallRuleList parameters) Replaces all firewall rules on the server.replaceAsync(String resourceGroupName, String serverName, FirewallRuleList parameters) Replaces all firewall rules on the server.com.azure.core.http.rest.Response<FirewallRuleInner>replaceWithResponse(String resourceGroupName, String serverName, FirewallRuleList parameters, com.azure.core.util.Context context) Replaces all firewall rules on the server.Mono<com.azure.core.http.rest.Response<FirewallRuleInner>>replaceWithResponseAsync(String resourceGroupName, String serverName, FirewallRuleList parameters) Replaces all firewall rules on the server.
-
Method Details
-
listByServerAsync
com.azure.core.http.rest.PagedFlux<FirewallRuleInner> listByServerAsync(String resourceGroupName, String serverName) Gets a list of firewall rules.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.- Returns:
- a list of firewall rules as paginated response with
PagedFlux. - 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<FirewallRuleInner> listByServer(String resourceGroupName, String serverName) Gets a list of firewall rules.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.- Returns:
- a list of firewall rules 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<FirewallRuleInner> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) Gets a list of firewall rules.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.context- The context to associate with this operation.- Returns:
- a list of firewall rules 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.
-
replaceWithResponseAsync
Mono<com.azure.core.http.rest.Response<FirewallRuleInner>> replaceWithResponseAsync(String resourceGroupName, String serverName, FirewallRuleList parameters) Replaces all firewall rules on the server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.parameters- A list of server firewall rules.- Returns:
- a server firewall rule along with
Responseon successful completion ofMono. - 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.
-
replaceAsync
Mono<FirewallRuleInner> replaceAsync(String resourceGroupName, String serverName, FirewallRuleList parameters) Replaces all firewall rules on the server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.parameters- A list of server firewall rules.- Returns:
- a server firewall rule 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.
-
replaceWithResponse
com.azure.core.http.rest.Response<FirewallRuleInner> replaceWithResponse(String resourceGroupName, String serverName, FirewallRuleList parameters, com.azure.core.util.Context context) Replaces all firewall rules on the server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.parameters- A list of server firewall rules.context- The context to associate with this operation.- Returns:
- a server firewall rule 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.
-
replace
Replaces all firewall rules on the server.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.parameters- A list of server firewall rules.- Returns:
- a server firewall rule.
- 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.
-
getWithResponseAsync
Mono<com.azure.core.http.rest.Response<FirewallRuleInner>> getWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) Gets a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.- Returns:
- a firewall rule along with
Responseon successful completion ofMono. - 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.
-
getAsync
Mono<FirewallRuleInner> getAsync(String resourceGroupName, String serverName, String firewallRuleName) Gets a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.- Returns:
- a firewall rule 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.
-
getWithResponse
com.azure.core.http.rest.Response<FirewallRuleInner> getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Gets a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.context- The context to associate with this operation.- Returns:
- a firewall rule 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.
-
get
Gets a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.- Returns:
- a firewall rule.
- 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<FirewallRuleInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates or updates a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.parameters- The required parameters for creating or updating a firewall rule.- Returns:
- a server firewall rule along with
Responseon successful completion ofMono. - 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<FirewallRuleInner> createOrUpdateAsync(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates or updates a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.parameters- The required parameters for creating or updating a firewall rule.- Returns:
- a server firewall rule 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<FirewallRuleInner> createOrUpdateWithResponse(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters, com.azure.core.util.Context context) Creates or updates a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.parameters- The required parameters for creating or updating a firewall rule.context- The context to associate with this operation.- Returns:
- a server firewall rule 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.
-
createOrUpdate
FirewallRuleInner createOrUpdate(String resourceGroupName, String serverName, String firewallRuleName, FirewallRuleInner parameters) Creates or updates a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.parameters- The required parameters for creating or updating a firewall rule.- Returns:
- a server firewall rule.
- 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<Void>> deleteWithResponseAsync(String resourceGroupName, String serverName, String firewallRuleName) Deletes a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.- Returns:
- the
Responseon successful completion ofMono. - 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
Deletes a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.- Returns:
- A
Monothat 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.context- The context to associate with this operation.- Returns:
- the
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.
-
delete
Deletes a firewall rule.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.serverName- The name of the server.firewallRuleName- The name of the firewall rule.- 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.
-