REST API Reference Manual¶
Here you can find the whole list of exposed REST API calls.
Warning
REST API service is exposed only in Rulex Platform Cloud version.
In Standalone version please use the Rulex Platform Command Line Interface.
Using the general approach it is possible to map all these API calls in command line arguments.
Auth Token¶
Description: Provides the access bearer token. This request is compliant with the OAuth 2.0 standard.
POST /auth/token
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
body |
grant_type |
The authentication type used for obtaining the token. At the moment only the ‘client_credentials’ grant type is supported. Valid for both the Client ID & Secret and the Signed JWT authentication types. |
str |
body |
client_id |
The client ID of the REST API user to perform authentication. Valid for both the Client ID & Secret and the Signed JWT authentication types |
str |
body |
client_secret |
The REST API user’s client secret. Valid for the Client ID & Secret authentication. |
str |
body |
client_assertion |
The REST API user’s client assertion. Valid for the Signed JWT authentication. |
str |
body |
client_assertion_type |
The REST API user’s client assertion type. Only the following assertion type is currently supported: |
str |
body |
scope |
The scope of the request to obtain the Auth Token. If it is left empty, it refers to the internal API client. While if users want to use the https://graph.microsoft.com/.default scope, they can type it or simply type the word microsoft. Any other scope will not be valid. |
str |
Response
The response schema for this specific request is:
{
"access_token": "<the_access_token>",
"expires_in": 7200,
"refresh_expires_in": 7200,
"refresh_token": "<the_refresh_token>",
"token_type": "Bearer",
"not-before-policy": 0,
"session_state": "f39d6818-5c83-4cc5-92b5-6982112cac8c",
"scope": "email profile"
}
Compute Flow¶
Description: Computes a flow, which is identified with the {rflId}.
POST /compute/compute/flow/{rflId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
mode |
|
str |
querystring |
onetime |
Perform a one-time computation starting from a .rfl file or a flow version on a repository. It can be true or false (default). The imported file is automatically disambiguated from the other flows on the working area to permit infinite parallel computations of the same flow. Flow at the end can be deleted according to an ad-hoc compute params entry. |
bool |
path |
rflId |
The ID of the flow. See Get Resource ID for further details on how to retrieve IDs. |
str |
body |
taskList |
The list of the tasks to be computed. |
str, or list for multiple tasks. |
body |
compute_params |
|
dict |
body |
import_params |
The import information used in case of one-time computation (ignored in all other cases). Dictionary composed by:
|
dict |
Note
The syntax for the procvar parameter is the GOLD syntax, with specific rules whether the variable is ordinal or a string:
For all the variables: the
@
symbol is not required before them, the variable is written in .json format.For ordinal variables: numbers must be included into ". e.g.
{"var1":"2"}
For nominal variables: the string must be included into “, and it must be further included in ". e.g.
{"var2":"\"string\""}
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Create Database¶
Description: Creates a new database inside the environment identified by {envId}.
POST /resource/create/database/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the new environment will be created. See Get Resource ID for further details on how to retrieve IDs. |
str |
body |
connectionInfo |
The parameters to connect to the database. It is a different dictionary for each type of database, please refer to database definition for key/value representation. |
dict |
querystring |
label |
The name of the new database. |
str |
body |
permissionList |
The permissions assigned to the new database. The parameters to specify are:
|
list |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Create Environment¶
Description: Creates a new environment inside the environment identified by {envId}.
POST /resource/create/environment/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the new environment will be created. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
label |
The name of the new environment. |
str |
body |
permissionList |
The permissions assigned to the new environment. The parameters to specify are:
|
list |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Create Filesystem¶
Description: Creates a new filesystem in the environment, which is identified by the ID {envId}.
POST /resource/create/filesystem/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the new filesystem will be created. |
str |
body |
connectionInfo |
The parameters to connect to the filesystem. It is a different dictionary for each type of filesystem, please refer to filesystem definition for key/value representation. |
dict |
querystring |
label |
The name of the new filesystem. |
str |
body |
permissionList |
The permissions assigned to the new filesystem. The parameters to specify are:
|
list |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Create Flow¶
Description: Creates a flow in the environment. The environment is identified by the {envId}.
POST /resource/create/flow/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the flow will be created. |
str |
querystring |
label |
The name of the flow to be created. |
str |
body |
permissionList |
The permissions assigned to the new flow. The parameters to specify are:
|
list |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Create Macro¶
Description: Creates a macro in the environment. The environment is identified by the {envId}.
POST /resource/create/macro/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the new macro will be created. See Get Resource ID for further details on how to retrieve IDs. |
str |
body |
connectionInfo |
The parameters to define the macro. Please refer to macro definition for key/value representation. |
dict |
querystring |
label |
The name of the new macro. |
str |
body |
permissionList |
The permissions assigned to the new macro. The parameters to specify are:
|
list |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Create Source¶
Description: Creates a new source in the environment identified with the ID {envId}.
POST /resource/create/source/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the new source will be created. |
str |
querystring |
srctype |
The type of the source to be created. Possible sources are:
|
str |
body |
connectionInfo |
The parameters to define the generic source. Definition of connection representation depends on the srctype value. Please refer to resources definition and pick the correct source type to obtain the correct key/value representation. |
dict |
querystring |
label |
The name of the new source. |
str |
body |
permissionList |
The permissions assigned to the new source. The parameters to specify are:
|
list |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Create Environment Variable¶
Description: Creates a new environment variable in the environment identified by the ID {envId}.
POST /resource/create/varenv/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the new environment variable will be created. |
str |
body |
varname |
The name of the variable. |
str |
body |
vartype |
The type of the variable. It can be:
|
str |
body |
value |
The original value of the variable. |
str |
body |
issensitive |
A flag which indicates if the variable contains sensitive data (“1”) or not (“0”). |
int |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Create Vault¶
Description: Creates a vault in the environment. The environment is identified by the {envId}.
POST /resource/create/vault/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the vault will be created. |
str |
body |
connectionInfo |
The parameters to define the vault. It is a different dictionary for each type of vault, please refer to vault definition for key/value representation. |
dict |
querystring |
label |
The name of the new vault. |
str |
body |
permissionList |
The permissions assigned to the new vault. The parameters to specify are:
|
list |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Delete Database¶
Description: Deletes the database(s) identified with the ID(s) sourceIds.
POST resource/delete/database
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
sourceIds |
The Id(s) of the database(s) to delete. See Get Resource ID for further details on how to retrieve IDs. |
str, or |
body |
sourceLabels |
The name(s) of the database(s) to delete. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Delete Environment¶
Description: Deletes the environment(s) identified with the ID(s) envIds.
POST /resource/delete/environment
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
envIds |
The id(s) of the environment(s) to delete. See Get Resource ID for further details on how to retrieve IDs. |
str, or |
body |
envLabels |
The name(s) of the environment(s) to delete. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Delete Environment Variable¶
Description: Deletes one or more environment variables in the environment identified with the ID {envId}.
GET /resource/delete/varenv/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The id of the environment where you want to delete the environment variable. To find out more on how to retrieve the ID, go to the Get Resource ID page. |
str |
body |
varname |
The name of the variables to delete. |
str, or |
body |
vartype |
The type of the variables to be deleted. |
str, or |
querystring |
alsocurr |
If |
bool |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Delete Filesystem¶
Description: Deletes the filesystem(s) identified with the ID(s) sourceId.
POST /resource/delete/filesystem
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
sourceIds |
The id(s) of the filesystem(s) to delete. See Get Resource ID for further details on how to retrieve IDs. |
str, or |
body |
sourceLabels |
The name(s) of the filesystem(s) to delete. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Delete Flow¶
Description: Deletes the flow(s), identified with the ID(s) flowIds.
POST /resource/delete/flow
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
flowIds |
The id(s) of the flow(s) to delete. See Get Resource ID for further details on how to retrieve IDs. |
str, or |
body |
flowLabels |
The name(s) of the flow(s) to delete. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Delete Macro¶
Description: Deletes the macro(s) identified with the ID sourceIds.
POST /resource/delete/macro
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
sourceIds |
The id of the macro(s) you want to delete. See Get Resource ID for further details on how to retrieve IDs. |
str, or |
body |
sourceLabels |
The name(s) of the macro(s) to delete. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Delete Repository¶
Description: Deletes the repository(s), identified with the ID(s) sourceIds.
POST /resource/delete/repository
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
sourceIds |
The id(s) of the repository to delete. See Get Resource ID for further details on how to retrieve IDs. |
str, or |
body |
sourceLabels |
The name(s) of the repositories to delete. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Delete Vault¶
Description: Deletes the vault(s) identified with the ID(s) sourceIds.
POST /resource/delete/vault
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
sourceIds |
The ID(s) of the vault(s) you want to delete. See Get Resource ID for further details on how to retrieve IDs. |
str, or |
body |
sourceLabels |
The name(s) of the vault(s) to delete. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Export Flow¶
Description: Exports one or more flows, identified with the IDs {flowIds}, to a generic filesystem, which can be your local filesystem or a remote one.
POST /resource/export/flow
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
body |
flowIds |
The ID(s) of the flow(s) to be exported. |
str, or |
body |
params |
The export parameters of the flows. Depending on the URI, the other parameters vary. |
dict |
body |
flowLabels |
The labels of the flows to be exported. |
str, or |
body |
diz_export |
The parameters regarding the export mode. Their value can be True (default value) or False. The export mode parameters available are: “topology”: if |
dict |
querystring |
source_refs |
If |
bool |
querystring |
addsuffix |
If |
bool |
querystring |
addprefix |
If |
bool |
querystring |
addtag |
If |
bool |
querystring |
taskList |
The list of the tasks to be exported. |
str, or |
querystring |
newnames |
The new names to be assigned to the exported flows. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Get File¶
Description: Downloads a file after an export operation performed on a local filesystem. The path parameter {fileId}
can be a single ID or the concatenation of multiple IDs, separated by a ‘/’.
The ID is returned by the previous export operation. See Export Flow for details.
GET /get/file/{fileId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
fileId |
The id of the filesystem where you want to save the file. See Get Resource ID for further details on how to retrieve IDs. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Get Resource ID¶
Description: Returns the ID of the resource identified with the path {resourcePath}
and the type {resourceType}
.
GET /resource/get/ResourceId
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
resourcePath |
The path of the resource. |
str |
querystring |
resourceType |
The type of the source whose ID will be retrieved. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Get Result¶
Description: Gets the result of the request identified with the ID {reqId}
.
Warning
The results of the request will be kept for two days, after which they will be deleted.
GET /get/result/{reqId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
reqId |
The id of the request. See API Structure for further details on how to set or retrieve API unique request ID. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Import Flow¶
Description: Imports one or more flows from a specified source, placing them in the environment identified with the ID {envId}.
POST /resource/import/flow/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
origin |
The source where the flow to import is located. Possible values are __local__, __filesystem__, __repo__. |
str |
path |
envId |
The ID of the environment where the flows will be imported. See Get Resource ID for further details on how to retrieve IDs. |
str |
body |
params |
A dictionary describing the parameters of the import. Possible entries are:
|
dict |
querystring |
incurr |
If |
bool |
querystring |
label |
The new name of the imported flow. |
str |
querystring |
inmemory |
If |
bool |
body |
permissionList |
The permissions assigned to the new flow. The parameters to specify are:
|
dict or list |
querystring |
withprogress |
If |
bool |
querystring |
convertmodule |
The selected module conversion policy. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
List Database¶
Description: Lists the databases in the parent environment identified with the ID {envId}.
GET /resource/list/database/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment from which you want to retrieve the list of databases. See Get Resource ID for further details on how to retrieve IDs. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
List Environment¶
Description: Lists the environments contained in the parent environment identified with the ID {envId}.
GET /resource/list/environment/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the parent environment from which you want to retrieve the list of environments. See Get Resource ID for further details on how to retrieve IDs. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
List Filesystem¶
Description: Lists the filesystem(s) contained in the parent environment, which is identified with the ID {envId}.
GET /resource/list/filesystem/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the parent environment from which you want to retrieve the list of filesystems. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
List Flow¶
Description: Lists the flows in the parent environment identified with the ID {envId}.
GET /resource/list/flow/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment from which you want to retrieve the list of flows. See Get Resource ID for further details on how to retrieve IDs. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
List Macro¶
Description: Lists the macros in the parent environment identified with the ID {envId}.
GET /resource/list/macro/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment from which you want to retrieve the list of macros. See Get Resource ID for further details on how to retrieve IDs. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
List Environment Variables¶
Description: Lists the environment variables in the parent environment identified with the ID {envId}.
GET /resource/list/varenv/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment from which you want to retrieve the list of environment variables. See Get Resource ID for further details on how to retrieve IDs. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
List Vault¶
Description: Lists the vaults in the parent environment identified with the ID {envId}.
GET /resource/list/vault/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment from which you want to retrieve the list of vaults. See Get Resource ID for further details on how to retrieve IDs. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Rename Database¶
Description: Renames the database identified with the ID {sourceId}.
POST /resource/rename/database/{sourceId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
sourceId |
The ID of the database to be renamed. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
newlabel |
The new name for the resource. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Rename Environment¶
Description: Renames the environment identified with the ID {envId}.
POST /resource/rename/environment/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment to be renamed. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
newlabel |
The new name for the resource. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Rename Filesystem¶
Description: Renames the filesystem identified with the ID {sourceId}.
POST /resource/rename/filesystem/{sourceId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
sourceId |
The ID of the filesystem to be renamed. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
newlabel |
The new name for the resource. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Rename Flow¶
Description: Renames the flow identified with the ID {rflId}.
POST /resource/rename/flow/{rflId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
rflId |
The ID of the flow to be renamed. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
newlabel |
The new name for the resource. |
str |
body |
isSelected |
If |
bool |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Rename Macro¶
Description: Renames the macro identified with the ID {sourceId}.
POST /resource/rename/macro/{sourceId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
sourceId |
The ID of the macro to be renamed. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
newlabel |
The new name for the resource. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Rename Environment Variable¶
Description: Renames the environment variable identified with the ID {envId},
POST /resource/rename/varenv/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment variable to be renamed. See Get Resource ID for further details on how to retrieve IDs. |
str |
body |
vartype |
The variable type. It can be ‘code’ or ‘vault’. |
str |
body |
oldname |
The old name of the variable. |
str |
body |
newname |
The new name of the variable. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Rename Vault¶
Description: Renames the vault identified with the ID {sourceId}.
POST /resource/rename/vault/{sourceId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
sourceId |
The ID of the vault to be renamed. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
newlabel |
The new name for the resource. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Set Stop Computation¶
Description: Ends the computation of the flow identified with the ID {rflId}.
POST /compute/set/stopcomputation/{rflId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
rflId |
The ID of the flow which is computing. See Get Resource ID for further details on how to retrieve IDs. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Set Environment Variable¶
Description: Updates an existing environment variable in the environment identified with the ID {envId}.
POST /resource/set/updatevarenvvalue/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment which contains the variable to be updated. See Get Resource ID for further details on how to retrieve IDs. |
str |
body |
varname |
The name of the variable. |
str, or |
body |
vartype |
The type of the variable. It can be ‘code’ or ‘vault’. |
str, or |
body |
value |
The new name of the variable. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}