API Gateway 10.11 | Administering API Gateway | High Availability, Disaster Recovery, and Fault Tolerance | High Availability and Fault Tolerance | How Do I Bring Down a Single Data Center from Active-Active or Hot Standby Mode to Standalone Mode?
 
How Do I Bring Down a Single Data Center from Active-Active or Hot Standby Mode to Standalone Mode?
This use case explains how to bring down a single data center from active-active or hot standby mode to standalone mode. You must bring down a data center to standalone mode in the following scenarios:
*When a data center is scheduled for maintenance.
*When you want to shut down a data center to relocate it permanently from one location to another.
By default, all the data centers are in standalone mode until you activate any other modes.
*To bring down a data center to standalone mode
1. Invoke the REST API.
You can bring down a single data center using the REST API PUT/rest/apigateway/dataspace/activate on the data center that you want to bring down to standalone mode. For example:
Request: PUT http://uk.myhost.com:5555/rest/apigateway/dataspace/activate.
Sample payload:

{
"mode": "STANDALONE"
}
HTTP response appears as follows:

{
"mode": "STANDALONE",
}
When the data center is activated to standalone mode, the response status code displays as 200 and you can see the corresponding log entry in the Server Logs.
Note:
If you want to revert a data center that you have brought down, you have to update the configuration accordingly. For example, if you have brought down DC 1 (from active-active or hot standby to standalone mode) for maintenance activity, you can revert DC 1 to active-active or hot standby mode by updating the configuration with the details of DC 1.
You can validate whether the data center is brought down to standalone mode by reading the current configuration of the data center using the GET/rest/apigateway/dataspace REST API. For more information, see How Do I Read the Current Configuration of the Data Center?