Set termination flag
POST/system/services/active/:system_services_id/terminate
JSON-RPC
system.services.active.mark_terminate
The method sets terminate flag on the service. It will be processed by
the "Tasks Scheduler" system service within the next run (typically
within 1 minute). As a result SIGTERM
signal will be sent to the process.
note
In the abnormal situation, where the process hanged and became a zombie, the signal may be not processed. In this case service may be terminated only via shell.
Request​
Path Parameters
system_services_id stringrequired
System service ID.
- application/json
Bodyrequired
nodes_idstring | nullnullable
Cluster node ID to which operation should be applied. If not given, all nodes will be processed.
Default value:
null
Responses​
- 200
- 400
- 401
- 404
- 422
- 500
Number of the affected rows.
- application/json
- Schema
Schema
integerinteger
The request contains invalid arguments or is malformed
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "Invalid request",
"data": {
"name": "Empty value is not allowed",
"payment_terms_id": "Object \"payment_terms(123)\" was not found!"
}
}
}
Access is not authorized
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "utoken-auth-failed: Authentication Failed: IP 10.0.0.1 is not allowed",
"data": {
"code": "utoken-auth-failed",
"message": "Authentication Failed: IP 10.0.0.1 is not allowed"
}
}
}
Requested object was not found
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "not_found: Object \"clients(123)\" was not found!",
"data": {
"code": "not_found",
"message": "Object \"clients(123)\" was not found!",
"object_name": "clients",
"object_id": "123"
}
}
}
A logical error occurred, making the request unprocessable
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "invoices-zero-amount: Impossible to create an invoice with zero amount",
"data": {
"code": "invoices-zero-amount",
"message": "Impossible to create an invoice with zero amount"
}
}
}
An unexpected error occurred
- application/json
- Schema
- Example (auto)
Schema
error object
{
"error": {
"message": "An unexpected error occurred"
}
}
Authorization: X-Api-Key
name: X-Api-Keytype: apiKeyin: headerdescription: Token for API access
- curl
- python
- nodejs
- php
- CURL