Resource Center/Network Resource/Hardware SDN Controller Operations
POSTHardware SDN Controller OperationsSince 3.7.0SynchronousAuth Required
AddSdnController
AddSdnController
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
paramsObjectRequiredRequest body parameter object.
vendorTypeStringRequiredNo description provided.
nameStringRequiredThe resource name.
descriptionStringOptional. The detailed description of the resource.
ipStringRequired来源IP地址。
userNameStringOptional. The user name.
passwordStringOptional. The password.
resourceUuidStringOptional. The resource UUID.
tagUuidsListOptional. The tag UUID list.
zoneUuidStringOptional. The zone UUID.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
hostRefsListRequired5.3.0
Responses
Endpoint
POST/zstack/v1/sdn-controllers
/zstack/v1/sdn-controllers
Request Example
curl -X POST 'http://{host}/zstack/v1/sdn-controllers' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"params":{"vendorType":"<vendorType>","name":"<name>","description":"<description>","ip":"<ip>","userName":"<userName>","password":"<password>","resourceUuid":"<resourceUuid>","tagUuids":["<tagUuids>"],"zoneUuid":"<zoneUuid>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"],"hostRefs":["<hostRefs>"]}'
Response Example
200{ "inventory": { "uuid": "2f7e443a152833efb0f4b7d196a35ce0", "vendorType": "H3C VCFC", "name": "sdn-1", "description": "sdn controller from vendor", "ip": "192.168.1.1", "username": "admin", "password": "password" } }Change History
This API has no change history records yet.
