ProjectsAgentsModelFactory.HeaderTelemetryEndpointAuth Method

Definition

Header-based secret authentication for a telemetry endpoint. The resolved secret value is injected as an HTTP header.

public static Azure.AI.Projects.Agents.HeaderTelemetryEndpointAuth HeaderTelemetryEndpointAuth(string headerName = default, string secretId = default, string secretKey = default);
static member HeaderTelemetryEndpointAuth : string * string * string -> Azure.AI.Projects.Agents.HeaderTelemetryEndpointAuth
Public Shared Function HeaderTelemetryEndpointAuth (Optional headerName As String = Nothing, Optional secretId As String = Nothing, Optional secretKey As String = Nothing) As HeaderTelemetryEndpointAuth

Parameters

headerName
String

The name of the HTTP header to inject the secret value into.

secretId
String

The identifier of the secret store or connection.

secretKey
String

The key within the secret to retrieve the authentication value.

Returns

A new HeaderTelemetryEndpointAuth instance for mocking.

Applies to