Summary
Add a New Device
Description
Add a device to Device Adapter
Route
POST /device_management/add/:device
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
| Name |
Type |
Required |
Description |
| deviceInfo |
object |
yes |
JSON with name, host, address, port, authgroup, protocol, ned, device-type, and tenant |
Copied to Clipboard
{
"deviceInfo": {
"name": "a10-acos-1",
"host": "Local Host",
"address": "3000",
"port": "42",
"authgroup": "csr-aws",
"protocol": "protocol1",
"ned": "nso46",
"device-type": "type1",
"tenant": "tenant1"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"deviceInfo": {
"title": "deviceInfo",
"$ref": "deviceManagerDoc#/definitions/deviceInfo"
}
},
"required": [
"deviceInfo"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
| Name |
Type |
Description |
| result |
object |
Result of adding a new device |
Copied to Clipboard
{
"value": "success"
}
Copied to Clipboard
{
"title": "result",
"type": "object",
"properties": {
"value": {
"type": "string",
"examples": [
"success"
]
}
}
}