次の方法で共有


ApiTagDescriptionCollection.CreateOrUpdateAsync メソッド

定義

API のスコープ内のタグの記述を作成または更新します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/tagDescriptions/{tagDescriptionId}
  • 操作IdApiTagDescription_CreateOrUpdate
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiTagDescriptionResource>> CreateOrUpdateAsync (Azure.WaitUntil waitUntil, string tagDescriptionId, Azure.ResourceManager.ApiManagement.Models.ApiTagDescriptionCreateOrUpdateContent content, Azure.ETag? ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.Models.ApiTagDescriptionCreateOrUpdateContent * Nullable<Azure.ETag> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiTagDescriptionResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ApiManagement.Models.ApiTagDescriptionCreateOrUpdateContent * Nullable<Azure.ETag> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ApiManagement.ApiTagDescriptionResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, tagDescriptionId As String, content As ApiTagDescriptionCreateOrUpdateContent, Optional ifMatch As Nullable(Of ETag) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ApiTagDescriptionResource))

パラメーター

waitUntil
WaitUntil

Completed メソッドがサービスで実行時間の長い操作が完了するまで戻るのを待機する必要がある場合。 Started 操作を開始した後に が返される場合は 。 実行時間の長い操作の詳細については、「 Azure.Core Long-Running 操作のサンプル」を参照してください。

tagDescriptionId
String

タグの説明識別子。 API/タグ関連付けの tagDescription を作成するときに使用されます。 API 名とタグ名に基づく。

content
ApiTagDescriptionCreateOrUpdateContent

パラメーターを作成します。

ifMatch
Nullable<ETag>

エンティティの ETag。 エンティティを作成する場合は必須ではありませんが、エンティティを更新する場合は必須です。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

tagDescriptionId は空の文字列であり、空でないと想定されていました。

tagDescriptionId または content が null です。

適用対象