FirewallRules interface
Interface representing a FirewallRules.
Methods
create |
Create or update a redis cache firewall rule |
delete(string, string, string, Firewall |
Deletes a single firewall rule in a specified redis cache. |
get(string, string, string, Firewall |
Gets a single firewall rule in a specified redis cache. |
list(string, string, Firewall |
Gets all firewall rules in the specified redis cache. |
Method Details
createOrUpdate(string, string, string, RedisFirewallRule, FirewallRulesCreateOrUpdateOptionalParams)
Create or update a redis cache firewall rule
function createOrUpdate(resourceGroupName: string, cacheName: string, ruleName: string, parameters: RedisFirewallRule, options?: FirewallRulesCreateOrUpdateOptionalParams): Promise<RedisFirewallRule>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- cacheName
-
string
The name of the Redis cache.
- ruleName
-
string
The name of the firewall rule.
- parameters
- RedisFirewallRule
Parameters supplied to the create or update redis firewall rule operation.
The options parameters.
Returns
Promise<RedisFirewallRule>
delete(string, string, string, FirewallRulesDeleteOptionalParams)
Deletes a single firewall rule in a specified redis cache.
function delete(resourceGroupName: string, cacheName: string, ruleName: string, options?: FirewallRulesDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- cacheName
-
string
The name of the Redis cache.
- ruleName
-
string
The name of the firewall rule.
The options parameters.
Returns
Promise<void>
get(string, string, string, FirewallRulesGetOptionalParams)
Gets a single firewall rule in a specified redis cache.
function get(resourceGroupName: string, cacheName: string, ruleName: string, options?: FirewallRulesGetOptionalParams): Promise<RedisFirewallRule>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- cacheName
-
string
The name of the Redis cache.
- ruleName
-
string
The name of the firewall rule.
- options
- FirewallRulesGetOptionalParams
The options parameters.
Returns
Promise<RedisFirewallRule>
list(string, string, FirewallRulesListOptionalParams)
Gets all firewall rules in the specified redis cache.
function list(resourceGroupName: string, cacheName: string, options?: FirewallRulesListOptionalParams): PagedAsyncIterableIterator<RedisFirewallRule, RedisFirewallRule[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- cacheName
-
string
The name of the Redis cache.
- options
- FirewallRulesListOptionalParams
The options parameters.