【问题标题】:Azure API Management - Adding header and query parameters to APIM operation using Azure CLIAzure API 管理 - 使用 Azure CLI 将标头和查询参数添加到 APIM 操作
【发布时间】:2021-04-12 19:44:06
【问题描述】:

如何使用 Azure CLI 将标头和查询参数添加到 APIM 操作。我知道如何使用 REST API 做到这一点,所以我想知道这是否可能。

【问题讨论】:

    标签: azure-api-management apim


    【解决方案1】:

    您可以通过这些调用添加headersqueryParameters

    az apim api operation update --api-id my-api-id --operation-id my-operation-id -g my-rg -n my-apim-service-name --add request.headers name="test" type="string"
    
    az apim api operation update --api-id my-api-id --operation-id my-operation-id -g my-rg -n my-apim-service-name --add request.queryParameters name="test" type="string"
    

    用于headersqueryParameters 的键值对记录在here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-22
      • 2020-07-06
      • 2018-12-05
      相关资源
      最近更新 更多