A new Flexera Community experience is coming on November 18th, click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Please help create dynamic parameter in "More Actions" menu

Hello!

I need help to create an additional action for the CloudApp.
That action has multiple parameters.
Im struggling to make a dynamic content of one of those parameters.
The same function with a parameter works fine with launch operation but it`s simply not executed with the additional action.
How can I achieve that?
https://selfservice-4.rightscale.com/designer/source/6261bfe24d22432e78039443

my CAT:

parameter "param_stack_items" do
type "string"
label "List of applications"
description "json:{\"definition\":\"getUserDeployments\", \"description\": \"Select application to backup from the list.\"}"
operations "backup", "launch"
end

 


operation "launch" do
description "Launch the server via Jenkins"
definition "launchVM"
end

operation "backup" do
label "backupVM"
description "Perform off-line file system backup (/dr01 only)"
definition "backupVM"
end


define launchVM($param_stack_items) do
task_label("Launching the VM..")
end

define backupVM($param_stack_items) do
task_label("Backupping")
end

(3) Replies

@nudut1 

I asked around internally and got the following response from one of the SME's:

Dynamic Parameters was a "labs" feature back in RightScale era, and most likely not something that is officially supported today.
 
With that said, I believe Dynamic Parameters are not possible after the Cloud App has been launched [i.e. when More Actions is available]. It's only usable during the Launch Cloud Application flow.
 
Thanks,

As i know define your additional action in your CloudApp's manifest file. Make sure to specify the necessary parameters, including the dynamic content parameter. The way you pass the dynamic content parameter may vary depending on the platform or tool you are using to interact with CloudApp. Test the additional action by invoking it with the provided parameters, including the dynamic content parameter. Verify that it executes as expected and that the dynamic content is correctly handled within your application logic.

 

 

 

 

PrepaidGiftBalance Visa

Ensure correct parameter definition for both "launch" and "backup."
Validate the JSON structure for "param_stack_items."
Debug by adding logs to identify any issues with parameter values.
Test with static values to isolate the problem.
Consult CloudApp documentation or seek support for platform-specific guidance.

 

 

 

Top-rated cat supplies