Summary
Updates an attribute
Description
Updates a rule attribute attached to a leaf.
Route
POST /golden_config/updateLeaf
Roles
admin
engineering
support
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
tree |
string |
yes |
Tree's ID. |
nodeid |
string |
yes |
Node's ID. |
attribute |
object |
yes |
Attributes data. |
Copied to Clipboard
{
"tree": "26a7a7ce-e340-4786-4b62-8e46dec038fc",
"nodeid": "fded6013-cbf7-6a30-a228-652b128148e6",
"attribute": {
"xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"value": "fugiat Ut irure"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"tree": {
"$ref": "IDType"
},
"nodeid": {
"$ref": "IDType"
},
"attribute": {
"type": "object",
"properties": {
"xpath": {
"type": "string",
"examples": [
"/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version"
]
},
"value": {
"type": "string"
}
},
"required": [
"xpath",
"value"
]
}
},
"required": [
"tree",
"nodeid",
"attribute"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
data |
object |
Updated rules. |
Copied to Clipboard
{
"exercitation1bd": false,
"qui_0d": 28957812.77088125,
"eu_e7": 61288624,
"commodo7": false
}