Agent Nodes

List Files.com Agent nodes

SDK Method

remote_server.agent_nodes()

Return Object

AgentNode

Authorization Requirement

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

Example Request

import files_sdk

try:
  # Find the remote_server object by its id.
  remote_server = files_sdk.remote_server.find(id)
  remote_server.agent_nodes()
except files_sdk.error.NotAuthenticatedError as err:
  print(f"Authentication Error Occurred ({type(err).__name__}):", err)
except files_sdk.error.Error as err:
  print(f"Unknown Error Occurred ({type(err).__name__}):", err)

The AgentNode Object

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

AttributeDescription
node_id
string
Stable Agent installation ID
name
string
Customer-configured Agent node name
hostname
string
Hostname reported by the Agent
availability_role
string
Configured traffic preference
Possible values: primary, auto, standby
status
string
Whether this node currently has an available Agent instance
Possible values: available, unavailable
is_default
boolean
Whether this node is the current default route for new unscoped work
direct_transfer_available
boolean
Whether the proxy recently validated a direct connection to this Agent node. False means direct transfers are enabled but not currently available; null means disabled or unsupported.
last_seen_at
date-time
Most recent successful node observation
instances
array(object)
Current Agent processes for this node