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 dolore in amet id",
"options": {
"lexRules": [
[
"^{",
"open_statemen_block"
],
[
"^{",
"open_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": "incididunt aliqua magna voluptate",
"updated": 23106791.02820599
}
Copied to Clipboard
{
"title": "result",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"updated": {
"type": "number"
}
}
}