NOTE: The default domain and user settings are sdn. The default password setting is skyline.
Examples of cURL commands in this guide use the --noproxyoption, which is appropriate where execution of cURL commands does not need a proxy to access controllers. If your network is set up such that a proxy is needed to access controllers, use the --proxyoption. For details on cURL proxy options, visit http://curl.haxx.se/docs/manpage.html.
For example, in a controller using the default domain, user name, and password, the following command generates the authentication token 1759f214479e4ffd9504acb42123ef40:
curl --noproxy 192.15.135.187 -X POST --fail -ksSfL --url "https://192.15.135.187:8443/sdn/v2.0/auth" -H "Content-Type: application/json"
--data-binary '{"login": {"domain": "sdn","user": "sdn","password": "skyline"}}' {"record":{"token":"1759f214479e4ffd9504acb42123ef40", "expiration":1381982391381982399000,"expirationDate":"2014-10-16 20-59-59 -0700", "userId":"b00cb0e94c9441d58011f980cf9635ae","userName":"sdn","domainId": "a6701f6593d84fa5b8f23f9ab4ed69db","domainName":"sdn"}}
5. Determine the team configuration parameters:
Parameter | Value |
| |
Team IP Address | The team IP address is different from the individual controller IP |
| addresses. It is used as a virtual address for connecting to the |
| team leader. |
| |
7.4.2Configuration procedure1.Select any active controller to initially configure the team.
2.Enter the following cURL command:
curl --noproxy member-ip--header X-Auth-Token:auth_token--fail -ksS --request POST --url https://ip-addr:8443/sdn/v2.0/team --data-binary '{"ip":"team-ip","members": [{"ip":"member-1-ip"}, {"ip":"member-2-ip"}, {"ip":"member-3-ip"}]}}'
NOTE: The member-ip-addrshould be the IP address of the controller chosen to configure the team.
3.After executing the command in step 2, the team elects a team leader. The team leader then configures all team members and normal controller operation begins in the domain. The team creation command does not block until the team creation is complete. You will need to check the status of the system to verify the team was successfully created.