Microsoft Azure Database Replication Links API

The DatabaseReplicationLinks API from Microsoft Azure, for databasereplicationlinks.

GitHub OpenAPI

Operations 6

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

DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId} Delete a database replication link · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I remove a geo-replication link from a SQL database?”
“Why can't a replication link be deleted during a failover?”
Tell an agent destructive · confirm first
Delete replication link {linkId} of database {databaseName} on server {serverName}.
Drop the link {linkId} between {databaseName} and its replica on {serverName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId} Get a database replication link · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What's the state of the geo-replication link for my SQL database?”
“Can I see which replica is primary on a specific replication link?”
Tell an agent
Show replication link {linkId} for database {databaseName} on server {serverName}.
Check the replication state of link {linkId} on {serverName}/{databaseName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/failover Fail over to the replica database safely · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I make my secondary SQL database the new primary without losing data?”
“Can I do a planned failover on a replication link?”
Tell an agent
Fail over replication link {linkId} for {databaseName} on {serverName}.
Do a planned switch so the replica on link {linkId} becomes primary for {serverName}/{databaseName}.
POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss Force a failover that may lose data · Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“The primary is down, can I force the replica to take over even if data is lost?”
“What's the risk of a forced failover on a replication link?”
Tell an agent destructive · confirm first
Force failover on link {linkId} for {databaseName} on {serverName}, allowing data loss.
Promote the replica on link {linkId} of {serverName}/{databaseName} now even if recent writes are lost.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks List a database's replication links · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which replicas is my SQL database linked to?”
“Does this database have any geo-replication links at all?”
Tell an agent
List the replication links of database {databaseName} on server {serverName}.
Show every geo-replica linked to {serverName}/{databaseName}.

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/microsoft-azure:microsoft-azure-databasereplicationlinks-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

microsoft-azure-databasereplicationlinks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure SQL Database Replication Links API
  description: Provides read, delete, and failover functionality for Azure SQL Database replication links.
  version: '2014-04-01'
servers:
- url: https://management.azure.com
tags:
- name: DatabaseReplicationLinks
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}
  : delete:
      tags:
      - DatabaseReplicationLinks
      operationId: microsoftAzureReplicationlinksDelete
      description: Deletes a database replication link. Cannot be done during failover.
      x-ms-examples:
        Delete a replication link:
          $ref: ./examples/ReplicationLinkDelete.json
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - name: databaseName
        in: path
        required: true
        description: The name of the database that has the replication link to be dropped.
        schema:
          type: string
      - name: linkId
        in: path
        required: true
        description: The ID of the replication link to be deleted.
        schema:
          type: string
      responses:
        '200':
          description: OK
        '204':
          description: NoContent
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    get:
      tags:
      - DatabaseReplicationLinks
      operationId: microsoftAzureReplicationlinksGet
      description: Gets a database replication link.
      x-ms-examples:
        Get a replication link:
          $ref: ./examples/ReplicationLinkGet.json
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - name: databaseName
        in: path
        required: true
        description: The name of the database to get the link for.
        schema:
          type: string
      - name: linkId
        in: path
        required: true
        description: The replication link ID to be retrieved.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplicationLink'
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/failover
  : post:
      tags:
      - DatabaseReplicationLinks
      operationId: microsoftAzureReplicationlinksFailover
      description: Sets which replica database is primary by failing over from the current primary replica database.
      x-ms-examples:
        Failover a replication link:
          $ref: ./examples/ReplicationLinkFailover.json
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - name: databaseName
        in: path
        required: true
        description: The name of the database that has the replication link to be failed over.
        schema:
          type: string
      - name: linkId
        in: path
        required: true
        description: The ID of the replication link to be failed over.
        schema:
          type: string
      responses:
        '202':
          description: Accepted
        '204':
          description: No Content
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss
  : post:
      tags:
      - DatabaseReplicationLinks
      operationId: microsoftAzureReplicationlinksFailoverallowdataloss
      description: Sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss.
      x-ms-examples:
        Failover a replication link:
          $ref: ./examples/ReplicationLinkFailover.json
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - name: databaseName
        in: path
        required: true
        description: The name of the database that has the replication link to be failed over.
        schema:
          type: string
      - name: linkId
        in: path
        required: true
        description: The ID of the replication link to be failed over.
        schema:
          type: string
      responses:
        '202':
          description: Accepted
        '204':
          description: No Content
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink
  : post:
      tags:
      - DatabaseReplicationLinks
      operationId: microsoftAzureReplicationlinksUnlink
      description: Deletes a database replication link in forced or friendly way.
      x-ms-examples:
        Delete replication link:
          $ref: ./examples/ReplicationLinkUnlink.json
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - name: databaseName
        in: path
        required: true
        description: The name of the database that has the replication link to be failed over.
        schema:
          type: string
      - name: linkId
        in: path
        required: true
        description: The ID of the replication link to be failed over.
        schema:
          type: string
      responses:
        '202':
          description: Accepted
        '204':
          description: No Content
      x-ms-long-running-operation: true
      summary: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UnlinkParameters'
        description: The required parameters for unlinking replication link.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks
  : get:
      tags:
      - DatabaseReplicationLinks
      operationId: microsoftAzureReplicationlinksListbydatabase
      description: Lists a database's replication links.
      x-ms-examples:
        List Replication links:
          $ref: ./examples/ReplicationLinkList.json
      parameters:
      - $ref: ../../../common/v1/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../common/v1/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../common/v1/types.json#/parameters/ResourceGroupParameter
      - $ref: '#/components/parameters/ServerNameParameter'
      - name: databaseName
        in: path
        required: true
        description: The name of the database to retrieve links for.
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReplicationLinkListResult'
      x-ms-pageable:
        nextLinkName: null
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  schemas:
    ReplicationLinkListResult:
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/ReplicationLink'
          description: The list of database replication links housed in the database.
      description: Represents the response to a List database replication link request.
    UnlinkParameters:
      properties:
        forcedTermination:
          type: boolean
          description: Determines whether link will be terminated in a forced or a friendly way.
      description: Represents the parameters for Unlink Replication Link request.
    ReplicationLink:
      properties:
        location:
          type: string
          description: Location of the server that contains this firewall rule.
          readOnly: true
        type:
          type: string
          description: Type of resource this is.
          readOnly: true
        properties:
          x-ms-client-flatten: true
          $ref: '#/components/schemas/ReplicationLinkProperties'
          description: The properties representing the resource.
      allOf:
      - $ref: ../../../common/v1/types.json#/definitions/ProxyResource
      description: Represents a database replication link.
    ReplicationLinkProperties:
      properties:
        isTerminationAllowed:
          readOnly: true
          type: boolean
          description: Legacy value indicating whether termination is allowed.  Currently always returns true.
        replicationMode:
          readOnly: true
          type: string
          description: Replication mode of this replication link.
        partnerServer:
          readOnly: true
          type: string
          description: The name of the server hosting the partner database.
        partnerDatabase:
          readOnly: true
          type: string
          description: The name of the partner database.
        partnerLocation:
          readOnly: true
          type: string
          description: The Azure Region of the partner database.
        role:
          readOnly: true
          type: string
          description: The role of the database in the replication link.
          enum:
          - Primary
          - Secondary
          - NonReadableSecondary
          - Source
          - Copy
          x-ms-enum:
            name: ReplicationRole
        partnerRole:
          readOnly: true
          type: string
          description: The role of the partner database in the replication link.
          enum:
          - Primary
          - Secondary
          - NonReadableSecondary
          - Source
          - Copy
          x-ms-enum:
            name: ReplicationRole
        startTime:
          readOnly: true
          type: string
          format: date-time
          description: The start time for the replication link.
        percentComplete:
          readOnly: true
          type: integer
          format: int32
          description: The percentage of seeding complete for the replication link.
        replicationState:
          readOnly: true
          type: string
          description: The replication state for the replication link.
          enum:
          - PENDING
          - SEEDING
          - CATCH_UP
          - SUSPENDED
          x-ms-enum:
            name: ReplicationState
            modelAsString: true
      description: Represents the properties of a database replication link.
  parameters:
    ServerNameParameter:
      name: serverName
      in: path
      required: true
      description: The name of the server.
      x-ms-parameter-location: method
      schema:
        type: string
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow
x-provenance:
  method: harvested
  publisher: Microsoft Azure
  source: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/sql/resource-manager/Microsoft.Sql/stable/2014-04-01/replicationLinks.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)