API/Python/Open-Source Solutions

Expand all | Collapse all

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

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

    Posted 02-19-2018 10:59:00 AM
    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.
    #Masking


  • 2.  RE: How to get list of masking jobs available for a particular dSource through API?

    Posted 02-19-2018 11:15:00 AM
    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


  • 3.  RE: How to get list of masking jobs available for a particular dSource through API?

    Posted 02-19-2018 12:01:00 PM
    Hi,

    You can always use dxtoolkit for it.

    dx_get_maskingjob

    should do a work for you.

    regards,
    Marcin


  • 4.  RE: How to get list of masking jobs available for a particular dSource through API?

    Posted 02-19-2018 12:01:00 PM
    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


  • 5.  RE: How to get list of masking jobs available for a particular dSource through API?

    Posted 02-19-2018 12:08:00 PM
    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