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": "7c0e7e82-df87-fe9b-fc51-74a234831c2d",
"nodeid": "06890b61-537d-dd2e-997a-def07b6615a2",
"attribute": {
"xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:ip/ios:default-gateway",
"value": "Lorem incididunt tempor non labore"
}
}
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
{
"occaecat_dd": 92164964.56800476,
"in_7a": false,
"cillum__0": "nisi est in non anim",
"velit8b": 93149522
}