There is no request body for this API.
{ "regions":[ { "uid":"adc5e492-957c-4f8c-aa0a-97fa2dac5f01", "master":{ "ip":"125.200.104.101", "name":"Controller_1" }, "slaves":[ { "ip":"125.200.104.102", "name":"Controller_2" } ], "devices":[ { "ip":"125.200.104.200" } ] } ] }
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
{ "region":{ "master":{ "ip":"125.200.104.101", "name":"Controller_1" }, "slaves":[ { "ip":"125.200.104.102", "name":"Controller_2" } ], "devices":[ { "ip":"125.200.104.200" } ] } }
{ "region":{ "uid":"adc5e492-957c-4f8c-aa0a-97fa2dac5f01", "master":{ "ip":"125.200.104.101", "name":"Controller_1" }, "slaves":[ { "ip":"125.200.104.102", "name":"Controller_2" } ], "devices":[ { "ip":"125.200.104.200" } ] } }
Location header: http://<controller>/sdn/v2.0/region/{region_uid}
Normal: OK (201)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
List the region with the give region_uid:
There is no request body for this API.
{ "region":{ "uid":"adc5e492-957c-4f8c-aa0a-97fa2dac5f01", "master":{ "ip":"125.200.104.101", "name":"Controller_1" }, "slaves":[ { "ip":"125.200.104.102", "name":"Controller_2" } ], "devices":[ { "ip":"125.200.104.200" } ] } }
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)
Update a region with the give region uid:
{ "region":{ "master":{ "ip":"125.200.104.101", "name":"Controller_1" }, "slaves":[ { "ip":"125.200.104.102", "name":"Controller_2" } ], "devices":[ { "ip":"125.200.104.200" } ] } }
{ "region":{ "uid":"adc5e492-957c-4f8c-aa0a-97fa2dac5f01", "master":{ "ip":"125.200.104.101", "name":"Controller_1" }, "slaves":[ { "ip":"125.200.104.102", "name":"Controller_2" } ], "devices":[ { "ip":"125.200.104.200" } ] } }
Location header: http://<controller>/sdn/v2.0/region/{region_uid}
Normal: OK (200)
Error: Unauthorized (401), Not Found (404), Service Unavailable (503)