ITagsOperations.UpdateAtScopeWithHttpMessagesAsync メソッド

定義

リソースまたはサブスクリプションのタグのセットを選択的に更新します。

public System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Models.TagsResource>> UpdateAtScopeWithHttpMessagesAsync (string scope, Microsoft.Azure.Management.ResourceManager.Models.TagsPatchResource parameters, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAtScopeWithHttpMessagesAsync : string * Microsoft.Azure.Management.ResourceManager.Models.TagsPatchResource * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<Microsoft.Azure.Management.ResourceManager.Models.TagsResource>>
Public Function UpdateAtScopeWithHttpMessagesAsync (scope As String, parameters As TagsPatchResource, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureOperationResponse(Of TagsResource))

パラメーター

scope
String

リソース スコープ。

parameters
TagsPatchResource
customHeaders
Dictionary<String,List<String>>

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

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

例外

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

応答を逆シリアル化できない場合にスローされます

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

注釈

この操作により、指定したリソースまたはサブスクリプションのタグを置換、マージ、または選択的に削除できます。 指定したエンティティは、操作の最後に最大 50 個のタグを持つことができます。 'replace' オプションは、既存のタグのセット全体を新しいセットに置き換えます。 'merge' オプションを使用すると、新しい名前のタグを追加したり、既存の名前でタグの値を更新したりできます。 'delete' オプションを使用すると、特定の名前または名前と値のペアに基づいてタグを選択的に削除できます。

適用対象