User will need an admin or operator access for this API, Unauthorized users will get "401 Unauthorized"
Add and setup a device:
Omitted Boolean parameters are 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.
...
Available report actions via APIs
Add Device / Refresh Agents
Authorization:
Authentication: Basic authentication
Roles: it is recommended to read Role Based Access Control page for understanding build-in and custom roles permissions.
From CLI (example):
Code Block |
---|
curl -u username:password https://<dpod hostname>/op/api/v1/devices{{parameters}} |
Status | ||||
---|---|---|---|---|
|
Expand | ||
---|---|---|
|
...
|
...
|
...
|
...
|
...
|
...
Info |
---|
Error messages are issued for input validation errors , errors while inserting the device into derby/es and errors that happened during the device-level syslog setup, when an error happens during those steps - the transaction is rolled-back and the device is removed from DPOD, so the command can be issued again without failing on a duplicate device error. |
{
"resultCode": "ERROR",
"resultMessage": "A device with this name already exists, name=wdp6"
}
Warning - the operation started but stopped, we did not roll back the device or any setup done to this point, so the user will need to manually check what was setup and complete it manually.
{
"resultCode": "WARNING",
"resultMessage": "Error setting up WS-M agent for the following domains: Domain: APIMgmt_963162B289, Message: +DPOD WSM agent cannot be reached from the device. Error is: Cannot ping both host and IP address: TCP connection to \"10.0.0.38 port 60020\" failed (connection refused)"
}
Setup all devices' host aliases (for DR)
...
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
URL:POST - https:// |
Name | Is required | Description | Parameter Type | Data options |
---|---|---|---|---|
name | True | The gateway name in DPOD (must be identical to the System Identifier of the gateway) | String | |
host | True | IP Address used to access the gateway. | String | |
romaPort | True | The ROMA port configured on this gateway. | String | |
somaPort | True | The SOMA port configured on this gateway. | String | |
somaUser | True | The user name used to access the monitored devices via SOMA/ROMA. | String | |
somaPassword | True | The password of the user name used to access the monitored devices via SOMA/ROMA. | String |
|
logTargetAddressType | True | Log Target source address type. | String | |
logTargetAddress | True | IP Address or host alias. | String | |
disabledSamplings | True | Disabled Samplings | String |
|
syslogAgentName | True | Syslog agent name. | String | |
setupSyslogForDomains | True | Auto setup Syslog agents for new domains | String | true/false |
domainsAnalysisLevel | True | Log Target Analysis Level, see: Log Target Analysis Levels. | String | |
wsmAgentName | True | WS-M agent name. | String | |
setupWsmForDomains | True | Auto setup WS-M agents for new domains | String | |
setupCertificateMonitor | True | Use Certificate monitor | String | true/false |
autoSetupPattern | True | Domain pattern (use asterisk as wildcard) | String | |
autoSetupSyslogAgentName | True | Syslog agent name for new domains. | String | |
autoSetupWsmAgentName | True | WS-M agent name for new domains. | String | |
autoSetupAnalysisLevel | True | Log Target Analysis Level, see: Log Target Analysis Levels. | String | |
monitorTxInDefaultDomain | True | Monitor transactions in default domain. | String | true/false |
Authorization:
Required Permissions | More info |
---|---|
| See roles information here: Role Based Access Control |
Response:
Response Type | Example value | Description | ||
---|---|---|---|---|
Successful |
| Status code: 200 resultCode → SUCCESS resultMessage → “” |
Status | ||||
---|---|---|---|---|
|
Expand | ||
---|---|---|
| ||
This service method will disable all log targets, setup host aliases again and re-enable all log targets. URL:POST - https:// |
...
Warning - not all the operations were completed for one or more devices, the operation completed successfully for devices that are not mentioned.
...
Authorization:
Response:
|
...
|
...
|
...
The operation does not return an "ERROR" status.
...
|
*Setup all devices host aliases (for DR)