ApiManagementServiceResource.CreateOrUpdateContentItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new developer portal's content item specified by the provided content type.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems/{contentItemId}
- Operation Id: ContentItem_CreateOrUpdate
- Default Api Version: 2021-08-01
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)
Parameters
- contentTypeId
- String
Content type identifier.
- contentItemId
- String
Content item identifier.
ETag of the Entity. Not required when creating an entity, but required when updating an entity.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
contentTypeId
or contentItemId
is an empty string, and was expected to be non-empty.
contentTypeId
or contentItemId
is null.
Applies to
Azure SDK for .NET
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för