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": false,
"filename": "deserunt minim",
"version": "est deserunt aliquip ullamco",
"remote_download": {
"path": "sit tempor dolore dolore ut",
"protocol": "Duis culpa aute Ut",
"credentials": {
"cleartext": "in nulla fugiat amet esse",
"username": "aliquip est voluptate",
"hashed": {
"hash": "cillum id",
"method": "in exercitation labore"
}
}
}
},
"contents": "minim est cupidatat",
"hash": "dolore eiusmod in"
}
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": "status",
"status": "200"
}