/scalemgmt/v3/nodeclasses/{name}: GET

Lists the members of the specified node class.

Availability

Available on all IBM Storage Scale editions.

Description

The GET nodeclasses/{name} request lists the members of the specified node class.

Request URL

https://<IP address or host name of API server>:<port>/scalemgmt/v3/nodeclasses/{name}
Where
{name}
Specifies the name of the node class.

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
name The name of the node class. Required.
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.
    {
      "members": [
        "string"
      ],
      "name": "string",
      "subclasses": [
        "string"
      ]
    }
  • default: An unexpected error response.
    {
      "code": 0,
      "details": [
        {
          "@type": "string",
          "additionalProp1": "string",
          "additionalProp2": "string",
          "additionalProp3": "string"
        }
      ],
      "message": "string"
    }

Examples

The following example lists members of the linuxNodes node class:

Request data:
curl -X 'GET' 'https://localhost:46443/scalemgmt/v3/nodeclasses/linuxNodes' \
  -H 'accept: application/json' -n -k
Response data:
{
	"name": "linuxNodes",
	"members": [
		"scale-22.openstacklocal",
		"scale-21.openstacklocal"
	]
}