Class SandboxHttpHeaderCredentialInjectionRule
An HTTP_HEADER rule that binds one exact HTTPS host on port 443 to exactly one injected HTTP request header and one OCI Vault secret. Redirects to another host do not carry the credential. Only properties defined for this rule type are supported.
Inherited Members
Namespace: Oci.GenerativeaiService.Models
Assembly: OCI.DotNetSDK.Generativeai.dll
Syntax
public class SandboxHttpHeaderCredentialInjectionRule : SandboxCredentialInjectionRule
Properties
Host
Declaration
[Required(ErrorMessage = "Host is required.")]
[JsonProperty(PropertyName = "host")]
public string Host { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The normalized ASCII DNS hostname that selects the rule. This value must be the exact regional Generative AI Responses endpoint hostname for the Project's region and realm. Do not include a scheme, path, port, wildcard, trailing dot, or IP literal. Brokerage uses HTTPS on port 443. |
Remarks
Required
InjectHeaders
Declaration
[Required(ErrorMessage = "InjectHeaders is required.")]
[JsonProperty(PropertyName = "injectHeaders")]
public List<SandboxCredentialInjectionHeader> InjectHeaders { get; set; }
Property Value
| Type | Description |
|---|---|
| List<SandboxCredentialInjectionHeader> | The single HTTP request header that the service replaces with the credential value. |
Remarks
Required