FirewallRulesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:firewall_rules> attribute.
- Inheritance
-
builtins.objectFirewallRulesOperations
Constructor
FirewallRulesOperations(*args, **kwargs)
Methods
create_or_update |
Create or update a redis cache firewall rule. |
delete |
Deletes a single firewall rule in a specified redis cache. |
get |
Gets a single firewall rule in a specified redis cache. |
list |
Gets all firewall rules in the specified redis cache. |
create_or_update
Create or update a redis cache firewall rule.
async create_or_update(resource_group_name: str, cache_name: str, rule_name: str, parameters: _models.RedisFirewallRule, *, content_type: str = 'application/json', **kwargs: Any) -> _models.RedisFirewallRule
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
cache_name
Required
|
The name of the Redis cache. Required. |
rule_name
Required
|
The name of the firewall rule. Required. |
parameters
Required
|
Parameters supplied to the create or update redis firewall rule operation. Is either a RedisFirewallRule type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
RedisFirewallRule or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Deletes a single firewall rule in a specified redis cache.
async delete(resource_group_name: str, cache_name: str, rule_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
cache_name
Required
|
The name of the Redis cache. Required. |
rule_name
Required
|
The name of the firewall rule. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets a single firewall rule in a specified redis cache.
async get(resource_group_name: str, cache_name: str, rule_name: str, **kwargs: Any) -> RedisFirewallRule
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
cache_name
Required
|
The name of the Redis cache. Required. |
rule_name
Required
|
The name of the firewall rule. Required. |
Returns
Type | Description |
---|---|
RedisFirewallRule or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets all firewall rules in the specified redis cache.
list(resource_group_name: str, cache_name: str, **kwargs: Any) -> AsyncIterable[RedisFirewallRule]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. The name is case insensitive. Required. |
cache_name
Required
|
The name of the Redis cache. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either RedisFirewallRule or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.redis.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\redis\\models\\__init__.py'>
Azure SDK for Python