Environment Operations¶
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:
{
"status": "completed",
"code": 0,
"data": {
"id": "eca9d0f8-21ea-4c7a-8b43-382d1df0f674"
},
"desc": "",
"status_code": 200,
"topic": "resource/Create/Environment/c4ff0035-4a1b-4270-9821-66cc8b8cbf9e"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"progress": "100%"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Rename/Environment/10b2dee9-b282-4cb7-bcd4-e255e6ff1e90"
}
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:
{
"status": "completed",
"code": 0,
"data": {
"resources": {
"10b2dee9-b282-4cb7-bcd4-e255e6ff1e90": {
"type": "environment",
"name": "AP_Env_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/Environment/d4c60ad0-1a2b-4d29-875f-c56108e1ecd7"
}
Set Environment Variable¶
Description: Create a new environment variable or update an existing environment variable in the environment identified with the ID {envId}.
POST /resource/set/varenv/{envId}
Parameters
Parameters in bold are mandatory.
Location |
Name |
Description |
Type |
---|---|---|---|
path |
envId |
The ID of the environment we want to modify. 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 value of the variable. In case of update of existing variable it could be omitted to maintain the previous value. |
str, or |
body |
issensitive |
A boolean to state if the variable is sensitive or not. In case of update of existing variable it could be omitted to maintain the previous value. |
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,
"topic": "resource/Set/VarEnv/2a71c414-8e0b-42e6-80ff-49e8dce6c8a5"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Delete/VarEnv/c4ff0035-4a1b-4270-9821-66cc8b8cbf9e"
}
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:
{
"status": "completed",
"code": 0,
"data": {},
"desc": "",
"status_code": 200,
"topic": "resource/Rename/VarEnv/d4c60ad0-1a2b-4d29-875f-c56108e1ecd7"
}
List Environment Variable¶
Description: List the environment variables contained in the environment 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 variable to be renamed. 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": {
"code": [
{
"name": "testenvvar_new",
"value": "\"topolino\"",
"issensitive": 0
},
{
"name": "testenvvar3",
"value": "\"pippo\"",
"issensitive": 0
}
],
"vault": []
},
"desc": "",
"status_code": 200,
"topic": "resource/List/VarEnv/2a71c414-8e0b-42e6-80ff-49e8dce6c8a5"
}