Is it possible to get a list of only the subscriptions in a particular state e.g. tried this but it doesn't work:
https://*servicename*.management.azure-api.net/subscriptions/*serviceGUID*/resourceGroups/*resourceGroup*/providers/Microsoft.ApiManagement/service/*servicename*/users/1/subscriptions?$filter=properties/state%20eq%20'submitted'&api-version=2022-08-01
But this returns:
{
"error": {
"code": "ValidationError",
"message": "Filtering is not supported for property 'state'.",
"details": null
}
}
Obviously this would look like filtering isn't available on this property - but surely there must be a way of filtering it? Would've thought filtering out those in a particular state would be a desired feature. Am I just using the wrong approach?
Thanks
You need to use the below URL to filter the subscriptions in a particular
state
.URL-
I am sending the request as shown below and getting the expected output for the same.
In your case, you are using users/1 in the URL. Please correct your URL as per MS Docs, you will get the expected output too.