Udostępnij za pośrednictwem


ApiManagementServiceResource.GetContentItems 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: 2023-03-01-preview
public virtual Azure.Pageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem> GetContentItems (string contentTypeId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetContentItems : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
override this.GetContentItems : string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.Models.ApiManagementContentItem>
Public Overridable Function GetContentItems (contentTypeId As String, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApiManagementContentItem)

Parameters

contentTypeId
String

Content type identifier.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A 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