US 11,956,210 B2
Method and apparatus for transmitting application programming interface API request
Xin Lu, Shenzhen (CN); Jin Chen, Shenzhen (CN); and Yugeng Hui, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on Jul. 20, 2020, as Appl. No. 16/933,195.
Application 16/933,195 is a continuation of application No. PCT/CN2019/077392, filed on Mar. 8, 2019.
Claims priority of application No. 201810203025.X (CN), filed on Mar. 13, 2018.
Prior Publication US 2020/0351243 A1, Nov. 5, 2020
Int. Cl. H04L 9/40 (2022.01); G06F 9/54 (2006.01); H04L 67/60 (2022.01)
CPC H04L 63/0236 (2013.01) [G06F 9/547 (2013.01); H04L 63/105 (2013.01); H04L 67/60 (2022.05)] 20 Claims
OG exemplary drawing
 
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.