public interface FirewallRules
| Modifier and Type | Method and Description |
|---|---|
FirewallRule.DefinitionStages.Blank |
define(String name)
Begins definition for a new FirewallRule resource.
|
void |
delete(String resourceGroupName,
String serverName,
String firewallRuleName)
Deletes a PostgreSQL server firewall rule.
|
void |
delete(String resourceGroupName,
String serverName,
String firewallRuleName,
com.azure.core.util.Context context)
Deletes a PostgreSQL server firewall rule.
|
void |
deleteById(String id)
Deletes a PostgreSQL server firewall rule.
|
void |
deleteByIdWithResponse(String id,
com.azure.core.util.Context context)
Deletes a PostgreSQL server firewall rule.
|
FirewallRule |
get(String resourceGroupName,
String serverName,
String firewallRuleName)
List all the firewall rules in a given server.
|
FirewallRule |
getById(String id)
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.
|
void delete(String resourceGroupName, String serverName, String firewallRuleName)
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.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.void delete(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context)
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.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.FirewallRule get(String resourceGroupName, String serverName, String firewallRuleName)
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.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.com.azure.core.http.rest.Response<FirewallRule> getWithResponse(String resourceGroupName, String serverName, String firewallRuleName, com.azure.core.util.Context context)
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.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.com.azure.core.http.rest.PagedIterable<FirewallRule> listByServer(String resourceGroupName, String serverName)
resourceGroupName - The name of the resource group. The name is case insensitive.serverName - The name of the server.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.com.azure.core.http.rest.PagedIterable<FirewallRule> listByServer(String resourceGroupName, String serverName, com.azure.core.util.Context context)
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.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.FirewallRule getById(String id)
id - the resource ID.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.com.azure.core.http.rest.Response<FirewallRule> getByIdWithResponse(String id, com.azure.core.util.Context context)
id - the resource ID.context - The context to associate with this operation.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.void deleteById(String id)
id - the resource ID.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.void deleteByIdWithResponse(String id, com.azure.core.util.Context context)
id - the resource ID.context - The context to associate with this operation.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.FirewallRule.DefinitionStages.Blank define(String name)
name - resource name.Copyright © 2021 Microsoft Corporation. All rights reserved.