Skip to main content
POST
Preview Egress Host Decision

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Path Parameters

app_id
string
required

The appId field.

id
string
required

The id field.

Body

application/json

EdgeServicePreviewEgressHostDecisionRequest asks what blocking or allowing one host for every user would do. Nothing is saved.

draftRules
Edge Egress Rule List · object | null

EdgeEgressRuleList wraps a rule list so an empty list is distinct from none.

effect
enum<string>

The effect field.

Available options:
EDGE_EGRESS_EFFECT_UNSPECIFIED,
EDGE_EGRESS_EFFECT_ALLOW,
EDGE_EGRESS_EFFECT_DENY,
EDGE_EGRESS_EFFECT_AUTHZEN
host
string

The host to block or allow.

Response

200 - application/json

EdgeServicePreviewEgressHostDecisionResponse reports what the decision would do and the rule list that results.

EdgeServicePreviewEgressHostDecisionResponse reports what the decision would do and the rule list that results.

after
Edge Egress Host Verdict · object | null

EdgeEgressHostVerdict is the rule step's verdict for one host, plus Time Bandit's SSRF floor for IP literals. The mode (observe or enforce) and content inspection are not part of it.

before
Edge Egress Host Verdict · object | null

EdgeEgressHostVerdict is the rule step's verdict for one host, plus Time Bandit's SSRF floor for IP literals. The mode (observe or enforce) and content inspection are not part of it.

canonicalHost
string

The host after canonicalization; the new rule's endpoint_pattern.

check
Edge Egress Rule List Check · object | null

EdgeEgressRuleListCheck is Update's save-time verdict on a rule list.

newRuleIndex
integer<int32>

Zero-based index of the new rule in resulting_rules, or -1 when no rule was added.

overridesRuleIndex
integer<int32>

The rule the new one is placed before because it also matches the host, as an index in resulting_rules, or -1.

replacedEffect
enum<string>

The effect of an every-user rule for exactly this host that the decision replaced, or unspecified when none was.

Available options:
EDGE_EGRESS_EFFECT_UNSPECIFIED,
EDGE_EGRESS_EFFECT_ALLOW,
EDGE_EGRESS_EFFECT_DENY,
EDGE_EGRESS_EFFECT_AUTHZEN
resultingRules
Edge Egress Rule List · object | null

EdgeEgressRuleList wraps a rule list so an empty list is distinct from none.

startsDefaultDeny
boolean

The Edge never configured egress rules, so saving resulting_rules switches it to denying every host no rule allows.

status
enum<string>

The status field.

Available options:
STATUS_UNSPECIFIED,
STATUS_READY,
STATUS_ALREADY_DECIDED,
STATUS_INVALID_HOST,
STATUS_SSRF_BLOCKED,
STATUS_UNRESOLVED_DENY_RULE
warnings
Edge Egress Rule Warning · object[] | null

Concerns about the decision that do not stop it from being saved, e.g. an Allow that goes before an AUTHZEN rule and so bypasses its server.