Create a policy action script
-
- UpdatedAug 3, 2023
- 3 minutes to read
- Vancouver
- Cloud Management
Use policy action scripts to get, update, or set values in cloud requests.
Before you begin
About this task
For more information on using scripts, see Cloud scripts and cloud script templates.
Procedure
Example
This example returns a random number:
This example script adds three hours to the lease date using the base-system GlideDateTime class.
This example script sets the user-specified Azure Wordpress DNS name field from the form to the same name as the stack name:
Related Content
- Example policy action script that tags resources
Your instance tracks tagged resources for billing and reporting. Policy action scripts can add and modify resource tags. This example tags a storage volume resource.