ApiManagementServiceResource.GetContentItemsAsync Method

Definition

Lists developer portal's content items specified by the provided content type.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/contentTypes/{contentTypeId}/contentItems
  • Operation Id: ContentItem_ListByService
  • Default Api Version: 2021-08-01
public virtual Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem> GetContentItemsAsync (string contentTypeId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContentItemsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
override this.GetContentItemsAsync : string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
Public Overridable Function GetContentItemsAsync (contentTypeId As String, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of ApiManagementContentItem)

Parameters

contentTypeId
String

Content type identifier.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

An async collection of ApiManagementContentItem that may take multiple service requests to iterate over.

Exceptions

contentTypeId is an empty string, and was expected to be non-empty.

contentTypeId is null.

Applies to