close
ubios-udapi-server

Ubios-udapi-server

May 5, 201089280Views
ubios-udapi-server

Ubios-udapi-server

POST /graphql

"cmd": "power-cycle", "mac": "switch_mac_address", "port_idx": 5

POST /proxy/network/api/s/default/cmd/devmgr with payload: ubios-udapi-server

"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 3600

curl -k -X POST https://192.168.1.1/api/auth/login \ -H "Content-Type: application/json" \ -d '"username":"admin", "password":"your_password"' POST /graphql "cmd": "power-cycle"

While the REST endpoints remain for backward compatibility, new development should target the GraphQL interface. The ubios-udapi-server is the Swiss Army knife for serious Ubiquiti network automation. It turns your Dream Machine or Cloud Key from a simple GUI appliance into a programmable network fabric controller.

clients(first: 10, filter: is_wired: true) mac hostname uplink ap name you must first request a token.

systemctl restart ubios-udapi-server Unlike Basic Auth, ubios-udapi-server uses stateless JWTs. You cannot simply curl an endpoint with a password; you must first request a token.