{"note":"OpenAPI conversion -- returning structured metadata","name":"azure-com-sql-replicationlinks","description":"Azure SQL Database replication links","version":"2014-04-01","base_url":"https://management.azure.com","endpoints":6,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api Azure SQL Database replication links\n@base https://management.azure.com\n@version 2014-04-01\n@auth OAuth2\n@common_fields {serverName: any # The name of the server., databaseName: any # The name of the database that has the replication link to be dropped.}\n@endpoints 6\n@toc subscriptions(6)\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}\n@desc Deletes a database replication link. Cannot be done during failover.\n@required {linkId: any # The ID of the replication link to be deleted.}\n@returns(200) OK\n@returns(204) NoContent\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}\n@desc Gets a database replication link.\n@required {linkId: any # The replication link ID to be retrieved.}\n@returns(200) OK\n\n@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/failover\n@desc Sets which replica database is primary by failing over from the current primary replica database.\n@required {linkId: any # The ID of the replication link to be failed over.}\n@returns(202) Accepted\n@returns(204) No Content\n\n@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/forceFailoverAllowDataLoss\n@desc Sets which replica database is primary by failing over from the current primary replica database. This operation might result in data loss.\n@required {linkId: any # The ID of the replication link to be failed over.}\n@returns(202) Accepted\n@returns(204) No Content\n\n@endpoint POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}/unlink\n@desc Deletes a database replication link in forced or friendly way.\n@required {linkId: any # The ID of the replication link to be failed over., parameters: any # The required parameters for unlinking replication link.}\n@returns(202) Accepted\n@returns(204) No Content\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks\n@desc Lists a database's replication links.\n@returns(200) OK\n\n@end\n"}