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

ApiResource.UpdateAsync(ETag, ApiPatch, CancellationToken) 方法

定义

汇报API 管理服务实例的指定 API。

  • 请求路径/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}
  • 操作IdApi_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.ApiResource>> UpdateAsync (Azure.ETag ifMatch, Azure.ResourceManager.ApiManagement.Models.ApiPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ETag * Azure.ResourceManager.ApiManagement.Models.ApiPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.ApiResource>>
override this.UpdateAsync : Azure.ETag * Azure.ResourceManager.ApiManagement.Models.ApiPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ApiManagement.ApiResource>>
Public Overridable Function UpdateAsync (ifMatch As ETag, patch As ApiPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ApiResource))

参数

ifMatch
ETag

实体的 ETag。 ETag 应与 GET 请求标头响应中的当前实体状态匹配,或者对于无条件更新,ETag 应为 *。

patch
ApiPatch

API 更新协定参数。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

patch 为 null。

适用于