你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

IUpdateBeta.WithFirewallRule 方法

定义

重载

WithFirewallRule(IRedisFirewallRule)

创建或更新 Redis 缓存防火墙规则,其中包含允许连接到缓存的 IP 地址范围。

WithFirewallRule(String, String, String)

创建或更新 Redis 缓存防火墙规则,其中包含允许连接到缓存的 IP 地址范围。

WithFirewallRule(IRedisFirewallRule)

创建或更新 Redis 缓存防火墙规则,其中包含允许连接到缓存的 IP 地址范围。

public Microsoft.Azure.Management.Redis.Fluent.RedisCache.Update.IUpdate WithFirewallRule(Microsoft.Azure.Management.Redis.Fluent.Models.IRedisFirewallRule rule);
abstract member WithFirewallRule : Microsoft.Azure.Management.Redis.Fluent.Models.IRedisFirewallRule -> Microsoft.Azure.Management.Redis.Fluent.RedisCache.Update.IUpdate
Public Function WithFirewallRule (rule As IRedisFirewallRule) As IUpdate

参数

rule
IRedisFirewallRule

防火墙规则,指定允许的 IP 地址范围中包含的名称、最低和最高 IP 地址。

返回

适用于

WithFirewallRule(String, String, String)

创建或更新 Redis 缓存防火墙规则,其中包含允许连接到缓存的 IP 地址范围。

public Microsoft.Azure.Management.Redis.Fluent.RedisCache.Update.IUpdate WithFirewallRule(string name, string lowestIp, string highestIp);
abstract member WithFirewallRule : string * string * string -> Microsoft.Azure.Management.Redis.Fluent.RedisCache.Update.IUpdate
Public Function WithFirewallRule (name As String, lowestIp As String, highestIp As String) As IUpdate

参数

name
String

规则名称。

lowestIp
String

范围中包含的最低 IP 地址。

highestIp
String

范围中包含的最高 IP 地址。

返回

适用于