次の方法で共有


IDatabaseAccountsOperations.FailoverPriorityChangeWithHttpMessagesAsync メソッド

定義

Azure Cosmos DB データベース アカウントのフェールオーバー優先度を変更します。 フェールオーバーの優先度が 0 の場合は、書き込みリージョンを示します。 フェールオーバー優先度の最大値 = (リージョンの合計数 - 1)。 フェールオーバー優先度の値は、データベース アカウントが存在するリージョンごとに一意である必要があります。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> FailoverPriorityChangeWithHttpMessagesAsync (string resourceGroupName, string accountName, Microsoft.Azure.Management.CosmosDB.Models.FailoverPolicies failoverParameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member FailoverPriorityChangeWithHttpMessagesAsync : string * string * Microsoft.Azure.Management.CosmosDB.Models.FailoverPolicies * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse>
Public Function FailoverPriorityChangeWithHttpMessagesAsync (resourceGroupName As String, accountName As String, failoverParameters As FailoverPolicies, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse)

パラメーター

resourceGroupName
String

リソース グループの名前。 名前の大文字と小文字は区別されます。

accountName
String

Cosmos DB データベース アカウント名。

failoverParameters
FailoverPolicies

データベース アカウントの新しいフェールオーバー ポリシー。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

操作が無効な状態コードを返したときにスローされます

必須パラメーターが null の場合にスローされます

適用対象