Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchApiKeyCredential

Package version

This class is used to authenticate to Search using an API Key retrieved from the Azure portal.

Hierarchy

  • SearchApiKeyCredential

Implements

  • any

Index

Constructors

Methods

Constructors

constructor

Methods

signRequest

  • signRequest(webResource: WebResource): Promise<WebResource>
  • Signs a request with the provided API Key.

    Parameters

    • webResource: WebResource

      The WebResource to be signed.

    Returns Promise<WebResource>

    The signed request object.

updateKey

  • updateKey(apiKey: string): void
  • Updates the API Key used for authentication. Use this method to roll credentials.

    Parameters

    • apiKey: string

      The Search API key for authentication.

    Returns void

Generated using TypeDoc