Process Manager
Welcome to the SIGMA Process Manager API.
The Process Manager API allows you to manage processes in the intranet partitions.
The API documentation will start with a general overview about the design and technology that has been implemented, followed by reference information about specific endpoints.
Any tool that is fluent in HTTP can communicate with the API simply by requesting the correct URI. Requests should be made using the HTTPS protocol so that traffic is encrypted. The interface responds to different methods depending on the action required.
Method | Usage |
---|---|
GET | For simple retrieval of information about processes and their status, you should use the GET method. The information you request will be returned to you as a JSON object. The attributes defined by the JSON object can be used to form additional requests. Any request using the GET method is read-only and will not affect any of the objects you are querying. |
DELETE | To destroy a process and remove it from the partition, the DELETE method should be used. This will remove the specified object if it is found. If it is not found, the operation will return a response indicating that the object was not found. This idempotency means that you do not have to check for a resource’s availability prior to issuing a delete command, the final state will be the same regardless of its existence. |
PUT | To update the information about a process in its partitions, the PUT method is available. Like the DELETE Method, the PUT method is idempotent. It sets the state of the target using the provided values, regardless of their current values. Requests using the PUT method do not need to check the current attributes of the object. This method is thought to perform operations defined in Perform an operation on a process, |
POST | To create a new process, your request should specify the POST method. The POST request includes all of the attributes necessary to create a new object. When you wish to create a new object, send a POST request to the target endpoint. |
When a request is successful, a response body will typically be sent back in the form of a JSON object. An exception to this is when a DELETE request is processed, which will result in a successful HTTP 204 status and an empty response body.
Inside of this JSON object, the resource root that was the target of the request will be set as the key. This will be always be a plural form of the word, for operations on both single object and their collection.
RESPONSE FOR A GET ON /processes and /processes/{id}
{
"processes": [
{
"id": 1,
"name": "fibonacci"
. . .
},
{
"id": 10
"name": "motors_checkup"
}
]
}
PUT method is allowed on a specific process in order to perform some predefined operations. It returns:
- 404 if the process does not actually exist, 400
- 400 if the request is not well formed
- 200 if the request is well formed - a RequestOperationResult JSON object is returned in this case
{id}
{id}
{id}
Get a list of all processes on the node and relevant information related to them.
Request parameters
If it is specified, the corresponding process is returned (if it exists).
Responses
Body
DORMANT
WAITING
READY
RUNNING
SUSPENDEND
ONE_SHOT
PERIODIC
Period duration in milliseconds
It process_name param is given and no corresponding process exists, this is the response.
Create a new process.
Request body
DORMANT
WAITING
READY
RUNNING
SUSPENDEND
ONE_SHOT
PERIODIC
Period duration in milliseconds
Responses
{id}
Get the specified process.
Path variables
Responses
Body
DORMANT
WAITING
READY
RUNNING
SUSPENDEND
ONE_SHOT
PERIODIC
Period duration in milliseconds
{id}
Perform an operation on the specified process. Start, suspend, resume and stop are supported operations. RequestOperationType
Path variables
Request body
START
SUSPEND
RESUME
STOP
Responses
Body
OK
FAILED
This object contains all relevant information about a process.
DORMANT
WAITING
READY
RUNNING
SUSPENDEND
ONE_SHOT
PERIODIC
Period duration in milliseconds
This is a representation of what responses to operations requests consist of.
DORMANT
WAITING
READY
RUNNING
SUSPENDEND
OK
FAILED
Used for retrieving a process whose id id not known. (Get all processes) If a process with the specified name exists, it is returned.
Used when a process is created successfully. (Create new process)