Database 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
Database() |
Initializes a new instance of the Database class. |
Database(String, String, String, String, Nullable<Int32>, String, String, String, String, Persistence, IList<Module>, DatabasePropertiesGeoReplication) |
Initializes a new instance of the Database class. |
Database()
Initializes a new instance of the Database class.
public Database ();
Public Sub New ()
Applies to
Database(String, String, String, String, Nullable<Int32>, String, String, String, String, Persistence, IList<Module>, DatabasePropertiesGeoReplication)
Initializes a new instance of the Database class.
public Database (string id = default, string name = default, string type = default, string clientProtocol = default, int? port = default, string provisioningState = default, string resourceState = default, string clusteringPolicy = default, string evictionPolicy = default, Microsoft.Azure.Management.RedisEnterprise.Models.Persistence persistence = default, System.Collections.Generic.IList<Microsoft.Azure.Management.RedisEnterprise.Models.Module> modules = default, Microsoft.Azure.Management.RedisEnterprise.Models.DatabasePropertiesGeoReplication geoReplication = default);
new Microsoft.Azure.Management.RedisEnterprise.Models.Database : string * string * string * string * Nullable<int> * string * string * string * string * Microsoft.Azure.Management.RedisEnterprise.Models.Persistence * System.Collections.Generic.IList<Microsoft.Azure.Management.RedisEnterprise.Models.Module> * Microsoft.Azure.Management.RedisEnterprise.Models.DatabasePropertiesGeoReplication -> Microsoft.Azure.Management.RedisEnterprise.Models.Database
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional clientProtocol As String = Nothing, Optional port As Nullable(Of Integer) = Nothing, Optional provisioningState As String = Nothing, Optional resourceState As String = Nothing, Optional clusteringPolicy As String = Nothing, Optional evictionPolicy As String = Nothing, Optional persistence As Persistence = Nothing, Optional modules As IList(Of Module) = Nothing, Optional geoReplication As DatabasePropertiesGeoReplication = Nothing)
Parameters
- 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"
- clientProtocol
- String
Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. Possible values include: 'Encrypted', 'Plaintext'
TCP port of the database endpoint. Specified at create time. Defaults to an available port.
- provisioningState
- String
Current provisioning status of the database. Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Updating', 'Deleting'
- resourceState
- String
Current resource status of the database. Possible values include: 'Running', 'Creating', 'CreateFailed', 'Updating', 'UpdateFailed', 'Deleting', 'DeleteFailed', 'Enabling', 'EnableFailed', 'Disabling', 'DisableFailed', 'Disabled'
- clusteringPolicy
- String
Clustering policy - default is OSSCluster. Specified at create time. Possible values include: 'EnterpriseCluster', 'OSSCluster'
- evictionPolicy
- String
Redis eviction policy - default is VolatileLRU. Possible values include: 'AllKeysLFU', 'AllKeysLRU', 'AllKeysRandom', 'VolatileLRU', 'VolatileLFU', 'VolatileTTL', 'VolatileRandom', 'NoEviction'
- persistence
- Persistence
Persistence settings
Optional set of redis modules to enable in this database - modules can only be added at creation time.
- geoReplication
- DatabasePropertiesGeoReplication
Optional set of properties to configure geo replication for this database.