Azure REST API - query parameters for getting all the virtual machine
问题 I want to query all the virtual Machines in a subscription, but I want to be able to filter using a query param and not by code. I am able to get all the virtual machines but I want to know if I can filter them and how. I am not using the classic REST but ARM. 回答1: If this is the API you use: https://management.azure.com/subscriptions/{subscription-id}/resources?&api-version={api-version} then you can use filter like this: ?$filter={filter} Your request will look like this: https://management