GET /api/index/nodeconfig

Returns information about the Elasticsearch node configuration for all containers in the implementation.

Authorization Roles/Permissions: System Administrator only. Note CSRF is not required for this operation.

This topic includes the following sections:

HTTP Method

GET

Back to top

URL

https://{hostname}/api/index/nodeconfig

Back to top

Sample Request

The example below shows a request for the Elasticsearch embedded node configurations.

Request URL

https://{hostname}/api/index/nodeconfig

Sample request headers

GET /api/index/nodeconfig
Accept: application/json

Sample request body

Not applicable.

Back to top

Request Headers

For general information on request header values, refer to HTTP Request Headers.

Header Description
Accept

Any of the following media types is valid for the Accept header:

application/json, application/vnd.soa.v83+json

Back to top

Request Parameters

None.

Back to top

Response

If successful, this operation returns HTTP status code 200, with the Elasticsearch node configuration information for all containers in the implementation.

Back to top

Sample Response

The sample response below shows successful completion of this operation.

Sample response headers: application/json

GET /api/index/nodeconfig
Accept: application/json

Sample response body: application/json

{ 
  "EmbeddedNodeConfiguration":[ 
    { 
      "ContainerKey":"c1aeff4f-71de-40b1-ad23-629c1f46",
      "Name":"default_1473984894141_node_107",
      "BindToAll":true,
      "NetworkBindAddress":"0.0.0.0",
      "NetworkPublishAddress":"192.168.1.118",
      "TransportPort":9300,
      "HttpPort":9200,
      "HttpEnabled":true,
      "MasterEligible":true,
      "DataNode":true
    }
  ]
}

Back to top

Response Headers

For general information on response header values, refer to HTTP Response Headers.

Header Description
Content-Type application/json, application/vnd.soa.v83+json

Back to top

Response Body

Name Type Description
EmbeddedNodeConfigurations EmbeddedNodeConfigurations Contains information about the Elasticsearch embedded node configuration for all the containers in an implementation.

Back to top

Error Codes/Messages

If the call is unsuccessful an error code/message is returned. One or more examples of possible errors for this operation are shown below.

Item Value
401 Unauthorized. For example, you would get this response if you didn't include the custom X-Csrf-Token_{fedmemberID} header in the request, when it was required by the platform settings; or if you included an invalid or expired value for this header.
500 An error occurred processing the call.

More information about Akana API Platform API error messages.

Back to top

Related Topics