Cloud-native API Gateway allows you to attach plug-in rules to APIs and operations. These rules provide flexible and secure API management services and enhance service scalability. This topic describes how to attach a plug-in rule to a specified API or a specified API operation.
When you attach the rule, if the corresponding plug-in is not installed in the instance, the console allows you to install the plug-in with one click.
Attach a plug-in rule
If two plug-in rules of the same type are separately configured for an API and an operation that belongs to the API, the rule attached to the operation takes precedence.
Log on to the Cloud-native API Gateway console.
In the left-side navigation pane, click API.
In the top navigation bar, select a region.
In the API list, click the API that you want to manage. On the page that appears, click All Operations (API-level Policies and Plug-in Configurations) or a specific operation in the list.
On the Policy and Plug-in Configurations tab on the right, click Enable Policy/Plug-in under Inbound Processing or Outbound Processing.
In the Enable Policy/Plug-in panel that appears, click the Add Plug-in tab.
In the Quick Navigation section, select the desired plug-in type. Then, find the plug-in that you want to install on the right and click the card. You can also search for the plug-in by name by using the search box.
If the plug-in is not installed, click Install and Configure in the dialog box that appears. In the panel that appears, configure the plug-in rule and turn on the switch.
If the plug-in is already installed, configure the plug-in rule and turn on the switch in the Enable XXX panel.
Click Confirm. In the attached rules list, you can see the attached plug-in rule and its enabling status.
