Using the web UI, you can easily create, edit, invoke and manage actions within packages for different IBM Cloud namespaces and regions.
- Select "Actions" from the left-hand menu panel on the IBM Cloud Functions homepage which will display the Management page for actions. It shows actions created within the selected IBM Cloud namespace and region.
The following screenshot shows a listing of actions created in the test-iam-namespace namespace in the Dallas region:
- Click on the name of the
helloaction to move to the action details page.
The action details page shows properties for the chosen action.
For actions written in a supported language runtime, a source code editor with the action code is displayed. It allows users to make live changes and publish them making them immediately available to users.
Using the menu on the left-hand side, different properties for the action can be accessed and modified:
- Code shows action source code in editor.
- Parameters shows default parameters for the action.
- Runtime shows the action runtime, timeout value, and memory limit.
- Endpoints allow you to enable the action as a web action, and/or raw HTTP action and shows its HTTP endpoint.
- Connected triggers shows the triggers the action is connected to.
- Enclosing sequences shows sequences which use this action.
You can explore these options later at your convenience.
Let's see what happens when we invoke the selected action from the details page.
- Click the "Invoke" button to invoke the action and display the resulting activation record.
as you can see the results show that output of the action with the default location parameter applied.
Next, let's invoke the action with a value for the name parameter.
- Click the "Invoke with parameters" button.
- Update JSON object with the
nameinput parameter and click "Apply".
- Click "Invoke" again.
What do you see in the results of the activation record for this invocation?
The activation result should show the name parameter value was successfully passed into the action.
- Return to the action listing page using the
Actionsbreadcrumb in the top-left of the page.
- Select the "Create" button from the page.
- Click on "Action" from the "Create" entity list.
- Fill in the
hello2for the "Action name" and Click "Create".
The "Runtime" dropdown should already be defaulted to the latest Node.js runtime version.
You should now see your hello2 action in the action details page. By default, all new actions in the web UI are pre-filled with a "hello world" function for the chosen language runtime:
from here you can modify the source code to have any function you like!
{% hint style="success" %} Well done! You now can use the web UI to create and manage new actions as you did in the CLI. {% endhint %}











