Create Connection

Creates a new network connection configuration for a specific network device. The created connection specifies settings like WiFi credentials or Ethernet configuration that will be used when connecting to networks.

Path parameters

networkstringRequired
The network id.

Query parameters

connectionIdstringOptional
Required. The ID to use for the network connection, which becomes the final component of the connection's resource name. For linux systems, this will be ignored, since network manager sets its own id.

Request

This endpoint expects an object.
namestringOptional

Identifier for the network connection resource. Format: //system.v1.engine.core.machanirobotics.com/networks/{network}/connections/{connection}

ipv4ConfigobjectOptional

IPv4-specific connection configuration. If not specified, default system IPv4 configuration will be used.

ipv6ConfigobjectOptional

IPv6-specific connection configuration. If not specified, default system IPv6 configuration will be used.

wifiobjectOptional

WiFi-specific configuration. Must be specified if the associated Network has network_type=TYPE_WIFI.

ethernetobjectOptional

Ethernet-specific configuration. Must be specified if the associated Network has network_type=TYPE_ETHERNET.

Response

OK
namestring

Identifier for the network connection resource. Format: //system.v1.engine.core.machanirobotics.com/networks/{network}/connections/{connection}

ipv4Configobject

IPv4-specific connection configuration. If not specified, default system IPv4 configuration will be used.

ipv6Configobject

IPv6-specific connection configuration. If not specified, default system IPv6 configuration will be used.

wifiobject

WiFi-specific configuration. Must be specified if the associated Network has network_type=TYPE_WIFI.

ethernetobject

Ethernet-specific configuration. Must be specified if the associated Network has network_type=TYPE_ETHERNET.

Errors

400
Bad Request Error