#Missing apis for worker versions?

5 messages · Page 1 of 1 (latest)

solemn ledge
#

I am working to setup deployment workflows, deploying preview versions with alias.
I got everything setup and its working great!

However, I cannot find any apis to get, delete or list these uploaded versions.
When listing deployments from this endpoint: https://developers.cloudflare.com/api/resources/workers/subresources/scripts/subresources/deployments/methods/list/
I do not see the the deployments from a versions uploads

Deployments do however have a versions property, however this property only has 1 element in its list.

Our devops would like to clean up old version uploads once its no longer needed, are there any plans to give us apis to get, delete and list versions?

#

I can see versions clearly in the api integrated into the cloudflare dashboard, with the tags and message I added.

I already tagged deployments with their pullrequest ID, making it easy for me to grab these when a pull request is deleted, and delete them.

solemn ledge
#

Yes! There is however no delete endpoint, which makes sense, since there is no delete button in the dashboard.
So, I guess my question is, how do I clean up these versions?

solid wadi
#

Checking with the team