A new Flexera Community experience is coming on November 18th, click here for more information.
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
Apr 22, 2022 12:10 PM
I asked around internally and got the following response from one of the SME's:
May 05, 2022 02:21 AM
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.
Jun 30, 2023 04:37 AM - edited Jul 02, 2023 11:40 PM
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.
Feb 15, 2024 10:00 PM - edited Feb 15, 2024 10:01 PM