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

ApiManagementProductResource.CheckProductApiEntityExists 方法

定义

检查标识符指定的 API 实体是否与 Product 实体相关联。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/products/{productId}/apis/{apiId}
  • 操作IdProductApi_CheckEntityExists
public virtual Azure.Response<bool> CheckProductApiEntityExists (string apiId, System.Threading.CancellationToken cancellationToken = default);
abstract member CheckProductApiEntityExists : string * System.Threading.CancellationToken -> Azure.Response<bool>
override this.CheckProductApiEntityExists : string * System.Threading.CancellationToken -> Azure.Response<bool>
Public Overridable Function CheckProductApiEntityExists (apiId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Boolean)

参数

apiId
String

API 修订标识符。 在当前API 管理服务实例中必须是唯一的。 非当前修订将 ;rev=n 作为后缀,其中 n 是修订号。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

apiId 是一个空字符串,预期为非空。

apiId 为 null。

适用于