KNIME API To get list of deployments

I am an admin on my Team within our KNIME Business hub. I am struggling trying to locate the correct Team ID value to pull back all of the deployments as a result for our Team.

I have tried to do this with the following API call that gets results but no value that try to use is getting a deployment result using the List KNIME Deployments node

https://api.prdknimebh.mycompany.com/knime/rest/v4/jobs

List Deployments in KNIME Hub Team – KNIME Community Hub

This is the fetch error on the node:

"RESTEASY003210: Could not find resource for full path: http://api.prdknimebh.mycompany.com/deployments/24e5313f-84a0-41b4-979c-926882b0eb37?&page=1
"

Any help on what step I am missing would be appreciated.

Hi @aehrenworth,

Thanks for bringing this question up in our forum for others to find help in the future. :slight_smile:

You’re already almost there. The only missing item may be the full scope (including account:team:), rather than just the ID:

https://api.hub.example.com/execution/deployments/account%3Ateam%3Aaaaaaaaa-bbbb-cccc-ddddeeeeffff

You can retrieve all teams you’re a member or admin of by making a request to

https://api.hub.example.com/accounts/accounts/identity

Hope this helps!

Kind regards
Marvin

A small side note for anyone ending up here who is new to our REST API: it is possible to read up on documentation and perform quick API tests via our Swagger UI, which is available on your hub at:

https://api.hub.example.com/api-doc/

(replace hub.example.com with your hub URL)

2 Likes

Thanks using the full team scope worked!

1 Like

One follow up: I am not finding the actual schedule parameters/details in the initial view is that store via a different request using the the schedule ID?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.