FailoverPolicy interface
資料庫帳戶指定區域的故障轉移原則。
屬性
failover |
區域的故障轉移優先順序。 故障轉移優先順序為 0 表示寫入區域。 故障轉移優先順序的最大值 = (區域總數 - 1)。 故障轉移優先順序值對於資料庫帳戶所在的每個區域都必須是唯一的。 |
id | 資料庫帳戶復寫至之區域的唯一標識碼。 範例:<accountName>-<locationName>。 注意:這個屬性不會串行化。 它只能由伺服器填入。 |
location |
資料庫帳戶所在的區域名稱。 |
屬性詳細資料
failoverPriority
區域的故障轉移優先順序。 故障轉移優先順序為 0 表示寫入區域。 故障轉移優先順序的最大值 = (區域總數 - 1)。 故障轉移優先順序值對於資料庫帳戶所在的每個區域都必須是唯一的。
failoverPriority?: number
屬性值
number
id
資料庫帳戶復寫至之區域的唯一標識碼。 範例:<accountName>-<locationName>。 注意:這個屬性不會串行化。 它只能由伺服器填入。
id?: string
屬性值
string
locationName
資料庫帳戶所在的區域名稱。
locationName?: string
屬性值
string