/scalemgmt/v3/nodeclasses/{name}: PATCH
Updates an existing node class.
Availability
Available on all IBM Storage Scale editions.
Description
The PATCH nodeclasses/{name} request updatess an existing node class.
Request URL
https://<IP address or host name of API server>:<port>/scalemgmt/v3/nodeclasses/{name}
Request headers
Accept: application/json
Parameters
The following parameters can be used in the request URL to customize the
request:
| Parameter name | Description and applicable keywords | Required/optional |
|---|---|---|
| name | The name of the node class. | Required. |
| nodeclass | The body of the request that contains the parameters that are sent to IBM Storage Scale to
perform the requested operation. |
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 updates the members of the NewNodeClass node class:
Request
data:
curl -X 'PATCH' 'https://localhost:46443/scalemgmt/v3/nodeclasses/NewNodeClass' \
-H 'accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"members": [
"dev-11"
],
"name": "NewNodeClass",
"subclasses": [
"subclass"
]
}' Response data: {
"name": "NewNodeClass",
"members": [
"dev-11"
],
"subclasses": [
"subclass"
]
}