Azure AI Search Aliases('{alias Name}') API

The Aliases('{aliasName}') API from Azure AI Search — 1 operation(s) for aliases('{aliasname}').

GitHub OpenAPI

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /aliases('{aliasName}') Get a search alias definition · Aliases get #
Ask an LLM
“What indexes does a given search alias point to?”
“Can I look up an alias's definition by name?”
Tell an agent
Get search alias {aliasName}.
Show the definition of alias {aliasName}.
PUT /aliases('{aliasName}') Create or update a search alias · Aliases create or update #
Ask an LLM
“How do I point an alias at a new index?”
“Can I replace an existing search alias definition?”
Tell an agent
Create alias {aliasName} pointing to indexes {indexes}.
Update existing alias {aliasName} to map to {indexes}.
DELETE /aliases('{aliasName}') Delete a search alias · Aliases delete #
Ask an LLM
“Can I delete a search alias without losing the index it points to?”
“Is deleting an alias permanent?”
Tell an agent destructive · confirm first
Delete search alias {aliasName}.
Remove the alias {aliasName} mapping from my search service.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/azure-ai-search:azure-ai-search-aliases-aliasname-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

azure-ai-search-aliases-aliasname-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure AI Search Aliases('{alias Name}') API
  version: '2026-10-01'
  description: Client that can be used to manage and query indexes and documents, as well as manage other resources, on a search service.
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
security:
- ApiKeyAuth: []
- OAuth2Auth:
  - https://search.azure.com/.default
tags:
- name: Aliases('{aliasName}')
paths:
  /aliases('{aliasName}'):
    get:
      operationId: Aliases_Get
      description: Retrieves an alias definition.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - name: aliasName
        in: path
        description: The name of the alias.
        required: true
        x-ms-client-name: name
        schema:
          type: string
      - name: Accept
        in: header
        description: The Accept header.
        required: false
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: accept
        schema:
          type: string
          enum:
          - application/json;odata.metadata=minimal
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchAlias'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Aliases('{aliasName}')
      summary: Aliases get
      x-summary-source: derived
    put:
      operationId: Aliases_CreateOrUpdate
      description: Creates a new search alias or updates an alias if it already exists.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - name: aliasName
        in: path
        description: The name of the alias.
        required: true
        x-ms-client-name: name
        schema:
          type: string
      - name: Accept
        in: header
        description: The Accept header.
        required: false
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: accept
        schema:
          type: string
          enum:
          - application/json;odata.metadata=minimal
      - name: If-Match
        in: header
        description: Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value.
        required: false
        x-ms-client-name: ifMatch
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
        required: false
        x-ms-client-name: ifNoneMatch
        schema:
          type: string
      - name: Prefer
        in: header
        description: For HTTP PUT requests, instructs the service to return the created/updated resource on success.
        required: true
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: prefer
        schema:
          type: string
          enum:
          - return=representation
      responses:
        '200':
          description: The request has succeeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchAlias'
        '201':
          description: The request has succeeded and a new resource has been created as a result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchAlias'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SearchAlias'
        description: The definition of the alias to create or update.
        required: true
      tags:
      - Aliases('{aliasName}')
      summary: Aliases create or update
      x-summary-source: derived
    delete:
      operationId: Aliases_Delete
      description: Deletes a search alias and its associated mapping to an index. This operation is permanent, with no recovery option. The mapped index is untouched by this operation.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - name: aliasName
        in: path
        description: The name of the alias.
        required: true
        x-ms-client-name: name
        schema:
          type: string
      - name: Accept
        in: header
        description: The Accept header.
        required: false
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: accept
        schema:
          type: string
          enum:
          - application/json;odata.metadata=minimal
      - name: If-Match
        in: header
        description: Defines the If-Match condition. The operation will be performed only if the ETag on the server matches this value.
        required: false
        x-ms-client-name: ifMatch
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: Defines the If-None-Match condition. The operation will be performed only if the ETag on the server does not match this value.
        required: false
        x-ms-client-name: ifNoneMatch
        schema:
          type: string
      responses:
        '204':
          description: 'There is no content to send for this request, but the headers may be useful. '
        '404':
          description: The server cannot find the requested resource.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      tags:
      - Aliases('{aliasName}')
      summary: Aliases delete
      x-summary-source: derived
