Summary
Set Leaf
Description
Set leaf and its values.
Route
POST /nso_manager/setLeaf/:adapterId
Roles
admin
Parameters
Details Example Schema
Name
Type
Required
Description
adapterId
string
yes
The host that the leaf should be applied to.
path
string
yes
The NSO (Network Services Orchestrator) path for the config. Wrap variable with !!.
value
string
yes
The value for the path. Wrap variables with !!.
variables
string
yes
Key value variable definition.
set
boolean
yes
True for create/update, False for delete.
dryRun
boolean
yes
True for dry-run, False for provision.
options
string
yes
Options: outformat, async, sync, no_overwrite, staging, dryrun.
Copied to Clipboard
{
"path": "/itential_commands/native2Pronghorn",
"value": "hostname%itential.com",
"variables": "action-type pyaction",
"set": false,
"dryRun": false,
"options": "async"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"path": {
"title": "path",
"type": "string",
"examples": [
"/itential_commands/native2Pronghorn"
]
},
"value": {
"type": "string",
"examples": [
"hostname%itential.com"
]
},
"variables": {
"type": "string",
"examples": [
"action-type pyaction"
]
},
"set": {
"type": "boolean"
},
"dryRun": {
"type": "boolean"
},
"options": {
"type": "string",
"title": "options",
"enum": [
"outformat",
"async",
"sync",
"no_overwrite",
"staging",
"dryrun"
]
}
},
"required": [
"path",
"value",
"variables",
"set",
"dryRun",
"options"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
status
object
Status of set leaf.
Copied to Clipboard
[
{
"action": "id ad ullamco ut eiusmod",
"path_raw": "nostrud occaecat nisi",
"path_evaluated": "ipsum aliqua elit",
"value_raw": "incididunt dolore nulla",
"value_evaluated": "sit est"
},
{
"action": "fugiat commodo",
"path_raw": "labore",
"path_evaluated": "culpa deserunt voluptate enim cillum",
"value_raw": "sed Lorem deserunt",
"value_evaluated": "irure anim Duis velit eu"
},
{
"action": "cillum deserunt mollit",
"path_raw": "aliquip voluptate aute ut Excepteur",
"path_evaluated": "veniam",
"value_raw": "anim cillum enim in",
"value_evaluated": "tempor ipsum non"
},
{
"action": "dolor",
"path_raw": "culpa proident commodo",
"path_evaluated": "exercitation nostrud",
"value_raw": "nostrud",
"value_evaluated": "ea"
},
{
"action": "tempor adipisicing quis reprehenderit",
"path_raw": "proident dolor",
"path_evaluated": "in do qui",
"value_raw": "sed consequat",
"value_evaluated": "sit anim velit cillum occaecat"
}
]
Copied to Clipboard
{
"oneOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"action": {
"type": "string",
"description": "Action taken by NSO"
},
"path_raw": {
"type": "string",
"description": "The raw path provided by the call"
},
"path_evaluated": {
"type": "string",
"description": "The path with all of the variables replaced"
},
"value_raw": {
"type": "string",
"description": "The value provided by the call"
},
"value_evaluated": {
"type": "string",
"description": "The vlaue with the variables replaced"
}
}
}
}
]
}