Agent Push Updates

Push update to Files Agent

SDK Method

$remote_server->agentPushUpdate;

Return Object

AgentPushUpdate

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

Example Request

try {
  $remote_server = new \Files\Model\RemoteServer();
  $remote_server->agentPushUpdate();
} catch (\Files\NotAuthenticated\InvalidUsernameOrPasswordException $e) {
  echo 'Authentication Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
} catch (\Files\FilesException $e) {
  echo 'Unknown Error Occurred (' . get_class($e) . '): ', $e->getMessage(), "\n";
}

The AgentPushUpdate Object

Some of the methods above return a AgentPushUpdate object. The attributes of this object are listed below.

AttributeDescription
version
string
Pushed agent version
message
string
Update accepted or reason
current_version
string
Installed agent version
pending_version
string
Pending agent version or null
last_error
string
Last error message or null
error
string
Error code