Interface FirewallRules
public interface FirewallRules
Resource collection API of FirewallRules.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new FirewallRule resource.voidDeletes a PostgreSQL server firewall rule.voiddelete(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes a PostgreSQL server firewall rule.voiddeleteById(String id) Deletes a PostgreSQL server firewall rule.voiddeleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a PostgreSQL server firewall rule.List all the firewall rules in a given server.List all the firewall rules in a given server.com.azure.core.http.rest.Response<FirewallRule>getByIdWithResponse(String id, com.azure.core.util.Context context) List all the firewall rules in a given server.com.azure.core.http.rest.Response<FirewallRule>getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) List all the firewall rules in a given server.com.azure.core.http.rest.PagedIterable<FirewallRule>listByServer(String resourceGroupName, String serverName) List all the firewall rules in a given PostgreSQL server.com.azure.core.http.rest.PagedIterable<FirewallRule>listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) List all the firewall rules in a given PostgreSQL server.
-
Method Details
-
delete
Deletes a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the 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.
-
delete
void delete(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) Deletes a PostgreSQL server firewall rule.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server firewall rule.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.
-
getWithResponse
com.azure.core.http.rest.Response<FirewallRule> getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context) List all the firewall rules in a given server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server firewall rule.context- The context to associate with this operation.- Returns:
- represents 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.
-
get
List all the firewall rules in a given server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.serverName- The name of the server.firewallRuleName- The name of the server firewall rule.- Returns:
- represents 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.
-
listByServer
com.azure.core.http.rest.PagedIterable<FirewallRule> listByServer(String resourceGroupName, String serverName) List all the firewall rules in a given PostgreSQL server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.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<FirewallRule> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context) List all the firewall rules in a given PostgreSQL server.- Parameters:
resourceGroupName- The name of the resource group. The name is case insensitive.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.
-
getById
List all the firewall rules in a given server.- Parameters:
id- the resource ID.- Returns:
- represents 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<FirewallRule> getByIdWithResponse(String id, com.azure.core.util.Context context) List all the firewall rules in a given server.- Parameters:
id- the resource ID.context- The context to associate with this operation.- Returns:
- represents 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.
-
deleteById
Deletes a PostgreSQL server firewall rule.- 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
Deletes a PostgreSQL server firewall rule.- 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 FirewallRule resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new FirewallRule definition.
-