ZStack Cloud Platform
Single Server, Free Trial for One Year
POST zstack/v1/sdn-controllers
Authorization: OAuth the-session-uuid
{ "params": { "vendorType": "vendor", "name": "sdn-1", "description": "sdn controller from vendor", "ip": "192.168.1.1", "userName": "admin", "password": "password" }, "systemTags": [], "userTags": [] }
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X POST -d '{"params":{"vendorType":"vendor","name":"sdn-1","description":"sdn controller from vendor","ip":"192.168.1.1","userName":"admin","password":"password"}}' http://localhost:8080/zstack/v1/sdn-controllers
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
vendorType | String | body (contained in the params structure) | 3.7.0 | ||
name | String | body (contained in the params structure) | The resource name. | 3.7.0 | |
description | String | body (contained in the params structure) | Optional. The detailed description of the resource. | 3.7.0 | |
ip | String | body (contained in the params structure) | 3.7.0 | ||
userName | String | body (contained in the params structure) | Optional. The user name. | 5.3.20 | |
password | String | body (contained in the params structure) | Optional. The password. | 5.3.20 | |
resourceUuid | String | body (contained in the params structure) | Optional. The resource UUID. | 3.7.0 | |
tagUuids | List | body (contained in the params structure) | Optional. The tag UUID list. | 3.7.0 | |
systemTags | List | body | Optional. The system tags. | 3.7.0 | |
userTags | List | body | Optional. The user tags. | 3.7.0 |
vdsUuid::{%s}
vdsUuid::1234-5678
SdnControllerVO.class
{ "inventory": { "uuid": "2f7e443a152833efb0f4b7d196a35ce0", "vendorType": "H3C VCFC", "name": "sdn-1", "description": "sdn controller from vendor", "ip": "192.168.1.1", "username": "admin", "password": "password" } }
Name | Type | Description | Starting Version |
---|---|---|---|
success | Boolean | 5.3.20 | |
error | ErrorCode | The error code. If not null, the operation fails, or vice versa. For more information, see error. | 3.7.0 |
inventory | SdnControllerInventory | See inventory. | 3.7.0 |
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. | 3.7.0 |
description | String | The brief description of the error. | 3.7.0 |
details | String | The details about the error. | 3.7.0 |
elaboration | String | The reserved field. Default value: null. | 3.7.0 |
opaque | LinkedHashMap | The reserved field. Default value: null. | 3.7.0 |
cause | ErrorCode | The root error, which is the associated root cause of the current error. If no root error exists, this parameter is null. | 3.7.0 |
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 3.7.0 |
vendorType | String | 3.7.0 | |
name | String | The resource name. | 3.7.0 |
description | String | The detailed description of the resource. | 3.7.0 |
ip | String | 3.7.0 | |
username | String | 3.7.0 | |
password | String | 3.7.0 | |
createDate | Timestamp | The creation date. | 3.7.0 |
lastOpDate | Timestamp | The last operation date. | 3.7.0 |
status | SdnControllerStatus | See status. | 5.3.20 |
vniRanges | List | See vniRanges. | 3.7.0 |
vxlanPools | List | See vxlanPools. | 3.7.0 |
hostRefs | List | See hostRefs. | 5.3.20 |
Name | Type | Description | Starting Version |
---|---|---|---|
Connecting | SdnControllerStatus | Connecting. | 5.3.20 |
Connected | SdnControllerStatus | Connected. | 5.3.20 |
Disconnected | SdnControllerStatus | Disconnected. | 5.3.20 |
Name | Type | Description | Starting Version |
---|---|---|---|
startVni | Integer | 3.7.0 | |
endVni | Integer | 3.7.0 |
Name | Type | Description | Starting Version |
---|---|---|---|
sdnControllerUuid | String | 3.7.0 | |
attachedCidrs | Map | 3.7.0 | |
uuid | String | The resource UUID. | 3.7.0 |
name | String | The resource name. | 3.7.0 |
description | String | The detailed description of the resource. | 3.7.0 |
zoneUuid | String | The zone UUID. | 3.7.0 |
physicalInterface | String | 3.7.0 | |
type | String | 3.7.0 | |
vSwitchType | String | 5.3.20 | |
virtualNetworkId | Integer | 5.3.20 | |
isolated | Boolean | 5.3.20 | |
pvlan | String | 5.3.20 | |
createDate | Timestamp | The creation date. | 3.7.0 |
lastOpDate | Timestamp | The last operation date. | 3.7.0 |
attachedClusterUuids | List | 3.7.0 | |
attachedVtepRefs | List | See attachedVtepRefs. | 3.7.0 |
remoteVteps | List | See remoteVteps | 5.3.20 |
attachedVxlanNetworkRefs | List | See attachedVxlanNetworkRefs. | 3.7.0 |
attachedVniRanges | List | See attachedVniRanges. | 3.7.0 |
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 3.7.0 |
hostUuid | String | The host UUID. | 3.7.0 |
vtepIp | String | The VXLAN tunnel endponit (VTEP) IP. | 5.3.20 |
port | Integer | The port number. | 5.3.20 |
type | String | The type. | 5.3.20 |
createDate | Timestamp | The creation date. | 3.7.0 |
lastOpDate | Timestamp | The last operation date. | 3.7.0 |
poolUuid | String | 3.7.0 |
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 5.3.20 |
clusterUuid | String | The cluster UUID | 5.3.20 |
vtepIp | String | The VXLAN tunnel endpoint (VTEP) IP. | 5.3.20 |
port | Integer | The port number. | 5.3.20 |
type | String | The type. | 5.3.20 |
createDate | Timestamp | The creation date. | 5.3.20 |
lastOpDate | Timestamp | The last operation date. | 5.3.20 |
poolUuid | String | The VXLAN pool UUID. | 5.3.20 |
Name | Type | Description | Starting Version |
---|---|---|---|
vni | Integer | The VNI number. | 5.3.20 |
poolUuid | String | The VXLAN pool UUID. | 5.3.20 |
uuid | String | The resource UUID. | 3.7.0 |
name | String | The resource name. | 3.7.0 |
description | String | The detailed description of the resource. | 3.7.0 |
zoneUuid | String | The zone UUID. | 3.7.0 |
physicalInterface | String | 3.7.0 | |
type | String | 3.7.0 | |
vSwitchType | String | 5.3.20 | |
virtualNetworkId | Integer | 5.3.20 | |
isolated | Boolean | 5.3.20 | |
pvlan | String | 5.3.20 | |
createDate | Timestamp | The creation date. | 3.7.0 |
lastOpDate | Timestamp | The last operation date. | 3.7.0 |
attachedClusterUuids | List | The attached cluster UUID. | 5.3.20 |
Name | Type | Description | Starting Version |
---|---|---|---|
uuid | String | The resource UUID. | 3.7.0 |
name | String | The resource name. | 3.7.0 |
description | String | The detailed description of the resource. | 3.7.0 |
startVni | Integer | The start VNI. | 5.3.20 |
endVni | Integer | The end VNI. | 5.3.20 |
createDate | Timestamp | The creation date. | 3.7.0 |
lastOpDate | Timestamp | The last operation date. | 3.7.0 |
l2NetworkUuid | String | The L2 network UUID. | 3.7.0 |
Name | Type | Description | Starting Version |
---|---|---|---|
sdnControllerUuid | String | The SDN controller UUID. | 5.3.20 |
hostUuid | String | The host UUID. | 5.3.20 |
vSwitchType | String | The virtual switch type. | 5.3.20 |
vtepIp | String | The VXLAN tunnel endpoint (VTEP) IP. | 5.3.20 |
nicPciAddresses | String | The NIC and PCI address mapping. | 5.3.20 |
nicDrivers | String | The NIC and driver type mapping. | 5.3.20 |
netmask | String | The host VTEP IP netmask. | 5.3.20 |
bondMode | String | The NIC bond mode. | 5.3.20 |
lacpMode | String | The NIC LACP mode. | 5.3.20 |
AddSdnControllerAction action = new AddSdnControllerAction(); action.vendorType = "vendor"; action.name = "sdn-1"; action.description = "sdn controller from vendor"; action.ip = "192.168.1.1"; action.userName = "admin"; action.password = "password"; action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; AddSdnControllerAction.Result res = action.call();
AddSdnControllerAction action = AddSdnControllerAction() action.vendorType = "vendor" action.name = "sdn-1" action.description = "sdn controller from vendor" action.ip = "192.168.1.1" action.userName = "admin" action.password = "password" action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" AddSdnControllerAction.Result res = action.call()
DELETE zstack/v1/sdn-controllers/{uuid}
Authorization: OAuth the-session-uuid
curl -H "Content-Type: application/json;charset=UTF-8" \ -H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \ -X DELETE http://localhost:8080/zstack/v1/sdn-controllers/237901c5097b38c480315569a1ac7567?deleteMode=Permissive
Name | Type | Location | Description | Optional Value | Starting Version |
---|---|---|---|---|---|
uuid | String | url | The resource UUID. | 3.7.0 | |
deleteMode | String | body | Optional. The delete mode. | 3.7.0 | |
systemTags | List | body | Optional. The system tags. | 3.7.0 | |
userTags | List | body | Optional. The user tags. | 3.7.0 |
{ "error": { "code": "SYS.1001", "description": "A message or a operation timeout", "details": "Create VM on KVM timeout after 300s" } }
RemoveSdnControllerAction action = new RemoveSdnControllerAction(); action.uuid = "237901c5097b38c480315569a1ac7567"; action.deleteMode = "Permissive"; action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"; RemoveSdnControllerAction.Result res = action.call();
RemoveSdnControllerAction action = RemoveSdnControllerAction() action.uuid = "237901c5097b38c480315569a1ac7567" action.deleteMode = "Permissive" action.sessionId = "b86c9016b4f24953a9edefb53ca0678c" RemoveSdnControllerAction.Result res = action.call()