Skip to main content

AgentService

Agent discovery and details.

Methods

MethodDescription
List(ctx)Retrieve all active agents
Get(ctx, hostname)Get detailed agent info by hostname

Usage

// List all agents
resp, err := client.Agent.List(ctx)

// Get specific agent details
resp, err := client.Agent.Get(ctx, "web-01")

Example

See examples/sdk/client/agent.go for a complete working example.

Permissions

Requires agent:read permission.