{
  "opencollection": "1.0.0",
  "info": {
    "name": "Microsoft Azure AccessControlClient AccessConnector DatabaseReplicationLinks API",
    "version": "2020-08-01-preview"
  },
  "items": [
    {
      "info": {
        "name": "DatabaseReplicationLinks",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Sql Servers Servername Databases Databasename Replicationlinks Linkid",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Sql/servers/:serverName/databases/:databaseName/replicationLinks/:linkId",
            "params": [
              {
                "name": "serverName",
                "value": "",
                "type": "path",
                "description": "The name of the server."
              },
              {
                "name": "databaseName",
                "value": "",
                "type": "path",
                "description": "The name of the database to get the link for."
              },
              {
                "name": "linkId",
                "value": "",
                "type": "path",
                "description": "The replication link ID to be retrieved."
              }
            ]
          },
          "docs": "Gets a database replication link."
        },
        {
          "info": {
            "name": "Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Sql Servers Servername Databases Databasename Replicationlinks Linkid",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Sql/servers/:serverName/databases/:databaseName/replicationLinks/:linkId",
            "params": [
              {
                "name": "serverName",
                "value": "",
                "type": "path",
                "description": "The name of the server."
              },
              {
                "name": "databaseName",
                "value": "",
                "type": "path",
                "description": "The name of the database that has the replication link to be dropped."
              },
              {
                "name": "linkId",
                "value": "",
                "type": "path",
                "description": "The ID of the replication link to be deleted."
              }
            ]
          },
          "docs": "Deletes a database replication link. Cannot be done during failover."
        },
        {
          "info": {
            "name": "Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Sql Servers Servername Databases Databasename Replicationlinks Linkid Failover",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Sql/servers/:serverName/databases/:databaseName/replicationLinks/:linkId/failover",
            "params": [
              {
                "name": "serverName",
                "value": "",
                "type": "path",
                "description": "The name of the server."
              },
              {
                "name": "databaseName",
                "value": "",
                "type": "path",
                "description": "The name of the database that has the replication link to be failed over."
              },
              {
                "name": "linkId",
                "value": "",
                "type": "path",
                "description": "The ID of the replication link to be failed over."
              }
            ]
          },
          "docs": "Sets which replica database is primary by failing over from the current primary replica database."
        },
        {
          "info": {
            "name": "Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Sql Servers Servername Databases Databasename Replicationlinks Linkid Forcefailoverallowdataloss",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Sql/servers/:serverName/databases/:databaseName/replicationLinks/:linkId/forceFailoverAllowDataLoss",
            "params": [
              {
                "name": "serverName",
                "value": "",
                "type": "path",
                "description": "The name of the server."
              },
              {
                "name": "databaseName",
                "value": "",
                "type": "path",
                "description": "The name of the database that has the replication link to be failed over."
              },
              {
                "name": "linkId",
                "value": "",
                "type": "path",
                "description": "The ID of the replication link to be failed over."
              }
            ]
          },
          "docs": "Sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss."
        },
        {
          "info": {
            "name": "Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Sql Servers Servername Databases Databasename Replicationlinks Linkid Unlink",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Sql/servers/:serverName/databases/:databaseName/replicationLinks/:linkId/unlink",
            "params": [
              {
                "name": "serverName",
                "value": "",
                "type": "path",
                "description": "The name of the server."
              },
              {
                "name": "databaseName",
                "value": "",
                "type": "path",
                "description": "The name of the database that has the replication link to be failed over."
              },
              {
                "name": "linkId",
                "value": "",
                "type": "path",
                "description": "The ID of the replication link to be failed over."
              }
            ]
          },
          "docs": "Deletes a database replication link in forced or friendly way."
        },
        {
          "info": {
            "name": "Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Sql Servers Servername Databases Databasename Replicationlinks",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Sql/servers/:serverName/databases/:databaseName/replicationLinks",
            "params": [
              {
                "name": "serverName",
                "value": "",
                "type": "path",
                "description": "The name of the server."
              },
              {
                "name": "databaseName",
                "value": "",
                "type": "path",
                "description": "The name of the database to retrieve links for."
              }
            ]
          },
          "docs": "Lists a database's replication links."
        }
      ]
    }
  ],
  "bundled": true
}