Updated on 2024-10-09 GMT+08:00

Introduction

Scenario

APIG allows you to define multiple backend policies and forward API requests to different backends based on these different policies. For example, to distinguish special calls from regular calls, you can define a policy backend that uses frontend custom authentication parameters. This section uses frontend authentication parameters (system parameter) as an example to describe how to forward API requests to a specified backend.

Restrictions

  • Before adding a backend policy, set the security authentication mode of the frontend to Custom or enable Two-Factor Authentication (App or IAM authentication).
  • API requests that do not meet the conditions of any backend will be forwarded to the default backend.
  • The Condition Value of the System parameter - Frontend authentication parameter can only be character string, integer, or Boolean.
  • A maximum of five policy backends can be defined for an API.