次の方法で共有


ApiManagementServiceResource.CreateOrUpdateContentItem メソッド

定義

指定されたコンテンツ タイプで指定された新しい開発者ポータルのコンテンツ アイテムを作成します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}
  • 操作IdContentItem_CreateOrUpdate
public virtual Azure.Response<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem> CreateOrUpdateContentItem (string contentTypeId, string contentItemId, Azure.ETag? ifMatch = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateContentItem : string * string * Nullable<Azure.ETag> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
override this.CreateOrUpdateContentItem : string * string * Nullable<Azure.ETag> * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
Public Overridable Function CreateOrUpdateContentItem (contentTypeId As String, contentItemId As String, Optional ifMatch As Nullable(Of ETag) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of ApiManagementContentItem)

パラメーター

contentTypeId
String

コンテンツ タイプ識別子。

contentItemId
String

コンテンツ アイテム識別子。

ifMatch
Nullable<ETag>

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

cancellationToken
CancellationToken

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

戻り値

例外

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

contentTypeId または contentItemId が null です。

適用対象