Is there any API to add(tag) a masking job to a dSource?

  • 0
  • 1
  • Question
  • Updated 7 months ago
  • Answered
We have the option to add a masking job (list of masking job is there) to dSource in UI here: dSource configuration>Masking 
Is any API available to do the same?
Photo of anshul gupta

anshul gupta

  • 466 Points 250 badge 2x thumb

Posted 7 months ago

  • 0
  • 1
Photo of Mouhssine SAIDI

Mouhssine SAIDI

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

You have to explore the "operations" parameter look at the "/resources/json/delphix/source/$VDBREF", you will have to update the provisioning code to set a masking hooks.

 "operations": {            "type": "VirtualSourceOperations",
            "configureClone": [
                {
                    "type": "RunMaskingJobOnSourceOperation",
                    "name": "MASK DEV DB",
                    "applicationId": "EMPLOYEE APPLICATION",
                    "maskingJobId": "29"
                }
            ],
            "preRefresh": [],
            "postRefresh": [],
            "preRollback": [],
            "postRollback": [],
            "preSnapshot": [],
            "postSnapshot": [],
            "preStart": [],
            "postStart": [],
            "preStop": [],
            "postStop": []
        }

Here we set on configureclone event a masking job called "MASK DEV DB".


Regards,

Mouhssine
Photo of anshul gupta

anshul gupta

  • 466 Points 250 badge 2x thumb
Thank you.