HP VAN SDN Controller Administrator Guide

58
Display Team Configuration
1. Acquire an authentication token for the team master. (See step 4 on page 55.)
2. Using the token acquired in the preceding step, execute this cURL command to display
the team configuration:
curl --noproxy <member-ip> --header "X-Auth-Token:<auth_token> " --fail
-ksSfL --request GET --url https://<member-ip>:8443/sdn/v2.0/team
For example:
curl --noproxy 192.0.2.100 --header "X-Auth-Token:<auth_token> " --fail
-ksSfL --request GET --url https://192.0.2.119:8443/sdn/v2.0/team
The resulting team configuration output includes the following:
{"team":
{
"name":"Test_Team",
"ip":"192.0.2.100",
"systems":
[
{
"name":"Athos",
"ip":"192.0.2.119",
"priority":10
},
{
"name":"Porthos",
"ip":"192.0.2.125",
"priority":20
},
{
"name":"Aramis",
"ip":"192.0.2.127",
"priority":30
}
]
}
}
In the json format, the above appears in the following layout:
{"team":{"name":"Test_Team","ip":"192.0.2.100","systems":
[{"name":"Athos","ip":"192.0.2.119","priority":10},
{"name":"Porthos","ip":"192.0.2.125","priority":20},
{"name":"Aramis","ip":"192.0.2.127","priority":30}]}}