Managing Bridges
A bridge is a connector that connects frontend pages and backend data. When you develop a frontend page, you may need to retrieve backend data such as user IDs, order IDs, and information of products in the shopping cart. In this case, you can use a bridge, which calls backend APIs to obtain data from the backend. Bridges can also obtain custom static data.
In the Huawei Cloud Astro Zero environment configuration page, you can manage bridges under the account in the current environment.
Viewing a Bridge Details
- Log in to the Huawei Cloud Astro Zero console and click Access Homepage. The application development page is displayed.
- In the upper left corner of the page, click
and choose Environments > Environment Configuration.
- Choose Maintenance from the main menu.
- In the navigation pane, choose Global Elements > Page Assets > Bridges to view all bridges.
- Preset bridges: bridges defined by Huawei Cloud Astro Zero and can be directly used. On the Global tab page, you can view all preset bridges.
- Custom bridges: If the preset bridges cannot meet user requirements, you can customize a bridge package, upload it, and use it on the page. On the Tenant tab page, you can view all custom bridges.
- Click a bridge. The bridge details page is displayed.
Downloading a Bridge
- Log in to the Huawei Cloud Astro Zero console and click Access Homepage. The application development page is displayed.
- In the upper left corner of the page, click
and choose Environments > Environment Configuration.
- Choose Maintenance from the main menu.
- In the navigation pane, choose Global Elements > Page Assets > Bridges.
- In the bridge list, click a bridge. The bridge details page is displayed.
- On the bridge details page, click Download to download the bridge.
On the Change Log tab page, you can view the historical versions of the bridge, which are sorted by time in descending order. You can download different versions of the bridge.
Disabling a Bridge
- Log in to the Huawei Cloud Astro Zero console and click Access Homepage. The application development page is displayed.
- In the upper left corner of the page, click
and choose Environments > Environment Configuration.
- Choose Maintenance from the main menu.
- In the navigation pane, choose Global Elements > Page Assets > Bridges.
- On the displayed page, click a bridge to go to its details page.
- Click
in the upper right corner of the page to lock the bridge.
- Click Deactivate. In the dialog box that is displayed, click OK.
The Deactivate button is displayed only when the bridge is not protected. The preset bridges cannot be edited or disabled, but can only be downloaded.
After a bridge is disabled, you can choose Global Elements > Page Assets > Deactivated Assets to view the disabled bridge. After the bridge is disabled, click Delete on the bridge details page, enter the name of the bridge to be deleted, and click Confirm to delete the bridge. To enable the bridge, click Activate. In the dialog box that is displayed, click OK.
Updating a Bridge
- Log in to the Huawei Cloud Astro Zero console and click Access Homepage. The application development page is displayed.
- In the upper left corner of the page, click
and choose Environments > Environment Configuration.
- Choose Maintenance from the main menu.
- In the navigation pane, choose Global Elements > Page Assets > Bridges.
- On the displayed page, click a bridge to go to its details page.
- Click
in the upper right corner of the page to lock the bridge and click Update.
The Update button is displayed only when the bridge is not protected.
- On the bridge update page, select the new bridge package and click the update button to update the bridge in the asset library.
You can also click the update button on the bridge details page and click
in the upper right corner of the page to lock the bridge.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot