Quantcast
Channel: THWACK: All Content - Orion SDK
Viewing all articles
Browse latest Browse all 2677

Use SDK to assign credentials and run NCM job

$
0
0

Hello,

I am trying to programmatically run NCM jobs via the SDK.  The primary reason is because I am trying to increase the security of how I run jobs.  I want to create a script that runs jobs only with the lowest rights credentials (on the target system) that are needed to perform the task.  I can see verbs that start and update jobs, but I don't see a place where I can change the credentials other than in the NCM.NodeProperties table. So would I need to create a script that:

 

1) Selects the Nodes in Question

2) Updates the Connection Profile ID to what I want to use

3) Run the Job via StartJob verb in Cirrus.NCM_NCMJobs

4) Check for Job Completion (GetJobStatus verb)

5) Change ConnectionProfile back (if needed)

 

I have a few questions.  What do these verbs above need for inputs, just the JobID?  I see the value in the table but wanted to check if it needed anything else.

Also what does the UpdateJob/CreateJob need?

Where is the connectionProfile information stored?  I don't see it in the NCM, or Cirrus tables.

 

Thanks


Viewing all articles
Browse latest Browse all 2677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>