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": "172.17.0.2",
"commands": [
"pwd",
"pwd",
"pwd",
"show ip int brief"
],
"connection_options": {
"device_type": "cisco_ios",
"password": "password",
"port": 22,
"username": "root"
}
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"netmikoSendCommandParameters": {
"properties": {
"commands": {
"items": {
"type": "string",
"examples": [
"pwd",
"show ip int brief"
]
},
"type": "array"
},
"connection_options": {
"properties": {
"device_type": {
"examples": [
"cisco_ios"
],
"type": "string"
},
"password": {
"examples": [
"password"
],
"type": "string"
},
"port": {
"default": 22,
"example": 22,
"type": "integer"
},
"username": {
"examples": [
"root"
],
"type": "string"
}
},
"required": [
"device_type"
],
"type": "object"
},
"host": {
"examples": [
"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
{
"key": "status",
"status": "200"
}