QueryBareMetal2Bonding
API Requests
URLs
GET /v1/baremetal2/bonding
Headers
Authorization: OAuth the-session-uuid
Queryable Fields
You can check all queryable fields and resource names that can be queried across tables by using zstack-cli, entering QueryBareMetal2Bonding, and pressing the Tab key.
Curl Samples
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/baremetal2/bonding?q=uuid=0250c111188b3c4f92efd998c89fb32d
API Response
Sample Response
{
"inventories": [
{
"chassisUuid": "08e177d0c35648de8939515bf9d5adad",
"name": "bond0",
"slaves": "40:8d:5c:f7:8d:60,40:8d:5c:f7:8d:61",
"createDate": "Nov 14, 2017 10:20:57 PM",
"lastOpDate": "Nov 14, 2017 10:20:57 PM",
"uuid": "7910f442d5c94e82963e17155567b6f3"
}
]
}
Name | Type | Description | Starting Version |
---|---|---|---|
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error | 4.4.24 |
success | boolean | 4.4.24 | |
inventories | List | See inventories | 4.4.24 |
#error
Name | Type | Description | Starting Version |
---|---|---|---|
code | String | The error code, which is a numbered or alphanumeric code that specifies an error. For example, SYS.1000, HOST.1001. | 4.4.24 |
description | String | The brief description of the error. | 4.4.24 |
details | String | The details about the error. | 4.4.24 |
elaboration | String | The reserved field. Default value: null. | 4.4.24 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 4.4.24 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 4.4.24 |
#inventories
Name | Type | Description | Starting Version |
---|---|---|---|
chassisUuid | String | 4.4.24 | |
name | String | The resource name. | 4.4.24 |
slaves | String | 4.4.24 | |
opts | String | 4.4.24 | |
mode | Integer | 4.4.24 | |
createDate | Timestamp | The creation date. | 4.4.24 |
lastOpDate | Timestamp | The last operation date. | 4.4.24 |
accountUuid | String | The account UUID. | 4.4.24 |
uuid | String | The resource UUID. | 4.4.24 |
SDK Sample
Java
SDK
QueryBareMetal2BondingAction action = new QueryBareMetal2BondingAction();
action.conditions = asList("uuid=7a85935a77ff378bbd349f619f647b26");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QueryBareMetal2BondingAction.Result res = action.call();
Python
SDK
QueryBareMetal2BondingAction action = QueryBareMetal2BondingAction()
action.conditions = ["uuid=cb72ba18b6f83cec99cbf2519694ad33"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QueryBareMetal2BondingAction.Result res = action.call()