Skip to main content

Network Management

OSAPI can query and update network configuration on managed hosts. Network operations run through the job system, keeping the API server unprivileged while agents execute the actual changes.

What It Manages

ResourceOperationsDescription
DNSRead, UpdateNameservers and search domains per interface
PingReadICMP connectivity check to a target host

How It Works

DNS -- queries read the current nameserver configuration for a network interface. Updates modify the nameservers and search domains, applying changes through the host's network manager.

Ping -- sends ICMP echo requests to a target host and reports the results.

See CLI Reference for usage and examples, or the API Reference for the REST endpoints.

Configuration

Network management uses the general job infrastructure. No domain-specific configuration is required. See Configuration for NATS, agent, and authentication settings.

Permissions

OperationPermission
DNS getnetwork:read
DNS updatenetwork:write
Pingnetwork:read

The admin and write roles include both network:read and network:write. The read role includes only network:read.