...
Add and setup a device:
Omitted boolean paramters Boolean parameters are persumed presumed to be false, it's not allowed to setup wsm without setting up log targets
Omit the autoSetupAgentNameand autoSetupPattern parameters if you do not wish to use the automatic domain setup feature.
POST /op/api/v1/devices?name=wdp6&host=10.0.0.13&somaPort=5550&somaUser=admin&somaPasssomaPassword=password&logtargetAddresslogTargetAddress=10.0.0.13&monitorResources=false&monitorServices=true&syslogAgentName=MonTier-SyslogAgent-1&setupSyslogForDomains=true&wsmAgentName=MonTier-WsmAgent-1&setupWsmForDomains=true&setupCertificateMonitor=true&autoSetupPattern=APIMgmt*&autoSetupAgentName=MonTier-SyslogAgent-1
{
"resultCode": "SUCCESS",
"resultMessage": ""
}
...
Setup all devices' host aliases (For for DR)
For all devices - Disable disable all log targets, setup syslog and wsm host aliases and re-enable all log targets.
If the device cannot be reached - it will be skipped, .
Errors or exceptions will not stop the operation.
POST /op/api/v1/devices/updateLogTargetsrefreshAgents
{
"resultCode": "SUCCESS"
}
Warning - not all the operations were completed for one or more devices, the operation completed successfully for devices that are not mentioned.
{
"resultCode": "WARNING",
"resultMessage": "Device=adp: Could not connect to device, skipping device, Exception=Could not connect to host. "
}
The operation does not return an "ERROR" status.