Stop Database Copy (classic)
Updated: October 5, 2016
SQL Server
Azure SQL Database
Azure SQL Data Warehouse
Parallel Data Warehouse
Stops a database copy.
This command uses the classic deployment model. You should use the newer Resource Manager based REST API commands located here. For more information, see Azure Resource Manager vs. classic deployment: Understand deployment models and the state of your resources.
The Stop Database Copy request must be specified as follows:
Replace {subscription-id} with your subscription ID.
Replace {serverName} with your server name.
Replace {databaseName} with your database name.
Replace {linkID} with your link ID (the link ID is the Name element from the Get Database Copy (classic), List Database Copies (classic), Start Database Copy (classic), and Update Database Copy (classic) responses).
| Method | Request URI | HTTP Version |
|---|---|---|
| DELETE | https://management.core.windows.net:8443/{subscriptionId}/services/sqlservers/servers/{serverName}/databases/{databaseName}/databasecopies/{linkID} | HTTP/1.1 |
This method is synchronous and transactional. If successful, the changes are in effect immediately.
URI Parameters
None.
Request Headers
The following table describes the required and optional request headers:
| Request Header | Description |
|---|---|
| x-ms-version | Required. Specifies the version of the operation to use for this request. This header should be set to 2012-03-01. |
| x-ms-client-request-id | Optional. Provides a client-generated, opaque value with a 1 KB character limit. Using this header is highly recommended for correlating client-side activities with requests received by the server. |
Request Body
None.
The response includes an HTTP status code and a set of response headers. If the request fails, then a response body is included.
Status Code
Response Headers
The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.
| Response Header | Description |
|---|---|
| x-ms-request-id | A value that uniquely identifies a request made against the database management service. This request id is used for request tracking. If a failure occurs that requires the user to contact Microsoft Support, the request id should be provided to Microsoft to assist in tracking and resolving the failure for the request. |
Response Body
None.
Common REST API Error Codes
Azure SQL Database
Operations for Azure SQL Databases
Azure SQL Database Cmdlets