Skip to main content
Question

Get permissions of a job or pipeline from REST API?

  • December 13, 2022
  • 1 reply
  • 37 views

It happens often that a developer creates a pipeline and a job but forgets to give permissions to the team (sharing) so that the pipeline/job can be seen by others. When the job in PRD fails, we would have a big problem.

It would be nice if we can use a python script to query the REST API and retrieve permissions on each pipeline/job so that we can fix the sharing problem proactively.

Can the permission info for each pipeline/job be retrieved from the REST API? If the API cannot provide it, can the info be retrieved by other means?

Thanks a lot in advance! Have a great day!

wilsonshamim
StreamSets Employee
Forum|alt.badge.img+1
  • StreamSets Employee
  • December 14, 2022

Hi @jyuan ,

Yes there are APIs available to reterive and update ACLs. you can check these APIs under Rest API → pipeline Repository 

 

or you can also make use of python SDK:

https://docs.streamsets.com/sdk/latest/usage/sch/acl.html

 


Reply