你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RedisResource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
RedisResource()
Initializes a new instance of the RedisResource class.
public RedisResource ();
Public Sub New ()
Applies to
RedisResource(String, Sku, String, String, String, IDictionary<String, String>, IList<String>, ManagedServiceIdentity, String, String, RedisCommonPropertiesRedisConfiguration, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, IDictionary<String,String>, Nullable<Int32>, String, String, Nullable<Boolean>, String, String, String, Nullable<Int32>, Nullable<Int32>, RedisAccessKeys, IList<RedisLinkedServer>, IList<RedisInstanceDetails>, IList<PrivateEndpointConnection>)
Initializes a new instance of the RedisResource class.
public RedisResource (string location, Microsoft.Azure.Management.RedisCache.Models.Sku sku, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IList<string> zones = default, Microsoft.Azure.Management.RedisCache.Models.ManagedServiceIdentity identity = default, string updateChannel = default, string provisioningState = default, Microsoft.Azure.Management.RedisCache.Models.RedisCommonPropertiesRedisConfiguration redisConfiguration = default, string redisVersion = default, bool? enableNonSslPort = default, int? replicasPerMaster = default, int? replicasPerPrimary = default, System.Collections.Generic.IDictionary<string,string> tenantSettings = default, int? shardCount = default, string minimumTlsVersion = default, string publicNetworkAccess = default, bool? disableAccessKeyAuthentication = default, string subnetId = default, string staticIP = default, string hostName = default, int? port = default, int? sslPort = default, Microsoft.Azure.Management.RedisCache.Models.RedisAccessKeys accessKeys = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.RedisLinkedServer> linkedServers = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.RedisInstanceDetails> instances = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.PrivateEndpointConnection> privateEndpointConnections = default);
new Microsoft.Azure.Management.RedisCache.Models.RedisResource : string * Microsoft.Azure.Management.RedisCache.Models.Sku * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.RedisCache.Models.ManagedServiceIdentity * string * string * Microsoft.Azure.Management.RedisCache.Models.RedisCommonPropertiesRedisConfiguration * string * Nullable<bool> * Nullable<int> * Nullable<int> * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * string * string * Nullable<bool> * string * string * string * Nullable<int> * Nullable<int> * Microsoft.Azure.Management.RedisCache.Models.RedisAccessKeys * System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.RedisLinkedServer> * System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.RedisInstanceDetails> * System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.PrivateEndpointConnection> -> Microsoft.Azure.Management.RedisCache.Models.RedisResource
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 zones As IList(Of String) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional updateChannel As String = Nothing, Optional provisioningState As String = Nothing, Optional redisConfiguration As RedisCommonPropertiesRedisConfiguration = Nothing, Optional redisVersion As String = Nothing, Optional enableNonSslPort As Nullable(Of Boolean) = Nothing, Optional replicasPerMaster As Nullable(Of Integer) = Nothing, Optional replicasPerPrimary As Nullable(Of Integer) = Nothing, Optional tenantSettings As IDictionary(Of String, String) = Nothing, Optional shardCount As Nullable(Of Integer) = Nothing, Optional minimumTlsVersion As String = Nothing, Optional publicNetworkAccess As String = Nothing, Optional disableAccessKeyAuthentication As Nullable(Of Boolean) = Nothing, Optional subnetId As String = Nothing, Optional staticIP 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 RedisAccessKeys = Nothing, Optional linkedServers As IList(Of RedisLinkedServer) = Nothing, Optional instances As IList(Of RedisInstanceDetails) = Nothing, Optional privateEndpointConnections As IList(Of PrivateEndpointConnection) = Nothing)
Parameters
- location
- String
The geo-location where the resource lives
- sku
- Sku
The SKU of the Redis cache to deploy.
- id
- String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
The name of the resource
- type
- String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- tags
- IDictionary<String,String>
Resource tags.
- identity
- ManagedServiceIdentity
The identity of the resource.
- updateChannel
- String
Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'. Possible values include: 'Stable', 'Preview'
- provisioningState
- String
Redis instance provisioning status. Possible values include: 'Creating', 'Deleting', 'Disabled', 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', 'Scaling', 'Succeeded', 'Unlinking', 'Unprovisioning', 'Updating', 'ConfiguringAAD'
- redisConfiguration
- RedisCommonPropertiesRedisConfiguration
All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
- redisVersion
- String
Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
Specifies whether the non-ssl Redis server port (6379) is enabled.
- tenantSettings
- IDictionary<String,String>
A dictionary of tenant settings
- minimumTlsVersion
- String
Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2') Possible values include: '1.0', '1.1', '1.2'
- publicNetworkAccess
- String
Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' Possible values include: 'Enabled', 'Disabled'
Authentication to Redis through access keys is disabled when set as true. Default value is false.
- subnetId
- String
The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
- staticIP
- String
Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
- hostName
- String
Redis host name.
- accessKeys
- RedisAccessKeys
The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache
- linkedServers
- IList<RedisLinkedServer>
List of the linked servers associated with the cache
- instances
- IList<RedisInstanceDetails>
List of the Redis instances associated with the cache
- privateEndpointConnections
- IList<PrivateEndpointConnection>
List of private endpoint connection associated with the specified redis cache
Applies to
RedisResource(String, Sku, String, String, String, IDictionary<String, String>, IList<String>, ManagedServiceIdentity, String, String, RedisCommonPropertiesRedisConfiguration, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Int32>, IDictionary<String,String>, Nullable<Int32>, String, String, Nullable<Boolean>, String, String, String, String, Nullable<Int32>, Nullable<Int32>, RedisAccessKeys, IList<RedisLinkedServer>, IList<RedisInstanceDetails>, IList<PrivateEndpointConnection>)
Initializes a new instance of the RedisResource class.
public RedisResource (string location, Microsoft.Azure.Management.RedisCache.Models.Sku sku, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IList<string> zones = default, Microsoft.Azure.Management.RedisCache.Models.ManagedServiceIdentity identity = default, string updateChannel = default, string provisioningState = default, Microsoft.Azure.Management.RedisCache.Models.RedisCommonPropertiesRedisConfiguration redisConfiguration = default, string redisVersion = default, bool? enableNonSslPort = default, int? replicasPerMaster = default, int? replicasPerPrimary = default, System.Collections.Generic.IDictionary<string,string> tenantSettings = default, int? shardCount = default, string minimumTlsVersion = default, string publicNetworkAccess = default, bool? disableAccessKeyAuthentication = default, string zonalAllocationPolicy = default, string subnetId = default, string staticIP = default, string hostName = default, int? port = default, int? sslPort = default, Microsoft.Azure.Management.RedisCache.Models.RedisAccessKeys accessKeys = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.RedisLinkedServer> linkedServers = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.RedisInstanceDetails> instances = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.PrivateEndpointConnection> privateEndpointConnections = default);
new Microsoft.Azure.Management.RedisCache.Models.RedisResource : string * Microsoft.Azure.Management.RedisCache.Models.Sku * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<string> * Microsoft.Azure.Management.RedisCache.Models.ManagedServiceIdentity * string * string * Microsoft.Azure.Management.RedisCache.Models.RedisCommonPropertiesRedisConfiguration * string * Nullable<bool> * Nullable<int> * Nullable<int> * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * string * string * Nullable<bool> * string * string * string * string * Nullable<int> * Nullable<int> * Microsoft.Azure.Management.RedisCache.Models.RedisAccessKeys * System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.RedisLinkedServer> * System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.RedisInstanceDetails> * System.Collections.Generic.IList<Microsoft.Azure.Management.RedisCache.Models.PrivateEndpointConnection> -> Microsoft.Azure.Management.RedisCache.Models.RedisResource
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 zones As IList(Of String) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional updateChannel As String = Nothing, Optional provisioningState As String = Nothing, Optional redisConfiguration As RedisCommonPropertiesRedisConfiguration = Nothing, Optional redisVersion As String = Nothing, Optional enableNonSslPort As Nullable(Of Boolean) = Nothing, Optional replicasPerMaster As Nullable(Of Integer) = Nothing, Optional replicasPerPrimary As Nullable(Of Integer) = Nothing, Optional tenantSettings As IDictionary(Of String, String) = Nothing, Optional shardCount As Nullable(Of Integer) = Nothing, Optional minimumTlsVersion As String = Nothing, Optional publicNetworkAccess As String = Nothing, Optional disableAccessKeyAuthentication As Nullable(Of Boolean) = Nothing, Optional zonalAllocationPolicy As String = Nothing, Optional subnetId As String = Nothing, Optional staticIP 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 RedisAccessKeys = Nothing, Optional linkedServers As IList(Of RedisLinkedServer) = Nothing, Optional instances As IList(Of RedisInstanceDetails) = Nothing, Optional privateEndpointConnections As IList(Of PrivateEndpointConnection) = Nothing)
Parameters
- location
- String
The geo-location where the resource lives
- sku
- Sku
The SKU of the Redis cache to deploy.
- id
- String
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
The name of the resource
- type
- String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- tags
- IDictionary<String,String>
Resource tags.
- identity
- ManagedServiceIdentity
The identity of the resource.
- updateChannel
- String
Optional: Specifies the update channel for the monthly Redis updates your Redis Cache will receive. Caches using 'Preview' update channel get latest Redis updates at least 4 weeks ahead of 'Stable' channel caches. Default value is 'Stable'. Possible values include: 'Stable', 'Preview'
- provisioningState
- String
Redis instance provisioning status. Possible values include: 'Creating', 'Deleting', 'Disabled', 'Failed', 'Linking', 'Provisioning', 'RecoveringScaleFailure', 'Scaling', 'Succeeded', 'Unlinking', 'Unprovisioning', 'Updating', 'ConfiguringAAD'
- redisConfiguration
- RedisCommonPropertiesRedisConfiguration
All Redis Settings. Few possible keys: rdb-backup-enabled,rdb-storage-connection-string,rdb-backup-frequency,maxmemory-delta, maxmemory-policy,notify-keyspace-events, aof-backup-enabled, aof-storage-connection-string-0, aof-storage-connection-string-1 etc.
- redisVersion
- String
Redis version. This should be in the form 'major[.minor]' (only 'major' is required) or the value 'latest' which refers to the latest stable Redis version that is available. Supported versions: 4.0, 6.0 (latest). Default value is 'latest'.
Specifies whether the non-ssl Redis server port (6379) is enabled.
- tenantSettings
- IDictionary<String,String>
A dictionary of tenant settings
- minimumTlsVersion
- String
Optional: requires clients to use a specified TLS version (or higher) to connect (e,g, '1.0', '1.1', '1.2') Possible values include: '1.0', '1.1', '1.2'
- publicNetworkAccess
- String
Whether or not public endpoint access is allowed for this cache. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled' Possible values include: 'Enabled', 'Disabled'
Authentication to Redis through access keys is disabled when set as true. Default value is false.
- zonalAllocationPolicy
- String
Optional: Specifies how availability zones are allocated to the Redis cache. 'Automatic' enables zone redundancy and Azure will automatically select zones based on regional availability and capacity. 'UserDefined' will select availability zones passed in by you using the 'zones' parameter. 'NoZones' will produce a non-zonal cache. If 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when zones are passed in, otherwise, it will be set to 'Automatic' in regions where zones are supported and 'NoZones' in regions where zones are not supported. Possible values include: 'Automatic', 'UserDefined', 'NoZones'
- subnetId
- String
The full resource ID of a subnet in a virtual network to deploy the Redis cache in. Example format: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
- staticIP
- String
Static IP address. Optionally, may be specified when deploying a Redis cache inside an existing Azure Virtual Network; auto assigned by default.
- hostName
- String
Redis host name.
- accessKeys
- RedisAccessKeys
The keys of the Redis cache - not set if this object is not the response to Create or Update redis cache
- linkedServers
- IList<RedisLinkedServer>
List of the linked servers associated with the cache
- instances
- IList<RedisInstanceDetails>
List of the Redis instances associated with the cache
- privateEndpointConnections
- IList<PrivateEndpointConnection>
List of private endpoint connection associated with the specified redis cache