Summary
wrapper of send_command of netmiko
Description
wrapper of send_command of netmiko
Route
POST /automationgateway/netmiko/send_command
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
netmikoSendCommandParameters |
object |
yes |
- |
Copied to Clipboard
{
"netmikoSendCommandParameters": {
"host": "nulla laborum aute incididunt sunt",
"commands": [
"sed dolor consectetur"
],
"connection_options": {
"device_type": "in Lorem in",
"password": "exercitation incididunt Lorem",
"port": 22,
"username": "pariatur ex enim in"
}
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"netmikoSendCommandParameters": {
"properties": {
"commands": {
"example": [
"pwd",
"show ip int brief"
],
"items": {
"type": "string"
},
"type": "array"
},
"connection_options": {
"properties": {
"device_type": {
"example": "cisco_ios",
"type": "string"
},
"password": {
"example": "password",
"type": "string"
},
"port": {
"default": 22,
"example": 22,
"type": "integer"
},
"username": {
"example": "root",
"type": "string"
}
},
"required": [
"device_type"
],
"type": "object"
},
"host": {
"example": "172.17.0.2",
"type": "string"
}
},
"required": [
"host",
"commands",
"connection_options"
],
"type": "object"
}
},
"required": [
"netmikoSendCommandParameters"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
A JSON Object containing status, code and the result |
Copied to Clipboard
{
"title": "result",
"type": "object"
}