Cloud Code
Cloud Code is a feature that allows you to write and execute server-side scripts. You can create cloud code tables, write scripts in the code editor, and then test and deploy them.
Activate Service
To use the Cloud Code feature, you must first activate the service. Click the activation button to start the service.
Cloud Code Table Management
Table List
| Field | Description |
|---|---|
| Code | Unique code of the cloud code table |
| Name | Cloud code table name |
| Modified Date | Last modified date |
| Created Date | Table creation date |
| Actions | Edit, Delete buttons |
Register Table
To register a new cloud code table, click the Add button at the bottom of the list.
| Field | Description |
|---|---|
| Name * | Enter the name of the cloud code table |
Edit Table
Click the edit button in the list to modify the cloud code table's name.
Code Editor
Click the code in the table list to navigate to the code editor page. The editor page consists of the Editor tab and the Test tab.
Editor
In the editor tab, you can write and manage cloud code scripts.
| Field | Description |
|---|---|
| Version Selection | Select the version of the written script. The currently deployed version is indicated |
| Save as New Version | Save the current code as a new version |
| Deploy | Deploy the selected version |
| Delete | Delete the selected version |
The currently deployed version cannot be deployed or deleted. You must deploy a different version first before managing the previous version.
Test
In the test tab, you can execute and test the written cloud code scripts.
| Field | Description |
|---|---|
| Version * | Select the script version to test |
| Function * | Select the function to execute |
| Parameters * | Enter test parameters in JSON format |
The test results are displayed at the bottom after execution.