此内容没有您所选择的语言版本。

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.

Note

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:

  1. Navigate to Automate Customization.
  2. Click the Buttons accordion.
  3. From the Object Types tree, select the type of object you want to create the button group for.

    Note

    When creating a button group for OpenStack tenants, select Cloud Tenant as your object type.

  4. Click image (Configuration), image (Add a new Button Group).
  5. Type in a Button Group Text and Button Group Hover Text, and select the Button Group Image you want to use.
  6. 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.
  7. 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

  1. Navigate to Automate Customization.
  2. Click the Buttons accordion.
  3. From the Object Types tree, select the type of object you want to create the button for.

    Note

    When creating a button for OpenStack tenants, select Cloud Tenant as your object type.

  4. Click Unassigned Buttons.
  5. Click image (Configuration), then image (Add a new Button).

    Note

    If image (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”

  6. In Action, type in a Button Text and Button Hover Text, and select the Button Image you want to use.
  7. Select a Dialog if applicable.
  8. In Object Details, select Request from the /System/Process/ dropdown. By default, the message is create. Do not change it.
  9. Type in a Request name for the /System/Process/Request instance.
  10. Type in the Attribute/Value Pairs fields if applicable.
  11. Under Visibility, select which Account Roles you want to have access to this button.
  12. 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.

Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.