question

RobinBacker-9956 avatar image
0 Votes"
RobinBacker-9956 asked RobinBacker-9956 answered

How can I search for multiple criteria in azure JSON?

Hello,

In "https://prices.azure.com/api/retail/prices?" I would like to search for five specific criteria:

  • meterName

  • productName

  • skuName

  • serviceName

  • location

The filter should only show if all the 5 criteria match.

How can I execute this?




azure-api-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RobinBacker-9956 avatar image
0 Votes"
RobinBacker-9956 answered

Sorry, I found the answer. You're supposed to used ''AND'' in the URL.

example:
https://prices.azure.com/api/retail/prices?$filter=meterName eq 'LRS Data Stored' and productName eq 'Tables' and skuName eq 'Standard LRS'
and serviceName eq 'Storage'

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.