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": "/api/operational/devices/commit-queue?deep",
"accept": "application/vnd.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": {
"dwzyhpF": "laborum",
"CaAvKShU": "voluptate",
"DktsCHHbTjT": "Ut nulla fugiat",
"vFl": "Duis reprehenderit in occaecat laboris",
"HKjwbinZ": "occaecat irure culpa Duis ipsum"
}
}