Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to add a default step in a flow if fails condition on other steps within the flow

I have a flow that gets executed for all GET calls using the "request.verb="GET"" condition.

Then I am using the following steps to enforce quota policies based on security.token

Step 1 has the condition: (request.header.SecurityToken = "aaaa" OR request.header.SecurityToken = "bbbb") and enforce a quota for these 2 securityTokens

Step 2 has the reverse condition: (request.header.SecurityToken != "aaaa" AND request.header.SecurityToken != "bbbb") and enforces a default Quota.

Is there a way to have step 2 execute without the need for explicity stating the reverse of the condition in step 1?

In essence, I want Step 2 to execute if step 1's condition fails.

,

I have a quota policy in place for GET calls using a flow with the 'request.verb="GET"' condition.

Then I have 2 steps to enforce different quotas based on securityToken

1: has a condition of (request.header.SecurityToken = "aaaa" OR request.header.SecurityToken = "bbbb") and enforces a specific quota policy for these security tokens

2: has condition of (request.header.SecurityToken != "aaaa" AND request.header.SecurityToken != "bbbb") and enforces a default quota policy

How can I just have the second step enforce the default policy if it fails the first steps condition with out explicitly stating the reverse of the condition in step 1

0 5 415
5 REPLIES 5