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": "veniam",
"options": {
"lexRules": [
[
"^{",
"open_statemen_block"
],
[
"^{",
"open_statemen_block"
],
[
"^{",
"open_statemen_block"
],
[
"^}",
"close_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": "aliqua ex nulla voluptate",
"updated": 77404842.24888924
}
Copied to Clipboard
{
"title": "result",
"type": "object",
"properties": {
"status": {
"type": "string"
},
"updated": {
"type": "number"
}
}
}