How can I add headers and query parameters to an APIM operation using the Azure CLI. I know how to do this with the REST API, so I was wondering if this is possible at all.
Asked
Active
Viewed 863 times
1 Answers
1
You can add headers
or queryParameters
with these calls:
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"
where key value pairs to be used for headers
and queryParameters
are documented here

Kai Walter
- 3,485
- 2
- 32
- 62