RaiEgressRuleMatch Class
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".
Constructor
RaiEgressRuleMatch(*args: Any, **kwargs: Any)
Variables
| Name | Description |
|---|---|
|
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. |
Attributes
host
Host pattern to match using DNS wildcard syntax (e.g., ".openai.com"). A leading "." matches any subdomain. Omit to match all hosts.
host: str | None
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: str | None