你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ApiResource.GetApiProducts 方法

定义

列出 API 所属的全部产品。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/products
  • 操作IdApiProduct_ListByApis
public virtual Azure.Pageable<Azure.ResourceManager.ApiManagement.ApiManagementProductResource> GetApiProducts (string filter = default, int? top = default, int? skip = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetApiProducts : string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.ApiManagementProductResource>
override this.GetApiProducts : string * Nullable<int> * Nullable<int> * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ApiManagement.ApiManagementProductResource>
Public Overridable Function GetApiProducts (Optional filter As String = Nothing, Optional top As Nullable(Of Integer) = Nothing, Optional skip As Nullable(Of Integer) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ApiManagementProductResource)

参数

filter
String

|字段 |使用情况 |支持的运算符 |支持的函数 |</br>|-------------|-------------|-------------|-------------|</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>.

top
Nullable<Int32>

要返回的记录数。

skip
Nullable<Int32>

要跳过的记录数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

的集合 ApiManagementProductResource ,可能需要多个服务请求才能循环访问。

适用于