Method: instances.import

Imports data into a Cloud SQL instance from a SQL dump or CSV file in Cloud Storage.

HTTP request

POST https://sqladmin.googleapis.com/v1/projects/{project}/instances/{instance}/import

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID of the project that contains the instance.

instance

string

Cloud SQL instance ID. This does not include the project ID.

Request body

The request body contains an instance of InstancesImportRequest.

Response body

If successful, the response body contains an instance of Operation.

Authorization Scopes

Requires the following OAuth scope:

  • https://www.googleapis.com/auth/cloud-platform

For more information, see the Authentication Overview.

InstancesImportRequest

Database instance import request.

JSON representation
{
  "importContext": {
    object (ImportContext)
  }
}
Fields
importContext

object (ImportContext)

Contains details about the import operation.