Software AG Products 10.7 | Configuring API Gateway | API Gateway Data Management | Cross-Data Center Support | How Do I Bring Down Multiple Data Centers from Active-Active or Hot Standby Mode to Standalone Mode?
 
How Do I Bring Down Multiple Data Centers from Active-Active or Hot Standby Mode to Standalone Mode?
This use case explains how to bring down multiple data centers from active-active or hot standby mode to standalone mode. You must bring down multiple data centers to standalone mode in the following scenarios:
*When multiple data centers are scheduled for maintenance.
*When you want to shut down multiple data centers to relocate them 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 multiple data centers to standalone mode
1. Invoke the REST API.
You can bring down multiple data centers using the REST API PUT/rest/apigateway/dataspace/activateAll?mode=STANDALONE on any one of the data centers that you want to bring down. For example:
Request: PUT http://uk.myhost.com:5555/rest/apigateway/dataspace/activateAll?mode=STANDALONE.
Consider DC 1 (uk.myhost.com), DC 2 (us.myhost.com), and DC 3 (in.myhost.com) are in active-active mode, and if you want to bring down DC 1 and DC 2, here is the sample payload:

{
"local": {
"host": "uk.myhost.com",
"port":5555,
"syncPort": 4440,
"keyStoreAlias":"UK_Key",
"keyAlias":"Key_Alias_UK",
"trustStoreAlias":"Trustpackage",
"insecureTrustManager": true
},
"remotes":
[
{
"host": "us.myhost.com",
"port": 5555,
"syncPort": 4440,
"userName": "Administrator",
"password": "manage",
"keyStoreAlias":"US_Key",
"keyAlias":"Key_Alias_US",
"trustStoreAlias":"Trustpackage",
"insecureTrustManager": true
}
]
}
HTTP response appears as follows:

{
"mode": "STANDALONE",
"local": {
"host": "uk.myhost.com",
"port": 5555,
"syncPort": 4440,
"keyStoreAlias":"UK_Key",
"keyAlias":"Key_Alias_UK",
"trustStoreAlias": "Trustpackage",
"insecureTrustManager": true
},
"remotes": [
{
"host": "us.myhost.com",
"port": 5555,
"syncPort": 4440,
"userName": "Administrator",
"password": "manage",
"keyStoreAlias": "US_Key",
"keyAlias": "Key_Alias_US",
"trustStoreAlias": "Trustpackage",
"insecureTrustManager": true
}
],
"acknowledged": true
}
When the data centers are 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 the data centers that you have brought down, you have to update the configuration accordingly. For example, if you have brought down the data centers (DC 1 and DC 2) from active-active mode, you can revert the data centers to active-active mode by updating the configuration with the details of DC 1 and DC 2.
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?.