FailoverPolicy Class
The failover policy for a given region of a database account.
Variables are only populated by the server, and will be ignored when sending a request.
- Inheritance
-
azure.mgmt.cosmosdb._serialization.ModelFailoverPolicy
Constructor
FailoverPolicy(*, location_name: str | None = None, failover_priority: int | None = None, **kwargs: Any)
Keyword-Only Parameters
Name | Description |
---|---|
location_name
|
The name of the region in which the database account exists. |
failover_priority
|
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
|
Variables
Name | Description |
---|---|
id
|
The unique identifier of the region in which the database account replicates to. Example: <accountName>-<locationName>. |
location_name
|
The name of the region in which the database account exists. |
failover_priority
|
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
|
Azure SDK for Python
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for