components:
  schemas:
    SearchAlias:
      type: object
      description: Represents an index alias, which describes a mapping from the alias name to an index. The alias name can be used in place of the index name for supported operations.
      properties:
        name:
          type: string
          description: The name of the alias.
        indexes:
          type: array
          description: The name of the index this alias maps to. Only one index name may be specified.
          items:
            type: string
        '@odata.etag':
          type: string
          description: The ETag of the alias.
          x-ms-client-name: eTag
      required:
      - name
      - indexes
    ErrorDetail:
      type: object
      description: The error detail.
      properties:
        code:
          type: string
          description: The error code.
          readOnly: true
        message:
          type: string
          description: The error message.
          readOnly: true
        target:
          type: string
          description: The error target.
          readOnly: true
        details:
          type: array
          description: The error details.
          items:
            $ref: '#/components/schemas/ErrorDetail'
          readOnly: true
        additionalInfo:
          type: array
          description: The error additional info.
          items:
            $ref: '#/components/schemas/ErrorAdditionalInfo'
          readOnly: true
    ErrorResponse:
      type: object
      description: Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
          description: The error object.
    ErrorAdditionalInfo:
      type: object
      description: The resource management error additional info.
      properties:
        type:
          type: string
          description: The additional info type.
          readOnly: true
        info:
          type: object
          description: The additional info.
          additionalProperties: {}
          readOnly: true
  parameters:
    Azure.Core.ClientRequestIdHeader:
      name: x-ms-client-request-id
      in: header
      description: An opaque, globally-unique, client-generated string identifier for the request.
      required: false
      x-ms-parameter-location: method
      x-ms-client-name: clientRequestId
      schema:
        type: string
        format: uuid
    Azure.Core.Foundations.ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      x-ms-parameter-location: method
      x-ms-client-name: apiVersion
      schema:
        type: string
        minLength: 1
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      name: api-key
      in: header
    OAuth2Auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            https://search.azure.com/.default: ''
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
x-ms-parameterized-host:
  hostTemplate: '{endpoint}'
  useSchemePrefix: false
  parameters:
  - name: endpoint
    in: path
    description: The endpoint URL of the search service.
    required: true
    type: string
    format: uri
    x-ms-skip-url-encoding: true
x-ms-paths:
  /indexes?_overload=listWithSelectedProperties:
    get:
      operationId: Indexes_ListWithSelectedProperties
      description: Lists all indexes available for a search service.
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - name: Accept
        in: header
        description: The Accept header.
        required: false
        type: string
        enum:
        - application/json;odata.metadata=minimal
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: accept
      - name: $select
        in: query
        description: Selects which top-level properties to retrieve. Specified as a comma-separated list of JSON property names, or '*' for all properties. The default is all properties.
        required: false
        type: array
        items:
          type: string
        collectionFormat: csv
      - name: search
        in: query
        description: A string used to narrow down the listing so that fewer results need to be paged through. If omitted or an empty string is passed, no narrowing is applied.
        required: false
        type: string
      - name: pageSize
        in: query
        description: The maximum number of items to return in a single page. The server enforces a maximum; if omitted, the server determines a suitable default.
        required: false
        type: integer
        format: int32
        minimum: 1
        maximum: 3000
      - name: searchType
        in: query
        description: Specifies how the search parameter is interpreted. Currently only 'prefix' is supported.
        required: false
        type: string
        default: prefix
        enum:
        - prefix
        x-ms-enum:
          name: ListingSearchType
          modelAsString: true
          values:
          - name: Prefix
            value: prefix
            description: Matches items whose name starts with the value of the search parameter.
      responses:
        '200':
          description: The request has succeeded.
          schema:
            $ref: '#/components/schemas/ListIndexesSelectedResult'
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: '@odata.nextLink'
  /knowledgebases('{knowledgeBaseName}')/retrieve?_overload=retrieveStream:
    post:
      operationId: KnowledgeRetrieval_RetrieveStream
      description: 'Retrieves relevant data from backing stores and streams progress and results as server-sent

        events.


        Process the response incrementally using server-sent event framing. Each event contains an

        event name and a JSON-encoded data payload. The stream ends with either a `response.completed`

        event or an `error` event. OpenAPI 2.0 represents the response body as a string, so generated

        clients may expose the raw response without typed event parsing. Do not deserialize the

        complete response body as a single JSON document.'
      produces:
      - text/event-stream
      - application/json
      parameters:
      - $ref: '#/components/parameters/Azure.Core.Foundations.ApiVersionParameter'
      - name: Accept
        in: header
        description: The Accept header.
        required: true
        type: string
        enum:
        - text/event-stream
        x-ms-enum:
          modelAsString: false
        x-ms-client-name: accept
      - name: knowledgeBaseName
        in: path
        description: The name of the knowledge base.
        required: true
        type: string
      - name: x-ms-query-source-authorization
        in: header
        description: Token identifying the user for which the query is being executed. This token is used to enforce security restrictions on documents.
        required: false
        type: string
        format: password
        x-ms-client-name: querySourceAuthorization
        x-ms-secret: true
      - $ref: '#/components/parameters/Azure.Core.ClientRequestIdHeader'
      - name: retrievalRequest
        in: body
        description: The retrieval request to process.
        required: true
        schema:
          $ref: '#/components/schemas/KnowledgeBaseRetrievalRequest'
      responses:
        '200':
          description: The request has succeeded.
          schema:
            type: string
        default:
          description: An unexpected error response.
          schema:
            $ref: '#/components/schemas/ErrorResponse'