Query Bare Metal NIC Bonding

GET/zstack/v1/baremetal/network/bondings
GET/zstack/v1/baremetal/network/bondings/{uuid}

Headers

Authorization: OAuth the-session-uuid

Curl Example

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/baremetal/network/bondings?q=uuid=10d30b226f093a4c9ccd911575406e7b
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/baremetal/network/bondings/e0ea2452b6be30a6a7fbfc01dd5e70f5

Queryable Fields

Run the CLI command tool, enter QueryBaremetalBonding and press Tab to view all queryable fields and resource names that can be queried across tables.

API Response

Response Example

{
  "inventories": [
    {
      "uuid": "d2ab26c55a664a85ae2df0b8cee6ede7",
      "chassisUuid": "6b0cde704099460b9a96a0c451186467",
      "name": "bond0",
      "mode": 1,
      "slaves": "[\"d4:ae:52:6e:d1:0d\", \"d4:ae:52:6e:d1:0e\"]",
      "opts": "miimon=100",
      "createDate": "Aug 15, 2025 5:36:54 AM",
      "lastOpDate": "Aug 15, 2025 5:36:54 AM"
    }
  ]
}
NameTypeDescriptionStarting Version
successboolean 0.6
errorErrorCodeError code. If not null, the operation failed. When the operation succeeds, this field is null. See error for details.3.4.0
inventoriesListSee inventories for details.3.4.0

error

NameTypeDescriptionStarting Version
codeStringError code number, a globally unique identifier for the error, for example SYS.1000, HOST.10010.6
descriptionStringBrief description of the error0.6
detailsStringDetailed error information0.6
elaborationStringReserved field, defaults to null0.6
opaqueLinkedHashMapReserved field, defaults to null0.6
causeErrorCodeRoot cause, the source error that caused the current error. If there is no original error, this field is null0.6

inventories

NameTypeDescriptionStarting Version
uuidStringResource UUID, uniquely identifies the resource3.4.0
chassisUuidStringBare Metal Chassis UUID3.4.0
nameStringNIC Bonding Name3.4.0
modeIntegerNIC Bonding Mode3.4.0
slavesStringSlave MAC Address, comma separated3.4.0
optsStringNIC Bonding Options3.4.0
createDateTimestampCreate Time3.4.0
lastOpDateTimestampLast Modification Time3.4.0

SDK Examples

Java SDK

QueryBaremetalBondingAction action = new QueryBaremetalBondingAction();
action.conditions = asList("uuid=eb879ea0b5b93f12aefb1a8bb21cf135");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryBaremetalBondingAction.Result res = action.call();

Python SDK

action = QueryBaremetalBondingAction()
action.conditions = ["uuid=3c90a0f5fb763620ab38cc6184732ea3"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
res = action.call()