Create a new Folder#
Can create top level and sub level folders. The folder will be created on a given target node. Node IDs can be found in the web portal.
POST https://api.cloudplan.net/api/folder/create
Request Parameters#
{
"node_id": "",
"folder_name": "",
"parent_id": ""
}
node_id | (string)
This parameter is optional when parent_id is set (i.e. a sub level is created)
Create the folder on this specific node. If a parent_id is given and node_id is left empty a suitable node will be selected automatically with priority on the private cloud nodes.
If a parent_id is given it can be the id of any node that synchronizes the parent folder.
folder_name | (string)
Name of the new folder
parent_id | (optional) (string)
If left empty a top-level folder will be created on the given node. Otherwise the new folder will be created as sub-level folder of this.
Example#
This request creates a sub folder in a given parent folder with automatic storage node selection.
{
"parent_id": "6319C982C7C0D952BFAA7347D212E57D",
"folder_name": "testapi1"
}
{
"result": true,
"folder_id": "696E0525F62C01AB095421152ECAACC8"
}