Skip to Content

SQL Anywhere, on-demand edition Cloud Rules


Module 9 - Cloud Rules

In this module, you will walk through how to define and use cloud rules and how they allow enforcement of business rules and the management of resources in the cloud.


You should now be familiar with creating and adding hosts, servers, and databases to the cloud. It is expected that you have created a cloud with a minimum of two cloud servers on multiple hosts and two databases. Some tags should be created and applied to the cloud.

Creating Cloud Rules

Cloud rules are used to apply business rules to cloud objects. For example, you may want to ensure that two predefined databases never reside on the same cloud server for business reasons, or you may want a database to only reside on certain hosts due to geographic restrictions. Rules can be formulated to accommodate these requirements.

To create a cloud rule:

  1. On the Overview page for the cloud, click Rules in the left hand navigation pane.
  2. On the Rules panel, click Create.                    
  3. Provide a name for the cloud rule. Decide whether the rule applies to databases, cloud servers, or hosts. Then decide whether the rule will affect all objects, a specific object, or ones that have a specific tag applied to them. Finally, specify the rule parameters. After these parameters are provided, you can create the rule that must apply to the object(s) selected. Sample rules are provided at the bottom of the dialog. In the screenshot below, the cloud rule dictates that the demo database must not reside on the host MYCLOUD-1.
  4. Using your knowledge from previous modules, violate the rule you created by moving databases as required. After the rule is violated, you will see a message in the Events tab that notifies you of the violation. For more information about rules and the different types of rules that can be created in the on-demand edition cloud, see the documentation at

No comments