- Start your Apidog journey
- Sample APIs
- Selamat datangGET
- List PerangkatGET
- 01-Office (Juniper)GET
- 101-Office-configGET
- 102-Office-interfacesGET
- 103-Office-vlansGET
- 104-Office-arp-tableGET
- 105-Office-interfaces_ipGET
- 106-Office-environmentGET
- 107-Office-usersGET
- 02-Branch (Cisco)GET
- 201-Branch-configGET
- 202-Branch-interfacesGET
- 203-Branch-interfaces_ipGET
- 204-Branch-arp_tableGET
- 205-Branch-mac_address_tableGET
- 206-Branch-snmpGET
- 207-Branch-environmentGET
- 03-Home (Mikrotik)GET
- 04-Ruko (Mikrotik)GET
- 401-Ruko-interfacesGET
- 402-Ruko-interfaces_ipGET
- 403-Ruko-get_mac_address_tableGET
- 404-Ruko-snmpGET
- 405-Ruko-usersGET
101-Office-config
Developing
GET
/devices/office/napalm_get/config
Request
None
Responses
🟢200Success
application/json
Body
office
array [object {10}]Â
required
result
objectÂ
optional
host
objectÂ
optional
changed
booleanÂ
optional
diff
stringÂ
optional
failed
booleanÂ
optional
exception
nullÂ
optional
name
stringÂ
optional
severity_level
integerÂ
optional
stdout
nullÂ
optional
stderr
nullÂ
optional
Example
{
"office": [
{
"result": {
"config": {
"startup": "",
"running": "\n## Last commit: 2025-02-14 20:25:48 UTC by ash\nversion 12.1R1.9;\nsystem {\n root-authentication {\n encrypted-password \"$1$nQtZvs10$CCuZdADjE6iEwdZTyuSgJ0\";\n }\n login {\n user ash {\n uid 2000;\n class super-user;\n authentication {\n encrypted-password \"$1$swXZxB31$U0DKZdZZugrR1kVlb4vPK1\";\n }\n }\n }\n services {\n ssh {\n root-login allow;\n protocol-version v2;\n connection-limit 10;\n }\n }\n syslog {\n user * {\n any emergency;\n }\n file messages {\n any notice;\n authorization info;\n }\n file interactive-commands {\n interactive-commands any;\n }\n }\n}\ninterfaces {\n em0 {\n vlan-tagging;\n unit 100 {\n vlan-id 100;\n family inet {\n address 10.200.251.2/24;\n }\n }\n }\n}\nrouting-options {\n static {\n route 0.0.0.0/0 {\n next-hop 10.200.251.1;\n resolve;\n }\n }\n}\n",
"candidate": "\n## Last changed: 2025-02-14 20:25:48 UTC\nversion 12.1R1.9;\nsystem {\n root-authentication {\n encrypted-password \"$1$nQtZvs10$CCuZdADjE6iEwdZTyuSgJ0\";\n }\n login {\n user ash {\n uid 2000;\n class super-user;\n authentication {\n encrypted-password \"$1$swXZxB31$U0DKZdZZugrR1kVlb4vPK1\";\n }\n }\n }\n services {\n ssh {\n root-login allow;\n protocol-version v2;\n connection-limit 10;\n }\n }\n syslog {\n user * {\n any emergency;\n }\n file messages {\n any notice;\n authorization info;\n }\n file interactive-commands {\n interactive-commands any;\n }\n }\n}\ninterfaces {\n em0 {\n vlan-tagging;\n unit 100 {\n vlan-id 100;\n family inet {\n address 10.200.251.2/24;\n }\n }\n }\n}\nrouting-options {\n static {\n route 0.0.0.0/0 {\n next-hop 10.200.251.1;\n resolve;\n }\n }\n}\n"
}
},
"host": {},
"changed": false,
"diff": "",
"failed": false,
"exception": null,
"name": "Get office config",
"severity_level": 20,
"stdout": null,
"stderr": null
}
]
}
Modified at 2025-02-22 00:14:14