I’ve been trying to discover and edit my deployment process of different projects but for some reason i can’t seem to get some projects to show there deployment steps.
When i make a call to /api/deploymentprocesses?ids= i only get a result showing me an empty deployment process. When i make a call to /api/deploymentprocesses i get some projects (max 30 deployment processes) with ‘items’ in the result, but only for a select number of projects.
It almost appears that only a select project can show it steps, but not all.
When i try to make a call to /api/deploymentprocesses?ids= with a project id which results from /api/deploymentprocesses it shows individual steps in the result, but not if i try a different project number.
Is there a cap on how many projects can show it steps using the API, and how is that max number determined?
You are right. By default the “deploymentprocesses” api defaults to using the following two query strings ?skip=0&take=30.
This means “Skip the first 0 Deployment Processes, then take the next 30.”
If you have a look at the screenshots you’ve provided, there is a section called “links” within the results of the deploymentprocess api call. One of the links, “Page.All”, shows you the api call to pull the full list of items is: ?skip=0&take=2147483647
You should be able to append your deployment process api call with ?skip=0&take=2147483647&Ids=xxxxx
This will give you the items that match the Ids specified.
That solved my problem, partially…but i have it fixed now.
I was indeed working on the first 30 items only, but tried to play around with &take=0&skip=200 but didn’t get the right results (or at least 1 exact result with 0 items in it).
When i took a look at the Links section in those results that returned correctly, i saw on of the result stating that the complete URL to the deploymentprocess (which i wanted to grab) was actually /api/Spaces-1/deploymentprocesses/deploymentprocess-Projects-xxx".
That last part was what i did wrong. I had