Execute command
Changed onExecutes a command on a specific agent.
Request
- Base URLhttps://api.nullplatform.com
- URLhttps://api.nullplatform.com/controlplane/agent_command
- AuthHTTP bearer
Request body
Example request
{
"command": {
"type": "exec",
"data": {
"cmdline": "path-to-cmd-file/cmd",
"environment": {
"NP_ACTION_CONTEXT": "'${NOTIFICATION_CONTEXT}"
},
"arguments": [
"arg1",
"arg2"
]
}
},
"selector": {
"environment": "local"
}
}Response
Command executed successfully.
Example response
{
"selector": {
"environment": "local"
},
"command": {
"type": "exec",
"data": {
"cmdline": "path-to-cmd-file/cmd",
"environment": {
"NP_ACTION_CONTEXT": "'${NOTIFICATION_CONTEXT}'"
},
"arguments": [
"arg1",
"arg2"
]
}
}
}Changes
- breaking
the response property
became optional for the status - breaking
the response property
became optional for the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - breaking
removed the required property
from the response with the status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
media type
application/jsonwas changed to a more specific media typeapplication/problem+jsonfor the response status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
response property
messagedeprecated - info
response property
messagedeprecated - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status - info
added the required property
to the response with the status
- breaking