API Gateway 10.11 | Administering API Gateway | High Availability, Disaster Recovery, and Fault Tolerance | High Availability and Fault Tolerance | How Do I Read the Current Configuration of the Data Center?
 
How Do I Read the Current Configuration of the Data Center?
This use case explains how to read the current configuration of the data center using a REST API. You can validate your configuration by reading the current configuration of the data center.
*To read the current configuration of the data center
1. Read the current configuration of the data center using the GET/rest/apigateway/dataspace REST API.
Request: GET http://uk.myhost.com:5555/rest/apigateway/dataspace.
HTTP response appears as follows:

{
"listener": {
"listener": {
"nodeName": "ecb1308f-22ac-4877-aba9-471a31a834e6",
"host": "uk.myhost.com",
"port": 4440
},
"insecureTrustManager": false
},
"listener.active": {
"listener": {
"nodeName": "ecb1308f-22ac-4877-aba9-471a31a834e6",
"host": "uk.myhost.com",
"port": 4440
},
"insecureTrustManager": false
},
"ring": [
{
"nodeName": "a04609a0-ca13-44db-98e1-f988ba18fbb4",
"host": "us.myhost.com",
"port": 4440
},
{
"nodeName": "4820681b-f2fd-42d7-bccd-cf580ea8bf1c",
"host": "in.myhost.com",
"port": 4440
}
],
"ring.active": [
{
"nodeName": "a04609a0-ca13-44db-98e1-f988ba18fbb4",
"host": "us.myhost.com",
"port": 4440
},
{
"nodeName": "4820681b-f2fd-42d7-bccd-cf580ea8bf1c",
"host": "in.myhost.com",
"port": 4440
}
],
"mode": "ACTIVE_RING"
}

On successful configuration, the response status code displays as 200 and the first entry in the response displays mode field with the current configuration mode of the data center.