How Do I Read the Current Configuration of the Data Center?
About this task
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
Procedure
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.