Skip to content

Set how a wireless controller's access points are imported as nodes.

PUT
/api/v1/nodes/{node_id}/wireless-controller
curl --request PUT \
--url https://example.com/api/v1/nodes/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/wireless-controller \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "ap_group_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "import_aps": true, "max_aps": 1 }'

Import is off until switched on here. An imported AP is a node of kind wireless_ap: it is never polled itself — the controller’s AP walk reports it — and it goes down when the controller serving it reports it down. A node deleted afterwards is not imported again automatically; use POST /api/v1/wireless/aps/{ap_id}/import to bring it back.

node_id
required
string format: uuid

The controller’s node id

Media typeapplication/json

How a controller’s access points are imported.

object
ap_group_id

The folder to file imported AP nodes in. Omitted or null ⇒ the folder this controller is in; no folder is created. AP nodes already imported stay where they are.

string | null format: uuid
import_aps
required

Whether access points this controller reports become nodes (on unless someone turned it off). Only APs that have been in service at least once are imported automatically; importing starts within a minute.

boolean
max_aps

The most access points this controller imports, 1–2048. Omitted ⇒ 1024.

integer | null format: int32
Examplegenerated
{
"ap_group_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"import_aps": true,
"max_aps": 1
}

Settings stored; the controller as it now stands

Media typeapplication/json

What a controller’s last complete AP inventory said about the controller itself, and how its access points are imported as nodes.

object
ap_group_id

The folder imported AP nodes are filed in. null ⇒ the folder this controller is in. No folder is created for them.

string | null format: uuid
aps_over_cap
required

How many access points the max_aps cap left out on the last import pass.

integer format: int32
aps_reported
required

How many APs its last inventory carried.

integer format: int32
aps_truncated_at

Set when the controller reported more APs than one inventory may carry: how many it reported. The list then holds only the first ones by MAC address.

integer | null format: int32
flavor
One of:
null
import_aps
required

Whether access points this controller reports become nodes. On by default for a controller Yagra has just started reading; only APs that have been in service at least once are imported automatically.

boolean
last_inventory_at

When its last complete inventory arrived (RFC 3339). null if none has.

string | null
max_aps
required

The most access points this controller imports (1–2048).

integer format: int32
node_id
required

The controller’s node.

string format: uuid
Example
{
"flavor": "huawei"
}

Max_aps outside 1–2048

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

No valid bearer token

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Role lacks ManageConfig

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

No such node or folder, or one outside the caller’s scope

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}

Inventory storage is unavailable (skeleton mode)

Media typeapplication/json

The ADR-019 envelope every failure renders as. pub(crate) and schema-bearing so the OpenAPI document can name one error shape for every endpoint (ADR-035) instead of leaving 4xx/5xx bodies undescribed — a client that has to guess the failure shape ends up parsing the success shape and reading undefined.

object
error
required
object
code
required

Stable machine-readable code. Clients branch on this, never on the message.

string
message
required

Operator-facing sentence. Safe to display; never carries an internal error’s own text.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example"
}
}