Get Import Export Database Status (classic)

 

Updated: October 5, 2016

THIS TOPIC APPLIES TO: noSQL Server yesAzure SQL DatabaseyesAzure SQL Data Warehouse noParallel Data Warehouse

Returns the status of an Import/Export operation on an Azure SQL Database.

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 Import/Export Database Status request must be specified as follows:

  • Replace {subscriptionId} with your subscription ID.

  • Replace {serverName} with the name of the source server.

MethodRequest URIHTTP Version
POSThttps://management.core.windows.net:8443/{subscriptionId}/services/sqlservers/servers/{serverName}/DacOperations/StatusHTTP/1.1

URI Parameters

None.

Request Headers

The following table describes the required and optional request headers:

Request HeaderDescription
x-ms-versionRequired. Specifies the version of the operation to use for this request. This header should be set to 2012-03-01.
x-ms-client-request-idOptional. 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

The format of the request body is as follows:

<StatusInput xmlns="http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes"  xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <Password>{myPassword}</Password>  
  <RequestId>6d3647b6-dbeb-4607-aeae-2be34e191b6b</RequestId>  
  <ServerName>{serverName}.database.windows.net</ServerName>  
  <UserName>{mylogin}</UserName>  
</StatusInput>  

The following table describes the elements of the request body:

Element NameDescription
PasswordThe password for connecting to the Azure SQL Database Server.
RequestIDThe Request ID of the operation for which to query the status. The Request ID is returned in response of the Import and Export operations.
ServerNameThe fully qualified domain name of the Azure SQL Database Server where the operation is taking place.
UserNameThe username needed to connect to the server.

The response includes an HTTP status code, a set of response headers, and a response body.

Response Headers

The response for this operation includes the following headers.

Response HeaderDescription
x-ms-request-idA 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

The Guid in the response is the RequestID and can be used to query the service for the status of the operation.

<ArrayOfStatusInfo xmlns="http://schemas.datacontract.org/2004/07/Microsoft.SqlServer.Management.Dac.ServiceTypes" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <StatusInfo>  
    <BlobUri>https://testexport.blob.core.windows.net/testcontainer/testblob3</BlobUri>  
    <DatabaseName>testdb</DatabaseName>  
    <ErrorMessage i:nil="true"/>  
    <LastModifiedTime>2014-06-05T17:04:13.5548778Z</LastModifiedTime>  
    <QueuedTime>2014-06-05T17:04:13.5548778Z</QueuedTime>  
    <RequestId>e56ac5d8-0b12-4b76-ba0e-155721ab59ce</RequestId>  
    <RequestType>Export</RequestType>  
    <ServerName>{serverName}.database.windows.net</ServerName>  
    <Status>Pending</Status>  
  </StatusInfo>  
</ArrayOfStatusInfo>  

The following table describes the elements of the response body:

Element NameDescription
Blob UriThe URI of the BACPAC file.
DatabaseNameThe name of the database.
LastModifiedTimeThe last time the database was modified.
QueuedTimeThe time the import or export operation entered the queue.
RequestIDThe identifier for the original import/export operation.
RequestTypeThe type of request; Import or Export.
ServerNameThe name of the server where the import/export operation.
StatusThe status of the import/export operation.

Common REST API Error Codes
Operations for Azure SQL Databases
Azure SQL Database Cmdlets
Azure SQL Database

Show: