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

ApiResource.GetApiSchema(String, CancellationToken) 方法

定义

获取 API 级别的架构配置。

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

参数

schemaId
String

架构 ID 标识符。 在当前API 管理服务实例中必须是唯一的。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

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

schemaId 为 null。

适用于