Summary
Converts patch data to native config.
Description
Converts the config patch data into a readable native config.
Route
POST /configuration_manager/changes/convert
Roles
admin
apiread
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
deviceType |
string |
yes |
- |
changes |
array |
yes |
- |
Copied to Clipboard
{
"deviceType": "cisco-ios",
"changes": [
{
"parents": [
"parent line of config",
"parent line of config"
],
"old": null,
"new": "new config line"
}
]
}
Copied to Clipboard
{
"type": "object",
"properties": {
"deviceType": {
"title": "deviceType",
"type": "string",
"examples": [
"cisco-ios",
"cisco-ios-xr",
"cisco-nx",
"a10-acos",
"f5-big-ip"
]
},
"changes": {
"title": "changes",
"type": "array",
"items": {
"type": "object",
"properties": {
"parents": {
"type": "array",
"items": {
"type": "string",
"examples": [
"parent line of config"
]
}
},
"old": {
"anyOf": [
{
"const": null
},
{
"type": "string"
}
],
"examples": [
"old config line",
null
]
},
"new": {
"anyOf": [
{
"const": null
},
{
"type": "string"
}
],
"examples": [
"new config line",
null
]
}
}
}
}
},
"required": [
"deviceType",
"changes"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
configData |
object |
- |
Copied to Clipboard
{
"config": "interface Loopback01\n description loopback01",
"changes": []
}
Copied to Clipboard
{
"title": "configData",
"type": "object",
"properties": {
"config": {
"type": "string",
"examples": [
"interface Loopback01\n description loopback01"
]
},
"changes": {
"type": "array",
"items": {}
}
}
}