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

Returning all releases #35

Closed
stefanstranger opened this issue Dec 7, 2017 · 3 comments
Closed

Returning all releases #35

stefanstranger opened this issue Dec 7, 2017 · 3 comments

Comments

@stefanstranger
Copy link
Contributor

stefanstranger commented Dec 7, 2017

It seems that the maximum of releases being returned using the get-vsteamrelease function is 100.

When I look at the API documentation the default value for the number of releases to get is 50.

https://www.visualstudio.com/en-us/docs/integrate/api/rm/releases

Any ideas why 100 is the maximum?

/Stefan

@DarqueWarrior
Copy link
Collaborator

Are you passing in a -Top?

@DarqueWarrior
Copy link
Collaborator

If you use -Verbose with any call you can see the actual request.

GET https://loecda.vsrm.visualstudio.com/DotCom/_apis/release/releases/?api-version=4.1-preview

The module is not setting top so any defaults set by the API should be honored. I will log a bug on the docs. You can override this with -Top parameter to reduce to whatever you want.

@kilasuit
Copy link

This should allow us to pull back all of the releases (even if via many requests using paginated responses) via an -All parameter

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

3 participants