Summary
restQuery Task
Description
Interface to make rest queries to NSO
Route
POST /nso_manager/restQuery/:adapterId
Roles
admin
Parameters
DetailsExampleSchema
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
DetailsExampleSchema
Name |
Type |
Description |
result |
array |
Array of results. |
Copied to Clipboard
{
"instance_data": {
"daiUOcvPdh": "incididunt voluptate aliqua irure culpa",
"zOKSNZeh": "labore ea in consequat",
"lcvmzm": "non in cupidatat ipsum",
"BRxHjax": "non proident nostrud ullamco exercitation",
"fDYsWLiJvN": "id dolore et consectetur est"
}
}