Add scoring service node API
You can use this API to add a scoring service node to an existing scoring service cluster.
HTTP method and URI path
POST /v3/deployments/ha/scoring/node
Standard headers
Use the following standard HTTP header with this request:
Content-Type: application/json
Authorization: <Bearer token>
Required authorizations
The user ID associated with the token which is specified in the request header needs to be granted with one of the following roles:
- sysadm
Request body
| Parameter | Type | Required or optional | Description |
|---|---|---|---|
| scoringGroupId | String | Required | The ID of the scoring service where the scoring service node is to be added. |
| scoringServiceName | String | Required | A unique name of the scoring service node to be created. |
| host | String | Required | Host name or IP address where the scoring service node is to be created. |
| httpPort | String | Optional | HTTP port of the scoring service node. |
| httpsPort | String | Optional | HTTPS port of the scoring service node. |
| adminHttpPort | String | Optional | Admin HTTP port of the scoring service node. |
| adminHttpsPort | String | Optional | Admin HTTPS port of the scoring service node. |
| zosmfInfo | String | Required | The z/OSMF information. |
| zosmfEnabled | Boolean | Optional | z/OSMF enabled or not. The default is false. |
{
"host": "127.0.0.1",
"httpPort": "1234",
"httpsPort": "2345",
"scoringGroupId": "73b24728-50f7-4956-b51c-985d97b7c34b",
"adminHttpPort": "4578",
"adminHttpsPort": "6789",
"scoringServiceName":"Sample_Scoring_Service",
"zosmfInfo":""
}
Expected response
On completion, the service returns an HTTP response, which includes a status code that indicates whether your request is completed. Status code 201 indicates a successful completion. A status code of 4nn or 5nn indicates an error.
"scoringServiceID": "3e301250-83d7-4d0f-a6ea-5100d30af269"
HTTP status codes
| HTTP status code | Error response | Description |
|---|---|---|
| 400 | parsing_error | A required item is missing in the request body. |
| 404 | scoring_resource_not_found | The requested scoring service group is not found. |
| 409 | duplicate_scoring_resource | The scoring service name already exists. |
| 500 | unhandled_exception_with_message | Failed to add the scoring service node with unhandled exception. |