This example contains an example PostgreSQL source endpoint configuration.
For configuration parameters for other source types, refer to the
Transfer endpoint resource schema .
To create a source endpoint,
use the EndpointServicecreate
method and pass the following parameters:
project_id: ID of the project where you want to create an endpoint.
You can get the project ID on the project's
information page.
name: Endpoint name. Must be unique within the project.
Select the runtime type you want Transfer to use for connecting to the database.
Dedicated:
Transfer connects to the database using a specified
internal or
external network.
Serverless:
Transfer connects to the database available from the internet using an automatically chosen network.
Runtime compatibility warning
Don't use endpoints with different runtime types
in the same transfer — this will cause the transfer to fail.
If you selected the dedicated runtime,
select the network in the dropdown.
Click Test connection.
Testing the connection may take a few minutes.
Update a source endpoint
Warning
You can't change the source type in an existing endpoint.
If you want to transfer data from a source of a different type,
create a new source endpoint of the desired type.
Console
Terraform
API
Go to the
Transfer
page in the console and switch to the Endpoints tab.
Select the endpoint you want to update.
Click Edit at the top right of the page.
Edit settings under Basic parameters and Endpoint parameters.
Click Submit.
Edit settings in the Terraform resource configuration file:
resource "doublecloud_transfer_endpoint" "example-source-endpoint" {
name = "example-source-endpoint"
project_id = DOUBLECLOUD_PROJECT_ID # Replace with your project ID
settings {
postgres_source {
... # Update the desired settings
}
}
}
Apply the configuration:
terraform apply
To update a source endpoint,
use the EndpointServiceupdate method
and pass the following parameters:
endpoint_id: ID of the endpoint you want to update.
To find the endpoint ID,
get a list of endpoints in the project.
name: New endpoint name. Must be unique within the project.