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": "9715a288-556b-4e5c-ba51-193af39fbd62",
"nodeid": "d74318ce-7e3e-2d51-2912-a030dfbd6b6d",
"attribute": {
"xpath": "/ncs:devices/ncs:device[ncs:name='ios0']/ncs:config/ios:version",
"value": "ea magna"
}
}
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
{
"irurec2f": -30770986.661108688,
"fugiat_909": true,
"ex__4e": -97869586,
"magna_6": "fugiat aliquip proident aliqua non"
}