8.3 Aquiring a region UID
The region ID is required for updating, refreshing, or deleting a region. The cURL command to use for acquiring a region is:
Syntax
curl
For example, the following command acquires the region ID (uid) for the controller team in the region created in “Creating a region” (page 89).
curl
[
8.4 Updating a region
You can update an existing region with more slave controllers or more devices. The cURL command for updating a region is:
curl
For example, to update the region created in “Creating a region” (page 89), with a new switch (10.250.100.22), you would insert the master controller authentication token and the region ID (uid) returned in the above example.
curl
\"region\": {
\"master\": {
\"ip\": \"15.146.194.80\",
\"name\": \"Controller_1\" },
\"slaves\": [
{
\"ip\": \"15.146.194.103\",
\"name\": \"Controller_2\" },
{
\"ip\": \"15.146.194.38\",
\"name\": \"Controller_3\"
}
],
{
\"devices\": [
\"ip\": \"10.250.100.20\" },
{
\"ip\": \"10.250.100.21\" },
{
\"ip\": \"10.250.100.22\"
}
]
}}'
90 Regional configuration