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": "867fcb54-af3a-0c59-1add-858ae95dd82d",
"nodeid": "df944ff5-a9e1-3686-e09b-1269785d1665",
"attribute": {
"xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:hostname",
"value": "sunt ullamco minim sint do"
}
}
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
{
"idc": 9284379.502843663,
"cupidatat_2": 19223585.51901211,
"ametf_": "in ut aliquip",
"dolore_3_": "quis cupidatat do sit"
}