Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameters in Resources#List does not work #51

Open
ArcturusZhang opened this issue Aug 15, 2019 · 2 comments
Open

Parameters in Resources#List does not work #51

ArcturusZhang opened this issue Aug 15, 2019 · 2 comments

Comments

@ArcturusZhang
Copy link

ArcturusZhang commented Aug 15, 2019

When I call the rest api by using command:

armclient get "/subscriptions/<subscriptionId>/resources?$top=2&api-version=2018-05-01&$filter=resourceType eq 'Microsoft.Compute/virtualMachines'"

gets a full list unfiltered, which is not the result I expected.
Expected result should be a response with 2 entries of filtered resources and a string called nextLink referring to a url that I can get next 2 entries of the results.

Thanks in advance.

@suwatch
Copy link
Member

suwatch commented Oct 25, 2019

Mind add env ARMCLIENT_VERBOSE = 1 and run command again. See if the Request Url on the output looks correct.

@ArcturusZhang
Copy link
Author

ArcturusZhang commented Oct 28, 2019

Hi @suwatch I tried again with this env.
The request URI showed is

GET /subscriptions/<subsID>/resources?=2&api-version=2018-05-01&=resourceType%20eq%20'Microsoft.Compute/virtualMachines' HTTP/1.1

which seems incorrect. How could I resolve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants