ArmCosmosDBModelFactory.CosmosDBFailoverPolicy Method
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.
Initializes a new instance of CosmosDBFailoverPolicy.
public static Azure.ResourceManager.CosmosDB.Models.CosmosDBFailoverPolicy CosmosDBFailoverPolicy (string id = default, Azure.Core.AzureLocation? locationName = default, int? failoverPriority = default);
static member CosmosDBFailoverPolicy : string * Nullable<Azure.Core.AzureLocation> * Nullable<int> -> Azure.ResourceManager.CosmosDB.Models.CosmosDBFailoverPolicy
Public Shared Function CosmosDBFailoverPolicy (Optional id As String = Nothing, Optional locationName As Nullable(Of AzureLocation) = Nothing, Optional failoverPriority As Nullable(Of Integer) = Nothing) As CosmosDBFailoverPolicy
Parameters
- id
- String
The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>.
- locationName
- Nullable<AzureLocation>
The name of the region in which the database account exists.
The failover priority of the region. A failover priority of 0 indicates a write region. The maximum value for a failover priority = (total number of regions - 1). Failover priority values must be unique for each of the regions in which the database account exists.
Returns
A new CosmosDBFailoverPolicy instance for mocking.
Applies to
Azure SDK for .NET