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.

The element can hold these values
  • 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.

Response body objects

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

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

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