SearchClientOptions interface

Client options used to configure Cognitive Search API requests.

Extends

Properties

apiVersion

The API version to use when communicating with the service.

audience

The Audience to use for authentication with Azure Active Directory (AAD). The audience is not considered when using a shared key. KnownSearchAudience can be used interchangeably with audience

serviceVersion

The service version to use when communicating with the service.

Inherited Properties

additionalPolicies

Additional policies to include in the HTTP pipeline.

allowInsecureConnection

Set to true if the request is sent over HTTP instead of HTTPS

httpClient

The HttpClient that will be used to send HTTP requests.

keepAliveOptions

Options to disable keep alive.

proxyOptions

Options to configure a proxy for outgoing requests.

redirectOptions

Options for how redirect responses are handled.

retryOptions

Options that control how to retry failed requests.

telemetryOptions

Options for setting common telemetry and tracing info to outgoing requests.

tlsOptions

Options for configuring TLS authentication

userAgentOptions

Options for adding user agent details to outgoing requests.

Property Details

apiVersion

Warning

This API is now deprecated.

use serviceVersion instead

The API version to use when communicating with the service.

apiVersion?: string

Property Value

string

audience

The Audience to use for authentication with Azure Active Directory (AAD). The audience is not considered when using a shared key. KnownSearchAudience can be used interchangeably with audience

audience?: string

Property Value

string

serviceVersion

The service version to use when communicating with the service.

serviceVersion?: string

Property Value

string

Inherited Property Details

additionalPolicies

Additional policies to include in the HTTP pipeline.

additionalPolicies?: AdditionalPolicyConfig[]

Property Value

Inherited From ExtendedCommonClientOptions.additionalPolicies

allowInsecureConnection

Set to true if the request is sent over HTTP instead of HTTPS

allowInsecureConnection?: boolean

Property Value

boolean

Inherited From ExtendedCommonClientOptions.allowInsecureConnection

httpClient

The HttpClient that will be used to send HTTP requests.

httpClient?: HttpClient

Property Value

Inherited From ExtendedCommonClientOptions.httpClient

keepAliveOptions

Options to disable keep alive.

keepAliveOptions?: KeepAliveOptions

Property Value

Inherited From ExtendedCommonClientOptions.keepAliveOptions

proxyOptions

Options to configure a proxy for outgoing requests.

proxyOptions?: ProxySettings

Property Value

Inherited From ExtendedCommonClientOptions.proxyOptions

redirectOptions

Options for how redirect responses are handled.

redirectOptions?: RedirectPolicyOptions & RedirectOptions

Property Value

Inherited From ExtendedCommonClientOptions.redirectOptions

retryOptions

Options that control how to retry failed requests.

retryOptions?: PipelineRetryOptions

Property Value

Inherited From ExtendedCommonClientOptions.retryOptions

telemetryOptions

Options for setting common telemetry and tracing info to outgoing requests.

telemetryOptions?: TelemetryOptions

Property Value

Inherited From ExtendedCommonClientOptions.telemetryOptions

tlsOptions

Options for configuring TLS authentication

tlsOptions?: TlsSettings

Property Value

Inherited From ExtendedCommonClientOptions.tlsOptions

userAgentOptions

Options for adding user agent details to outgoing requests.

userAgentOptions?: UserAgentPolicyOptions

Property Value

Inherited From ExtendedCommonClientOptions.userAgentOptions