此内容没有您所选择的语言版本。
Appendix C. Creating Custom Buttons for Cloud Tenants
CloudForms also allows you to create custom buttons for cloud tenants. This is useful for providing shortcuts to functionalities and features frequently used by specific tenants.
This capability is made possible through the Automate model. See Understanding the Automate Model from the Scripting Actions in CloudForms guide for more details.
The following subsections summarize the two main steps for creating a custom button for cloud tenants.
C.1. Creating a Custom Button Group
A button group is a label for a collection of buttons under an object type. To create a button group:
-
Navigate to
. - Click the Buttons accordion.
From the Object Types tree, select the type of object you want to create the button group for.
NoteWhen creating a button group for OpenStack tenants, select Cloud Tenant as your object type.
-
Click
(Configuration),
(Add a new Button Group).
- Type in a Button Group Text and Button Group Hover Text, and select the Button Group Image you want to use.
- If custom buttons have already been created, assign them to the button group. If not, see Section C.2, “Creating a Custom Button” to create custom buttons.
- Click Add.
The button group will show in the Cloud Tenant object type. When it does, create a custom button for any tenant within the OpenStack Cloud (see Section C.2, “Creating a Custom Button”).
C.2. Creating a Custom Button
-
Navigate to
. - Click the Buttons accordion.
From the Object Types tree, select the type of object you want to create the button for.
NoteWhen creating a button for OpenStack tenants, select Cloud Tenant as your object type.
- Click Unassigned Buttons.
Click
(Configuration), then
(Add a new Button).
NoteIf
(Add a new Button) is not available, that means you have not created a button group for that object. To continue, create a button group first. See Section C.1, “Creating a Custom Button Group”
- In Action, type in a Button Text and Button Hover Text, and select the Button Image you want to use.
- Select a Dialog if applicable.
-
In Object Details, select Request from the
/System/Process/
dropdown. By default, the message iscreate
. Do not change it. -
Type in a Request name for the
/System/Process/Request
instance. -
Type in the
Attribute/Value Pairs
fields if applicable. - Under Visibility, select which Account Roles you want to have access to this button.
- Click Add when you have confirmed that the button accomplishes the task you want.
The button will show in the object type you added the button to. See Invoking Automate from the Scripting Actions in CloudForms guide for more in-depth coverage.