RaiEgressRuleMatch Class

Definition

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".

public class RaiEgressRuleMatch : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CognitiveServices.Models.RaiEgressRuleMatch>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CognitiveServices.Models.RaiEgressRuleMatch>
type RaiEgressRuleMatch = class
    interface IJsonModel<RaiEgressRuleMatch>
    interface IPersistableModel<RaiEgressRuleMatch>
Public Class RaiEgressRuleMatch
Implements IJsonModel(Of RaiEgressRuleMatch), IPersistableModel(Of RaiEgressRuleMatch)
Inheritance
RaiEgressRuleMatch
Implements

Constructors

Name Description
RaiEgressRuleMatch()

Initializes a new instance of RaiEgressRuleMatch.

Properties

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.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<RaiEgressRuleMatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<RaiEgressRuleMatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<RaiEgressRuleMatch>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<RaiEgressRuleMatch>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<RaiEgressRuleMatch>.Write(ModelReaderWriterOptions)

Applies to