RaiEgressRuleMatch interface
The match criteria for an egress rule. If both host and path are omitted, the rule matches all traffic. Host uses DNS wildcard syntax (e.g., "*.openai.com" matches "api.openai.com"). Path uses URI prefix matching with an asterisk as a single-segment wildcard. For example, "/v1/*" matches "/v1/chat".
Properties
| host | Host pattern to match using DNS wildcard syntax (e.g., "*.openai.com"). A leading "*." matches any subdomain. Omit to match all hosts. |
| path | Path pattern to match using URI prefix matching. An asterisk serves as a single-segment wildcard. For example, "/v1/*" matches "/v1/chat". Omit to match all paths. |
Property Details
host
Host pattern to match using DNS wildcard syntax (e.g., "*.openai.com"). A leading "*." matches any subdomain. Omit to match all hosts.
host?: string
Property Value
string
path
Path pattern to match using URI prefix matching. An asterisk serves as a single-segment wildcard. For example, "/v1/*" matches "/v1/chat". Omit to match all paths.
path?: string
Property Value
string