API Gateway 10.7 | Configuring API Gateway | API Gateway Data Management | Cross-Data Center Support | 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": "b04609v0-ef13-44vu-98x1-f988mn18max4",
"host": "in.myhost.com",
"port": 4440
}
],
"ring.active": [
{
"nodeName": "a04609a0-ca13-44db-98e1-f988ba18fbb4",
"host": "us.myhost.com",
"port": 4440
},
{
"nodeName": "b04609v0-ef13-44vu-98x1-f988mn18max4",
"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.