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": "09a8c50d-99a8-76ce-0421-e491857b493e",
"nodeid": "dc0d3903-7d59-266a-85f3-d8bb97a1b48c",
"attribute": {
"xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"value": "minim qui est occaecat in"
}
}
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
{
"sitbb": -78678302.37032884,
"ullamco_4": 33633272.18773712,
"dolore1d": true,
"laborum61": "do nostrud deserunt reprehenderit"
}