Turn on the maintenance of the cluster

  • Published Sep 29, 2025

This API request turns on the maintenance of the cluster.

Authentication

To execute this request, you need the Service Provider API (ServiceProviderAPI) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.

Endpoint

/api/v1.0/cluster/maintenance/on

Parameter

ParameterTypeDescriptionInRequired
bodyIpMigrationMaintenanceRequestDto

JSON body of the request. Contains basic details about the cluster maintenance

bodyrequired

Request body objects

The IpMigrationMaintenanceRequestDto object

ElementTypeDescriptionRequired
nodeIdinteger

An ID of the node that the migration is performed on.

required
reasonstring

A reason for the maintenance.

  • IP_MIGRATION
required

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"nodeId": 1,
"reason": "IP_MIGRATION"
}

Response

Response codes

CodeTypeDescription
200-

Success. The maintenance is now enabled.

400ErrorEnvelope

Failed. The input is invalid.

409ErrorEnvelope

Failed. Can't enable the maintenance state, because the previous hasn't finished.

Request body

{
"nodeId": 1,
"reason": "IP_MIGRATION"
}

Response body

{
"error": {
"code": 0,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}

Response code

200