CloudSqlSource
Stay organized with collections
Save and categorize content based on your preferences.
Cloud SQL source import data from.
JSON representation |
{
"projectId": string,
"instanceId": string,
"databaseId": string,
"tableId": string,
"gcsStagingDir": string,
"offload": boolean
} |
Fields |
projectId |
string
The project ID that contains the Cloud SQL source. Has a length limit of 128 characters. If not specified, inherits the project ID from the parent request.
|
instanceId |
string
Required. The Cloud SQL instance to copy the data from with a length limit of 256 characters.
|
databaseId |
string
Required. The Cloud SQL database to copy the data from with a length limit of 256 characters.
|
tableId |
string
Required. The Cloud SQL table to copy the data from with a length limit of 256 characters.
|
gcsStagingDir |
string
Intermediate Cloud Storage directory used for the import with a length limit of 2,000 characters. Can be specified if one wants to have the Cloud SQL export to a specific Cloud Storage directory. Ensure that the Cloud SQL service account has the necessary Cloud Storage Admin permissions to access the specified Cloud Storage directory.
|
offload |
boolean
Option for serverless export. Enabling this option will incur additional cost. More info can be found here.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-03 UTC."],[[["The provided JSON representation outlines the required fields for importing data from a Cloud SQL source."],["`instanceId`, `databaseId`, and `tableId` are all required string fields, each with a maximum length of 256 characters, specifying the source's location within Cloud SQL."],["`projectId`, also a string, designates the project containing the Cloud SQL source and defaults to the parent request's project ID if unspecified, with a 128-character limit."],["`gcsStagingDir` specifies the Cloud Storage directory used as an intermediary for the import process, with a limit of 2,000 characters and requires the Cloud SQL service account to have necessary permissions."],["The `offload` boolean option enables serverless export functionality, which may incur additional costs as detailed in the provided link."]]],[]]