Deleting a Zone
Use this API to delete a zone from the eG manager.
URL: http://<eG manager IP:port>/api/eg/orchestration/deletezone
Method: POST
Parameters | Key values | Example |
---|---|---|
Headers |
managerurl: Base URL of the eG Manager i.e., http://<IP address of the eG console:Port> user: eG username or domain/eG username pwd: Base64 encoded password |
{ "zonename":"EurAsia,globalwest" } |
Body |
Default: { "zonename":"comma-separated list of zones" } |
Type | Code | Content |
---|---|---|
JSON |
200 |
{ "Succeed": "Zone has been deleted successfully." } |
Type | Code | Content |
---|---|---|
JSON |
401 UNAUTHORIZED |
{ "Error": "One or more given zone names do not exist." } |
Figure 1 : Deleting a zone using Postman REST Client
Deleting a Zone using cURL
To delete a zone through the REST API using cURL, the command should be specified in the following format:
curl --location --request POST "http://<eG Manager IP:Port>/api/eg/orchestration/deletezone" -H "managerurl:http://<eG Manager IP:Port>" -H "user:<eG username or domain/eG username>" -H "pwd:Base64 encoded password" -H "Content-Type: application/json" --data-raw "{'zonename':'comma-separated list of zones'}"
Figure 2 shows an example of deleting a zone using cURL.