Search code examples
azuretransformationazure-api-managementazure-api-apps

how to pass ocp-apim-trace=true as a query parameter to Azure API Management


I need to get the trace of an API call. I'm unable to set headers while calling the API management but will be able to pass the parameters in the URL as query parameters. I'm passing the subscription key successfully in the URL as a query parameter. How do I pass the apim-trace in the url so that I could get the trace url back in the response headers. I have tried the below

  • trace = true
  • Trace=true
  • Apim-Trace=true

Solution

  • Not possible, it has to be a header.