Summary
Update a config parser.
Description
Update rules for a parser for breaking down configs in GC.
Route
PUT /configuration_manager/configurations/parser
Roles
admin
apiwrite
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
name |
string |
yes |
Name of the config parser. |
options |
object |
yes |
- |
Copied to Clipboard
{
"name": "Excepteur Lorem nulla id ad",
"options": {
"lexRules": [
[
"^}",
"close_statemen_block"
],
[
"^}",
"close_statemen_block"
],
[
"^}",
"close_statemen_block"
]
],
"template": "cisco-ios"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"name": {
"title": "name",
"type": "string",
"minLength": 1
},
"options": {
"title": "options",
"type": "object",
"properties": {
"lexRules": {
"type": "array",
"items": {
"title": "ruleDefinitions",
"type": "array",
"items": {
"type": "string"
},
"examples": [
[
"^{",
"open_statemen_block"
],
[
"^}",
"close_statemen_block"
]
]
}
},
"template": {
"type": "string",
"examples": [
"cisco-ios"
]
}
}
}
},
"required": [
"name",
"options"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
- |
Copied to Clipboard
{
"status": "Ut labore aute id exercitation",
"updated": 2021820.7871190757
}
Copied to Clipboard
{
"title": "result",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"updated": {
"type": "number"
}
}
}