Summary
Send a gNOI set package command.
Description
Send a set package command over gRPC gNOI to a host and return the results.
Route
POST /automationgateway/gnoi/set_package/execute
Roles
admin
Parameters
DetailsExampleSchema
Name |
Type |
Required |
Description |
contents |
string |
no |
Byte-string/uploaded content |
hash |
object |
no |
- |
host |
string |
yes |
A host from the gRPC inventory |
package |
object |
yes |
- |
Copied to Clipboard
{
"host": "xr9kv-atl",
"package": {
"activate": true,
"filename": "dolor",
"version": "consequat dolor",
"remote_download": {
"path": "velit pariatur eiusmod sunt",
"protocol": "qui consectetur",
"credentials": {
"cleartext": "sint officia laborum",
"username": "culpa Lorem consectetur velit",
"hashed": {
"hash": "esse",
"method": "Duis quis elit"
}
}
}
},
"contents": "ea cillum velit occaecat do",
"hash": "veniam est"
}
Copied to Clipboard
{
"type": "object",
"properties": {
"contents": {
"title": "contents",
"type": "string"
},
"hash": {
"title": "hash",
"type": "string"
},
"host": {
"title": "host",
"type": "string",
"$ref": "deviceData#/definitions/deviceName"
},
"package": {
"title": "package",
"type": "object",
"properties": {
"activate": {
"title": "activate",
"type": "boolean"
},
"filename": {
"title": "filename",
"type": "string"
},
"version": {
"title": "version",
"type": "string"
},
"remote_download": {
"title": "remote_download",
"type": "object",
"properties": {
"path": {
"title": "path",
"type": "string"
},
"protocol": {
"title": "protocol",
"type": "string"
},
"credentials": {
"title": "credentials",
"type": "object",
"properties": {
"cleartext": {
"title": "cleartext",
"type": "string"
},
"username": {
"title": "username",
"type": "string"
},
"hashed": {
"title": "hashed",
"type": "object",
"properties": {
"hash": {
"title": "hash",
"type": "string"
},
"method": {
"title": "method",
"type": "string"
}
}
}
}
}
}
}
}
}
},
"required": [
"host",
"package"
],
"additionalProperties": false
}
Return
DetailsExampleSchema
Name |
Type |
Description |
result |
object |
gNOI response object. |
Copied to Clipboard
{
"key": "stdout",
"status": "200"
}