Introduction
Cloud Workflow Console (CWF) code to get data from AWS Sydney (Cloud 8) with instance name from end user.
Code Syntax
define get_servers($name) return $new_instance do
@instances =rs_cm.clouds.get(cloud_id: 8).instances(filter: ["name=="+$name], view: "tiny")
$new_instance=size(@instances)
end
CWF Console
name is an input variable. Ex. sql
Expected Outcome
Process Info
Outputs
Tasks
Source
- Displays the source code that was used. If you want to modify and reuse the code, click on
Clone
Notes
The RCL code can above be changed to point to any cloud. For example:
- AWS EU Ireland: cloud_id:
2
- GCP: cloud_id:
2175
- AzureRM West US: cloud_id:
3518