Cloud Scripting
Cloud Scripting Overview
Cloud Scripting is a tool for programming application-lifecycle behavior, automating routine operations, building complex CI/CD workflows and creating reusable clustering configurations.
Cloud Scripting Overview
Cloud Scripting enables developers and platform users to describe deployment and lifecycle logic as reusable scripts. It can automate environment creation, configuration changes, scaling operations, service actions, deployment steps and other platform tasks.
Main Cloud Scripting Concepts
Actions
Scripted logic that executes commands and platform operations. Actions can use API calls, Linux shell commands, JavaScript, Java and predefined platform actions.
Events
Lifecycle triggers that start actions at a specific stage, such as installation, scaling, updating or another environment event.
Injection
Built-in access to default actions, placeholders, platform API methods, environment variables, request parameters and input settings inside custom scripts.
How the pieces fit together
An event triggers one or more actions, while placeholders and injected platform data provide the values needed by those actions at runtime.
Cloud Scripting Packages and Manifests
Cloud Scripting solutions are wrapped into packages and distributed through manifest files. A manifest describes the required environment topology, lifecycle events, actions, variables, external resources and visual settings needed to deploy or update a solution.
Quick Start Workflow
- Decide which workflow or application scenario should be automated.
- Identify the properties required for the application to work correctly.
- Declare the required topology, values, actions and events in the manifest.
- Import the completed manifest into the platform.
- Review the deployment result and logs.
Hello World is a useful starting point
A minimal example can create an application environment and deploy an application archive automatically, which makes it suitable for learning the basic Cloud Scripting structure.
Basic Manifest Structure
A simple manifest can declare the installation type, solution name, node topology and deployment actions.
In this example, the platform creates the requested application node and then downloads and deploys the application archive during the installation event.
Automation Capabilities
Custom Scripts
Custom logic can be executed inside containers or at the top level of a manifest. Shell commands can be sent to target containers, while JavaScript and Java can be used for higher-level platform automation.
Visual Settings and Custom Responses
Packages can define user-facing forms, fields, buttons, messages and other UI elements. This allows a manifest to collect installation parameters and present meaningful status or error messages during execution.
Samples and Troubleshooting
The Cloud Scripting documentation includes reusable examples for common platform operations and complete automation packages.
For troubleshooting, use the Cloud Scripting execution log to inspect action output, placeholders and errors produced during package execution.
Check the first failed action
When a package fails, start troubleshooting from the first error in the execution log. Later failures are often consequences of the original issue.
Important Notes
- Define the automation scenario before writing the manifest.
- Use lifecycle events to control when actions are executed.
- Use placeholders and environment variables instead of hard-coding dynamic values.
- Test custom scripts and package logic in non-production environments first.
- Use reusable actions and add-ons to simplify larger automation projects.
- Check platform and Cloud Scripting version compatibility when using advanced features.
