How to get list of masking jobs available for a particular dSource through API?

  • 0
  • 1
  • Question
  • Updated 3 months ago
We can create many masking job through Delphix masking engine. Same jobs can be tagged to a dSource in the Delphix Engine so that everytime provisioning happens, one of those masking job can be used. Can we get the list of masking jobs through API? Please provide example using curl command if possible.
Photo of anshul gupta

anshul gupta

  • 364 Points 250 badge 2x thumb
  • sad

Posted 3 months ago

  • 0
  • 1
Photo of Mouhssine SAIDI

Mouhssine SAIDI

  • 4,632 Points 4k badge 2x thumb
Hi Anshul,

You can use this call

$ curl -X GET -k http://delphix-server/resources/json/delphix/maskingjob
     -b ~/cookies.txt -H "Content-Type: application/json"

Regards,

Mouhssine
Photo of fMarcin Przepiorowski

fMarcin Przepiorowski, Employee

  • 400 Points 250 badge 2x thumb
Hi,

You can always use dxtoolkit for it.

dx_get_maskingjob

should do a work for you.

regards,
Marcin
Photo of anshul gupta

anshul gupta

  • 364 Points 250 badge 2x thumb
Hi Mouhssine,

Thank you for replying. Looks like this API fetches all masking jobs. Is there any API that fetches masking jobs tagged to a particular dSource? Kindly provide any link, if available, from documentation.

Thanks 
Anshul
Photo of Mouhssine SAIDI

Mouhssine SAIDI

  • 4,632 Points 4k badge 2x thumb
Hi Anshul,

Indeed, you have to filter the output based on the "associatedContainer" filed to get what you need, or as stated befor by Marcin you can use dxtoolkit.

Regards,

Mouhssine