DSL Syntax

Using the following DSL syntax, the "rest/execute/v1/actions/dsl/invoke" REST API can be executed to Create, Update and Delete folders.

 

DROP FOLDER (IF EXISTS)? /path/name
 
———————————————————————————————————————————————————————————————
 
CREATE FOLDER (IF NOT EXISTS)? '/parentPath/folderName'
 
(SET PROPERTIES {json_object})?
 
(SET ANNOTATION ‘this is a FOLDER created using DSL api’ | NULL)?
 
———————————————————————————————————————————————————————————————
 
ALTER FOLDER '/parentPath/folderName' (RELOCATE TO '/newParent/newName')?
 
(SET PROPERTIES {json_object})?
 
(SET ANNOTATION ‘this is a FOLDER altered using DSL api’ | NULL)?
 
———————————————————————————————————————————————————————————————
 
SELECT * FROM model.ALL_RESOURCE_PROPERTIES WHERE
        PROPERTY_NAME = 'propName' AND
        METADATA_ID =
            (SELECT FOLDER_ID FROM model.ALL_FOLDERS
            WHERE FOLDER_NAME = 'name' AND //name of folder
            PARENT_PATH = '/path'); //parent path of the folder