This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

Using Credentials Saved in Orion for Deploying Agent via API

Is there a way to reference a saved credential (via CredentialID, the same way SNMPv3 discovery works) instead of specifying the credentials in the script?

Method given in OrionSDK sample:

Invoke-SwisVerb $swis Orion.AgentManagement.Agent Deploy @(
$engineId,`
$agentName,`
$hostname,`
$ip,`
$machineUsername,`
$machinePassword)

What I'm thinking:

Invoke-SwisVerb $swis Orion.AgentManagement.Agent Deploy @(
$engineId,`
$agentName,`
$hostname,`
$ip,`
$credentialId)