Resource Operations¶
Rulex Factory provides a set of API requests aiming to perform operations on resources.
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 database will be created. See Get Resource ID for more 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:
{
"status": "completed",
"code": 0,
"data": "979aff9f-a43c-4ea8-8b39-c0457587f93d",
"desc": "",
"status_code": 200,
"topic": "resource/Create/Database/c4ff0035-4a1b-4270-9821-66cc8b8cbf9e"
}
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, 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:
{
"status": "completed",
"code": 0,
"data": "e2aea3b4-04c1-4164-b8dd-df2269da33c1",
"desc": "",
"status_code": 200,
"topic": "resource/Create/Filesystem/c4ff0035-4a1b-4270-9821-66cc8b8cbf9e"
}
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:
{
"status": "completed",
"code": 0,
"data": "56c826aa-8066-4a82-b2a3-d965ea42c3bb",
"desc": "",
"status_code": 200,
"topic": "resource/Create/Macro/c4ff0035-4a1b-4270-9821-66cc8b8cbf9e"
}
Create Repository¶
Description: Creates a new repository in the environment, which is identified by the ID {envId}.
POST /resource/create/repository/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment where the new repository will be created. |
str |
body |
connectionInfo |
The parameters to connect to the repository. Please refer to repository 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:
{
"status": "completed",
"code": 0,
"data": "59e8474f-46cc-4563-9f13-3fae2a786e80",
"desc": "",
"status_code": 200,
"topic": "resource/Create/Repository/c4ff0035-4a1b-4270-9821-66cc8b8cbf9e"
}
Create Source¶
Description: Creates a new general resource 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:
{
"status": "completed",
"code": 0,
"data": "0d11afdc-369b-45ca-b17a-8888edc06c7e",
"desc": "",
"status_code": 200,
"topic": "resource/Create/Source/c4ff0035-4a1b-4270-9821-66cc8b8cbf9e"
}
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:
{
"status": "completed",
"code": 0,
"data": "987c549a-9379-4eb7-9904-8776c5d554eb",
"desc": "",
"status_code": 200,
"topic": "resource/Create/Vault/c4ff0035-4a1b-4270-9821-66cc8b8cbf9e"
}
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 more 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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
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 more 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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
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 more 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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Delete Resources¶
Description: Deletes the resources of various types identified with the IDs provided in the resDict parameter.
POST /resource/delete/resources
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
body |
resDict |
and as value another dictionary with id and label list entries. these lists contain IDs and labels of the resources we want to delete for the particular considered resource type. See Get Resource ID for further details on how to retrieve IDs. Note label dictionary entry is only used for Progress communication. It may not match the actual name of the deleted resource. Example request body: {
"resDict": {
"filesystem" : {
"id": ["0d11afdc-369b-45ca-b17a-8888edc06c7e", "ff9ee464-64e7-4a68-bd2c-b3340da9feb3"],
"label": ["APIFilesystem", "APISource"]
},
"flow" : {
"id": ["0d11afdc-3667-45ca-b17a-8867edc06c7e"],
"label": ["FlowTest"]
}
}
}
|
dict |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Delete Source¶
Description: Deletes a general resource identified with the ID(s) sourceId.
POST /resource/delete/source
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
sourceIds |
The id(s) of the resource(s) to delete. See Get Resource ID for further details on how to retrieve IDs. |
str, or |
querystring |
srctype |
The type of the source to be created. Possible sources are:
|
str |
body |
sourceLabels |
The name(s) of the resource(s) to delete. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Import Source¶
Description: Imports one or more general resource from a specified source, placing them in the environment identified with the ID {envId}.
POST /resource/import/source/{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__. |
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 |
restype |
The resource type used to show a customized progress message |
string |
querystring |
label |
The new name of the imported flow. |
str |
body |
permissionList |
The permissions assigned to the new flow. The parameters to specify are:
|
dict or list |
querystring |
withprogress |
If |
bool |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
}
Export Source¶
Description: Exports one or more resources of type srctype
, identified with the IDs srcIds
, to a generic filesystem, which can be your local filesystem or a remote one.
POST /resource/export/source
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
body |
srctype |
|
list |
body |
srcIds |
The ID(s) of the resource(s) to be exported. |
list |
body |
params |
|
dict |
body |
srcLabels |
The labels of the resources to be exported. Used only for progress purposes. |
list |
querystring |
addsuffix |
If |
bool |
querystring |
addprefix |
If |
bool |
querystring |
newnames |
The new names to be assigned to the exported resources. |
str, or |
querystring |
onlyElement |
If |
bool |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {
"file_url": []
},
"desc": "",
"status_code": 200,
"progress": "100%"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Rename/Database/48770ac5-1bb9-4d93-9c7f-41b904cef395"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Rename/Database/48770ac5-1bb9-4d93-9c7f-41b904cef395"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Rename/Database/f38c841d-98e0-4329-8863-3710dd82ef4e"
}
Rename Repository¶
Description: Renames the repository identified with the ID {sourceId}.
POST /resource/rename/repository/{sourceId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
sourceId |
The ID of the repository 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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Rename/Repository/72fb12ad-ac40-4bee-9e42-666b70eafda6"
}
Rename Source¶
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Rename/Vault/34c39c82-5629-4795-b997-72b9f554884e"
}
Copy Database¶
Description: Copy a database from the environment pointed by {envId}
to a potentially different environment indicated by {{destenv_Id}}
.
POST /resource/copy/database/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the source environment where the environment will be taken. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
id |
The list of ids of the database to be copied. |
list |
querystring |
label |
The list of names of the database affected by the modification occurred. |
list |
querystring |
cut |
If yes, the original resource will be erased at the end of the transition. |
str |
body |
permissionList |
The permissions assigned to the new database. The parameters to specify are:
|
dict |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Copy Environment¶
Description: Copies an environment inside the environment identified by {destenv_id}.
POST /resource/Copy/Environment
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
id |
The id of the source. |
list |
querystring |
label |
The label of the source. |
list |
querystring |
destenv_id |
The id of the destination environment. |
str |
body |
permissionList |
The list of permissions to be assigned to the newly created environment. |
list |
querystring |
cut |
If |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Copy Filesystem¶
Description: Copy a filesystem from the environment pointed by {envId}
to a potentially different environment indicated by {{destenv_Id}}
.
POST /resource/copy/filesystem/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the source environment where the environment will be taken. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
id |
The list of ids of the filesystem to be copied. |
list |
querystring |
label |
The list of names of the filesystem affected by the modification occurred. |
list |
querystring |
cut |
If yes, the original resource will be erased at the end of the transition. |
str |
body |
permissionList |
The permissions assigned to the new filesystem. The parameters to specify are:
|
dict |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Copy Macro¶
Description: Copy a macro from the environment pointed by {envId}
to a potentially different environment indicated by {{destenv_Id}}
.
POST /resource/copy/macro/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the source environment where the environment will be taken. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
id |
The list of ids of the macro to be copied. |
list |
querystring |
label |
The list of names of the macro affected by the modification occurred. |
list |
querystring |
cut |
If yes, the original resource will be erased at the end of the transition. |
str |
body |
permissionList |
The permissions assigned to the new macro. The parameters to specify are:
|
dict |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Copy Repository¶
Description: Copy a repository from the environment pointed by {envId}
to a potentially different environment indicated by {{destenv_Id}}
.
POST /resource/copy/repository/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the source environment where the environment will be taken. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
id |
The list of ids of the repository to be copied. |
list |
querystring |
label |
The list of names of the repository affected by the modification occurred. |
list |
querystring |
cut |
If yes, the original resource will be erased at the end of the transition. |
str |
body |
permissionList |
The permissions assigned to the new repository. The parameters to specify are:
|
dict |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Copy Source¶
Description: Copies a source of type {srctype} inside the environment identified by {destenv_id}.
POST /resource/Copy/Source
Parameters
Parameters in bold are mandatory.
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
Copy Vault¶
Description: Copy a vault from the environment pointed by {envId}
to a potentially different environment indicated by {{destenv_Id}}
.
POST /resource/copy/vault/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the source environment where the environment will be taken. See Get Resource ID for further details on how to retrieve IDs. |
str |
querystring |
id |
The list of ids of the vault to be copied. |
list |
querystring |
label |
The list of names of the vault affected by the modification occurred. |
list |
querystring |
cut |
If yes, the original resource will be erased at the end of the transition. |
str |
body |
permissionList |
The permissions assigned to the new vault. The parameters to specify are:
|
dict |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
List Start Resources¶
Description: Lists all the resources in the last seen environment for the current user.
GET /resource/list/startresources
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
querystring |
resourceTypes |
The resource types to be considered in the list operation. |
str, or |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {
"resources": {},
"n_resources": 0,
"create": true,
"folder": {
"id": "55e6e7f4-7bfc-4726-b506-afe61893d701",
"name": "Env_postman"
},
"path": {
"id": [
"c8ca121e-91ef-4ad3-8df2-735d5cd08049",
"60587735-cc2d-4325-ac4e-38c544f966e3"
],
"name": [
"/",
"rulex"
]
}
},
"desc": "",
"status_code": 200,
"topic": "resource/List/StartResources"
}
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:
{
"status": "completed",
"code": 0,
"data": {
"resources": {
"e919d82d-2e10-4753-ae1b-610190ec873c": {
"type": "database",
"name": "APIPostgres",
"isversioned": false,
"islocked": false
}
},
"n_resources": 1,
"folder": {
"id": "d4c60ad0-1a2b-4d29-875f-c56108e1ecd7",
"name": "Env_cm"
},
"path": {
"id": [
"c8ca121e-91ef-4ad3-8df2-735d5cd08049",
"60587735-cc2d-4325-ac4e-38c544f966e3"
],
"name": [
"/",
"rulex"
]
},
"create": true
},
"desc": "",
"status_code": 200,
"topic": "resource/List/Database/d4c60ad0-1a2b-4d29-875f-c56108e1ecd7"
}
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:
{
"status": "completed",
"code": 0,
"data": {
"resources": {},
"n_resources": 0,
"folder": {
"id": "d4c60ad0-1a2b-4d29-875f-c56108e1ecd7",
"name": "Env_cm"
},
"path": {
"id": [
"c8ca121e-91ef-4ad3-8df2-735d5cd08049",
"60587735-cc2d-4325-ac4e-38c544f966e3"
],
"name": [
"/",
"rulex"
]
},
"create": true
},
"desc": "",
"status_code": 200,
"topic": "resource/List/Filesystem/d4c60ad0-1a2b-4d29-875f-c56108e1ecd7"
}
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:
{
"status": "completed",
"code": 0,
"data": {
"resources": {
"f38c841d-98e0-4329-8863-3710dd82ef4e": {
"type": "macro",
"name": "APIMacro_new",
"isversioned": false,
"islocked": false
}
},
"n_resources": 1,
"folder": {
"id": "d4c60ad0-1a2b-4d29-875f-c56108e1ecd7",
"name": "Env_cm"
},
"path": {
"id": [
"c8ca121e-91ef-4ad3-8df2-735d5cd08049",
"60587735-cc2d-4325-ac4e-38c544f966e3"
],
"name": [
"/",
"rulex"
]
},
"create": true
},
"desc": "",
"status_code": 200,
"topic": "resource/List/Macro/d4c60ad0-1a2b-4d29-875f-c56108e1ecd7"
}
List Repository¶
Description: Lists the repositories in the parent environment identified with the ID {envId}.
GET /resource/list/repository/{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:
{
"status": "completed",
"code": 0,
"data": {
"resources": {
"72fb12ad-ac40-4bee-9e42-666b70eafda6": {
"type": "repository",
"name": "APIRepository_new",
"isversioned": false,
"islocked": false
}
},
"n_resources": 1,
"folder": {
"id": "d4c60ad0-1a2b-4d29-875f-c56108e1ecd7",
"name": "Env_cm"
},
"path": {
"id": [
"c8ca121e-91ef-4ad3-8df2-735d5cd08049",
"60587735-cc2d-4325-ac4e-38c544f966e3"
],
"name": [
"/",
"rulex"
]
},
"create": true
},
"desc": "",
"status_code": 200,
"topic": "resource/List/Repository/d4c60ad0-1a2b-4d29-875f-c56108e1ecd7"
}
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:
{
"status": "completed",
"code": 0,
"data": {
"resources": {
"34c39c82-5629-4795-b997-72b9f554884e": {
"type": "vault",
"name": "APIVault_new",
"isversioned": false,
"islocked": false
}
},
"n_resources": 1,
"folder": {
"id": "d4c60ad0-1a2b-4d29-875f-c56108e1ecd7",
"name": "Env_cm"
},
"path": {
"id": [
"c8ca121e-91ef-4ad3-8df2-735d5cd08049",
"60587735-cc2d-4325-ac4e-38c544f966e3"
],
"name": [
"/",
"rulex"
]
},
"create": true
},
"desc": "",
"status_code": 200,
"topic": "resource/List/Vault/d4c60ad0-1a2b-4d29-875f-c56108e1ecd7"
}
Execute Macro¶
Description: Execute the macro identified with the ID macroId.
POST /resource/execute/macro/{macroId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
macroId |
The id of the macro you want to execute. See Get Resource ID for further details on how to retrieve the ID. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": [
{
"status_code": 200,
"response_timestamp": "2025-02-21T15:42:04.774412Z",
"request_id": "a2fd592a-d02e-4d43-91b7-262545df9c4e",
"headers": {
"Server": "TornadoServer/6.2",
"Content-Type": "application/json",
"Date": "Fri, 21 Feb 2025 15:42:01 GMT",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "x-requested-with, content-range, content-disposition, content-type",
"Access-Control-Allow-Methods": "POST, GET, OPTIONS",
"Connection": "keep-alive",
"X-Rulex-Request-Client-Id": "client_id.api",
"X-Rulex-Request-Id": "a2fd592a-d02e-4d43-91b7-262545df9c4e",
"X-Rulex-Arch-Public-Key": "the_public_key",
"X-Rulex-Request-License": "x_rulex_request_license",
"X-Rulex-Request-Type": "sync",
"X-Rulex-Refresh-Token": "rulex_refresh_token",
"X-Rulex-Response-Timestamp": "2025-02-21T15:42:04.774412Z",
"Content-Length": "197"
},
"elapsed_seconds": 3.617526,
"content-type": "application/json",
"body": {
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJyYXV0aCIsImF1ZCI6InJ1bGV4U2VydmVyIiwic3ViIjoic2FyYXNhbl9yZXN0YXBpIiwiZXhwIjoxNzQwMTU1NzY2LCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJzYXJhc2FuX3Jlc3RhcGkiLCJwcm9kdWN0a2V5IjoiTjNOV1otVjQ2U0ItSExaUFktWUlCNUMtSU5ZNkktICAiLCJhdHRyaWJ1dGVzIjp7IlByb2R1Y3RLZXkiOiJOM05XWi1WNDZTQi1ITFpQWS1ZSUI1Qy1JTlk2SS0gICJ9LCJzZXJ2aWNlX2dyb3VwcyI6WyJBbGwgVXNlcnMiXSwicm9sZXMiOltdfQ.j1H0iWJCIYSTO07C25MUlu82mwfy8fxbT09_7jxcrCUCGOGD0fstaZvr_c0NK-6xj-4HWxN-Z9fg1clXCdM655YlHzLd1EEi9ls05MDomIsv29OSGFK7TmNlML_5BCBzjOc70nQ3Tgz08DgNaUd5gxQI5PYUL_H34NhBPvIluDA",
"refreshToken": "fakeRESTAPIRefreshToken",
"code": 0,
"data": "0b35287e-7979-48a2-bdf5-f87eaf35ac22",
"desc": ""
}
},
{
"status_code": 200,
"response_timestamp": "2025-02-21T15:42:09.926791Z",
"request_id": "a2fd592a-d02e-4d43-91b7-262545df9c4e",
"headers": {
"Server": "TornadoServer/6.2",
"Content-Type": "application/json",
"Date": "Fri, 21 Feb 2025 15:42:06 GMT",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "x-requested-with, content-range, content-disposition, content-type",
"Access-Control-Allow-Methods": "POST, GET, OPTIONS",
"Connection": "keep-alive",
"X-Rulex-Request-Client-Id": "f3b18ff3-6389-44be-b32a-client_id.api",
"X-Rulex-Request-Id": "a2fd592a-d02e-4d43-91b7-262545df9c4e",
"X-Rulex-Arch-Public-Key": "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlHZk1BMEdDU3FHU0liM0RRRUJBUVVBQTRHTkFEQ0JpUUtCZ1FEQkNsakVIZ0g3MjdHRHBGd0lMekpLR092VAoyS0F5TG1ZVnNPNTJEelhyTnkvWlJTUytRZ0N2clFDYzFOS2JSQWVPd0JJTU5HNFhCNDZDZHRZRWJ1L2UwMmZvCkxMWEF0bHcvVjRFRURxdkpDNWNhVGhCZWlMYnBueTNzMnNCbWFZVEFJZmt1blNnRXROQXRsWTBvTm9uVk1wYkUKWDJ4M05US2ZuTzJoUEdpbzRRSURBUUFCCi0tLS0tRU5EIFBVQkxJQyBLRVktLS0tLQo=",
"X-Rulex-Request-License": "x_rulex_request_license",
"X-Rulex-Request-Type": "sync",
"X-Rulex-Refresh-Token": "rulex_refresh_token",
"X-Rulex-Response-Timestamp": "2025-02-21T15:42:09.926791Z",
"Content-Length": "176"
},
"elapsed_seconds": 3.363877,
"content-type": "application/json",
"body": {
"token": "the_token",
"refreshToken": "the_refresh_token",
"code": 0,
"data": {
"textfile1": 5,
"dataman1": 2
},
"desc": ""
}
}
],
"desc": "",
"status_code": 200,
"progress": "100%"
}
Stop Macro¶
Description: Stops the execution of a running macro identified with the ID macroId.
POST /resource/stop/executemacro/{macroId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
macroId |
The id of the running macro you want to stop. See Get Resource ID for further details on how to retrieve the ID. |
str |
Response
The response schema for this specific request follows standard exposed in api response section. An example response is:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Stop/Macro/eea645ea-2fb3-4e56-9f37-0fff7fa7bcd0"
}