Summary
restQuery Task
Description
Interface to make rest queries to NSO
Route
POST /nso_manager/restQuery/:adapterId
Roles
admin
Parameters
Details Example Schema
Name
Type
Required
Description
adapterId
string
yes
Name of the adapter instance.
params
object
yes
Parameters such as path and content-type
Copied to Clipboard
{
"params": {
"path": "/restconf/data/tailf-ncs:devices/commit-queue",
"accept": "application/yang-data+json"
}
}
Copied to Clipboard
{
"type": "object",
"properties": {
"params": {
"properties": {
"path": {
"type": "string",
"examples": [
"/api/operational/devices/commit-queue?deep",
"/restconf/data/tailf-ncs:devices/commit-queue"
]
},
"accept": {
"type": "string",
"examples": [
"application/vnd.yang.data+json",
"application/yang-data+json"
]
}
},
"required": [
"path",
"accept"
]
}
},
"required": [
"params"
],
"additionalProperties": false
}
Return
Details Example Schema
Name
Type
Description
result
array
Array of results.
Copied to Clipboard
{
"instance_data": {
"WbXK": "cillum",
"L": "id",
"qxWW": "anim nisi ipsum laborum consectetur",
"WgGeNaLc": "nostrud amet",
"diYDSW": "in quis enim ut dolore"
}
}