CPC H04L 63/0236 (2013.01) [G06F 9/547 (2013.01); H04L 63/105 (2013.01); H04L 67/60 (2022.05)] | 20 Claims |
1. A method for transmitting an application programming interface (API) request, the method comprising:
receiving, by a first API gateway, a first API request;
obtaining, by the first API gateway, a first forwarding label corresponding to the first API request, wherein the first forwarding label comprises a first target security domain identifier, and a security domain identifier of the first API gateway is different from the first target security domain identifier;
determining, by the first API gateway, an address of a second API gateway according to a mapping relationship between the first target security domain identifier and the address of the second API gateway; and
sending, by the first API gateway, the first API request to the second API gateway based on the address of the second API gateway, wherein the second API gateway is a next-hop API gateway of the first API gateway that sends the first API request to an API gateway corresponding to the first target security domain identifier.
|