Hello
@Chandrasena Sriramoju, For the first requirement - You can add your 2 DCs in origin server settings and enable "
Support only forward to data center rules" for DC2 only. Then use custom forwarding rule to forward traffic to DC2 by putting a condition "if URL does not contain /api/*" then Forward to DC2.
For the 2nd part - In origin server settings, you can define the weight(%) per server in DC1 (3rd field in the same line where you define IP/Cname). So for server1 you can put 5% and 95% for server2. This configuration should be able to achieve what you mentioned.
------------------------------
Manish Patil
Security Engineer
Amadeus
------------------------------