/scalemgmt/v3/nodes/config: GET

Lists the configuration details of the node.

Availability

Available on all IBM Storage Scale editions.

Description

The GET nodes/config request lists the configuration details about the node.

Request URL

https://<IP address or host name of API server>:<port>/scalemgmt/v3/nodes/config
where
/nodes/config
Specifies that the GET request fetches the configuration details of the node. Required.

Request headers

Accept: application/json

Parameters

The following parameters can be used in the request URL to customize the request:
Table 1. List of parameters
Parameter name   Description and applicable keywords Required/optional
X-StorageScaleDomain The domain to be authorized against for the request. The default value is StorageScaleDomain. Optional.  

Request data

No request data.

Response data

  • 200: A successful response.
    {
      "grpc_url": "string",
      "node_id": {
        "cert": "string",
        "chain": "string",
        "priv": "string"
      },
      "rest_url": "string"
    }	
    
  • default: An unexpected error response.
    {
      "code": 0,
      "details": [
        {
          "@type": "string",
          "additionalProp1": "string",
          "additionalProp2": "string",
          "additionalProp3": "string"
        }
      ],
      "message": "string"
    }

Examples

The following example lists configuration details of the node:

Request data:
curl -n -X 'GET' 'https://localhost:46443/scalemgmt/v3/nodes/config' -H 'accept: application/json'
Response data:
{
	"node_id": {
		"cert": "<base64 encoded cert>",
		"priv": "",
		"chain": "<base64 encoded chain>"
	},
	"grpc_url": "https://192.168.122.99:50052",
	"rest_url": "https://192.168.122.99:46443"
}