The /deployments api doesn’t have a filter for date, but it has take which allows you to decide how many deployments to want to retrieve.
As for getting the name of the user who triggered the deployment, that info will be on the Event related to that deployment.
I’d recommend you to take a look at Octoposh which has a cmdlet called Get-OctopusDeployment that could help you here.
The cmdlet has a -before and -after filter that you can use to decide how far back in time you want to fetch deployments. While it doesn’t have a filter for “status”, the object it returns does have a Status property that you can filter once you have the deployments in memory. The below example shows how the object returned by this cmdlet looks like:
Thank you for the quick reply Dalmiro. We have a massive amount of
deployments (in the thousands). We are automating the build and tear down
of many environments, platforms and deployments.
I looked at Octoposh and the source and appreciate what is being done
there. I can get to what I need by processing these most likely, but
there will be a lot of noise.
In CI/CD scenarios, designers of the system very much want to see
deployments that WERE working and are recently broken so that we can halt
the pipeline and get the responsible party to fix it.
I can see how that feature would come in handy. Is there any chance you can submit that idea in Uservoice? If enough users in the community back that idea, we could definitely consider it for future updates.