DEV Community

Lorna Watson
Lorna Watson

Posted on

1

All deployments regardless of retention period?

I've asked in various places including Stackoverflow and at work this question but not getting anything back: how to get a list of all project deployments regardless of retention period (specifically using Octopus Deploy REST API)?

What I'm currently getting: a list of all project deployments as per retention period set.

I believe (might be wrong) it's retention period is set per environment as, for example, for project X I'm getting 2 Live deployments back and in the same project all (by default) of Branch Tests.

I'm wanting to get a list of all project deployments but, to me at least, seems odd I can't get just a list regardless of retention period.

This gets me a list of all deployments but still only get 2 for Live for instance.

HTTP GET: https://<base-url>/api/deployments

Does anyone have idea how to get around this? Or have I missed something? There is documentation online in general but not enough tbh and not this specific.

API Trace View

Struggling with slow API calls?

Dan Mindru walks through how he used Sentry's new Trace View feature to shave off 22.3 seconds from an API call.

Get a practical walkthrough of how to identify bottlenecks, split tasks into multiple parallel tasks, identify slow AI model calls, and more.

Read more →

Top comments (0)

nextjs tutorial video

📺 Youtube Tutorial Series

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay