GitLab API Configuration Lite
Request
POST https://api.fivetran.com/v1/connections
{ "group_id": "group_id", "service": "gitlab", "trust_certificates": true, "trust_fingerprints": true, "run_setup_tests": true, "paused": false, "pause_after_trial": false, "sync_frequency": 1440, "data_delay_sensitivity": "NORMAL", "data_delay_threshold": 0, "daily_sync_time": "14:00", "schedule_type": "auto", "connect_card_config": { "redirect_uri": "https://your.site/path", "hide_setup_guide": true }, "proxy_agent_id": "proxy_agent_id", "private_link_id": "private_link_id", "networking_method": "Directly", "hybrid_deployment_agent_id": "hybrid_deployment_agent_id", "destination_configuration": { "virtual_warehouse": "virtual_warehouse" }, "destination_schema_names": "SOURCE_NAMING", "config": { "custom_base_url": "your_gitlab_custom_base_url", "client_certificate": "your_gitlab_client_certificate", "auth": "oauth_2", "client_private_key": "your_gitlab_client_private_key", "base_url": "", "enable_mtls_connection": "true", "personal_access_token": "your_gitlab_personal_access_token", "schema": "schema_name" }, "auth": { "access_token": "gitlab_access_token", "refresh_token": "gitlab_refresh_token", "client_access": { "client_secret": "string", "client_id": "string" } } }
Config parameters
| Name | Description |
|---|---|
custom_base_url | Your GitLab custom base URL. |
client_certificate | Your GitLab client certificate content. |
auth | Your GitLab auth type. |
client_private_key | Your GitLab client private key content. |
base_url | Your GitLab base URL. |
enable_mtls_connection | The confirmation that you have allowed Fivetran to connect with your self-hosted instance. Possible values: true, false. |
personal_access_token | Your GitLab personal access token. |
schema (required) | Destination schema name. Schema name is permanent and cannot be changed after connection creation |
Authorization
There are three ways to authorize this connector type:
- By specifying the values for the
auth,personal_access_token,base_url,custom_base_url,enable_mtls_connection,client_certificateandclient_private_keyparameters in the request.POST https://api.fivetran.com/v1/connections{ "service": "gitlab", "group_id": "group_id", "config": { "auth": "oauth_2", "personal_access_token": "your_gitlab_personal_access_token", "base_url": "", "custom_base_url": "your_gitlab_custom_base_url", "enable_mtls_connection": "true", "client_certificate": "your_gitlab_client_certificate", "client_private_key": "your_gitlab_client_private_key" } } - By specifying the values for the
client_access,refresh_tokenandaccess_tokenparameters in theauthsection.POST https://api.fivetran.com/v1/connections{ "service": "gitlab", "group_id": "group_id", "auth": { "client_access": { "client_secret": "string", "client_id": "string" }, "refresh_token": "gitlab_refresh_token", "access_token": "gitlab_access_token" } }Auth Parameters
Name Description access_tokenYour GitLab access token. refresh_tokenYour GitLab refresh token. client_accessYour GitLab client access. client_access.client_secretclient_access.client_id By using the Connect Card or the Fivetran dashboard.