你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RedisResourceInner 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
RedisResourceInner()
初始化 RedisResourceInner 类的新实例。
public RedisResourceInner ();
Public Sub New ()
适用于
RedisResourceInner(String, Sku, String, String, String, IDictionary<String, String>, IDictionary<String,String>, Nullable<Boolean>, IDictionary<String, String>, Nullable<Int32>, String, String, String, String, String, String, Nullable<Int32>, Nullable<Int32>, RedisAccessKeysInner, IList<RedisLinkedServer>, IList<String>)
初始化 RedisResourceInner 类的新实例。
public RedisResourceInner (string location, Microsoft.Azure.Management.Redis.Fluent.Models.Sku sku, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IDictionary<string,string> redisConfiguration = default, bool? enableNonSslPort = default, System.Collections.Generic.IDictionary<string,string> tenantSettings = default, int? shardCount = default, string minimumTlsVersion = default, string subnetId = default, string staticIP = default, string redisVersion = default, string provisioningState = default, string hostName = default, int? port = default, int? sslPort = default, Microsoft.Azure.Management.Redis.Fluent.Models.RedisAccessKeysInner accessKeys = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Redis.Fluent.Models.RedisLinkedServer> linkedServers = default, System.Collections.Generic.IList<string> zones = default);
new Microsoft.Azure.Management.Redis.Fluent.Models.RedisResourceInner : string * Microsoft.Azure.Management.Redis.Fluent.Models.Sku * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * Nullable<bool> * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * string * string * string * string * string * string * Nullable<int> * Nullable<int> * Microsoft.Azure.Management.Redis.Fluent.Models.RedisAccessKeysInner * System.Collections.Generic.IList<Microsoft.Azure.Management.Redis.Fluent.Models.RedisLinkedServer> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Redis.Fluent.Models.RedisResourceInner
Public Sub New (location As String, sku As Sku, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional redisConfiguration As IDictionary(Of String, String) = Nothing, Optional enableNonSslPort As Nullable(Of Boolean) = Nothing, Optional tenantSettings As IDictionary(Of String, String) = Nothing, Optional shardCount As Nullable(Of Integer) = Nothing, Optional minimumTlsVersion As String = Nothing, Optional subnetId As String = Nothing, Optional staticIP As String = Nothing, Optional redisVersion As String = Nothing, Optional provisioningState As String = Nothing, Optional hostName As String = Nothing, Optional port As Nullable(Of Integer) = Nothing, Optional sslPort As Nullable(Of Integer) = Nothing, Optional accessKeys As RedisAccessKeysInner = Nothing, Optional linkedServers As IList(Of RedisLinkedServer) = Nothing, Optional zones As IList(Of String) = Nothing)
参数
- location
- String
资源所在的地理位置
- sku
- Sku
要部署的 Redis 缓存的 SKU。
- id
- String
- name
- String
- type
- String
- tags
- IDictionary<String,String>
资源标记。
- redisConfiguration
- IDictionary<String,String>
所有 Redis 设置。 几个可能的密钥:rdb-backup-enabled、rdb-storage-connection-string、rdb-backup-frequency、maxmemory-delta、maxmemory-policy、notify-keyspace-events、maxmemory-samples、slowlog-log-slow-slow-than、slowlog-max-len ,list-max-ziplist-entries,list-max-ziplist-value,hash-max-ziplist-entries,hash-max-ziplist-value,set-max-intset-entries,zset-max-ziplist-entries,zset-max-ziplist-value 等。
- tenantSettings
- IDictionary<String,String>
租户设置字典
- minimumTlsVersion
- String
可选:要求客户端使用指定的 TLS 版本 (或更高版本) 来连接 (,例如“1.0”、“1.1”、“1.2”) 。 可能的值包括:“1.0”、“1.1”、“1.2”
- subnetId
- String
虚拟网络中要在其中部署 Redis 缓存的子网的完整资源 ID。 示例格式:/subscriptions/{subid}/resourceGroups/{resourceGroupName}/Microsoft。{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
- staticIP
- String
静态 IP 地址。 在现有 Azure 虚拟网络中部署 Redis 缓存时是必需的。
- redisVersion
- String
Redis 版本。
- provisioningState
- String
Redis 实例预配状态。 可能的值包括:“Create”、“删除”、“Disabled”、“Failed”、“Linking”、“Provisioning”、“RecoveringScaleFailure”、“Scaling”、“Succeeded”、“Unlinking”、“Unprovisioning”、“Updateing”
- hostName
- String
Redis 主机名。
- accessKeys
- RedisAccessKeysInner
Redis 缓存的键 - 如果此对象不是对创建或更新 redis 缓存的响应,则不设置
- linkedServers
- IList<RedisLinkedServer>
与缓存关联的链接服务器列表