Carlo Scarioni
08/21/2023, 2:48 PMapi
. For example if I want to call the sources
API endpoint, what is the URL? given local example where my current test webserver Airbyte is on http://localhost:8092/workspaces/9b64ff53-d970-4e32-85f3-cfcd9491fd96/connections . thanks,Terence Cho (Airbyte)
08/21/2023, 2:57 PM<http://localhost:8006/v1/><endpoint>
. You may have to set up port forwarding if you’re running with a kubernetes instance. If running with docker-compose, you’ll need to add a basic auth header with your username/password since requests go through the airbyte-proxy.
For terraform use cases:
Your provider settings should look like this
provider "airbyte" {
server_url = "<http://localhost:8006/v1/>"
// the below are only required if you're running through docker-compose using the airbyte-proxy and the actual password/username are the ones you've set (or the defaults)
password = "password"
username = "airbyte"
}
Carlo Scarioni
08/21/2023, 3:02 PMAntoine Balliet
08/21/2023, 3:37 PMCarlo Scarioni
08/21/2023, 3:47 PMTerence Cho (Airbyte)
08/21/2023, 4:06 PMSrikanth Sudhindra
08/21/2023, 8:08 PMserver_url
look like ?Srikanth Sudhindra
08/21/2023, 8:08 PMYou need to enable JavaScript to run this app
Carlo Scarioni
08/22/2023, 8:20 AMkubectl port-forward svc/airbyte-local-airbyte-api-server-svc 8093:80 -n airbyte
Carlo Scarioni
08/22/2023, 8:21 AMprovider "airbyte" {
server_url = "<http://localhost:8093/v1/>"
password = "password"
username = "airbyte"
}
Carlo Scarioni
08/22/2023, 8:21 AMShubham
08/24/2023, 11:18 AMCarlo Scarioni
08/24/2023, 11:20 AMCarlo Scarioni
08/24/2023, 11:21 AMterraform {
required_providers {
airbyte = {
source = "airbytehq/airbyte"
version = "0.3.2"
}
}
}
provider "airbyte" {
server_url = "<http://localhost:8093/v1/>"
password = "password"
username = "airbyte"
}
resource "airbyte_source_stripe" "my_source_stripe2" {
configuration = {
source_type = "stripe"
account_id = "acct_123"
client_secret = "sklive_abc"
start_date = "2023-07-01T00:00:00Z"
lookback_window_days = 0
slice_range = 365
}
name = "Stripe 2"
workspace_id = 'your-workspace-id'
}
Shubham
08/24/2023, 11:23 AMobject not found
error.
my main.tf is as follows:
terraform {
required_providers {
airbyte = {
source = "airbytehq/airbyte"
version = "0.3.3"
}
}
}
provider "airbyte" {
server_url = "<http://localhost:8000/api/v1/sources>"
}
resource "airbyte_source_pokeapi" "my_source_pokeapi" {
name = "bulbasaur"
workspace_id = "ac3574df-2318-4dfd-be64-0f5bef320270"
configuration = {
pokemon_name = "bulbasaur"
source_type = "pokeapi"
}
}
no credentials because I have disabled them in .env fileShubham
08/24/2023, 11:23 AMError: unexpected response from API. Got an unexpected response code 404
│
│ with airbyte_source_pokeapi.my_source_pokeapi,
│ on <http://main.tf|main.tf> line 15, in resource "airbyte_source_pokeapi" "my_source_pokeapi":
│ 15: resource "airbyte_source_pokeapi" "my_source_pokeapi" {
│
│ **Request**:
│ POST /api/v1/sources HTTP/1.1
│ Host: localhost:8000
│ Accept: application/json
│ Authorization: Basic Og==
│ Content-Type: application/json
│ User-Agent: speakeasy-sdk/terraform 0.3.3 2.86.10 1.0.0
│
│ {"configuration":{"pokemon_name":"bulbasaur","sourceType":"pokeapi"},"name":"bulbasaur","workspaceId":"ac3574df-2318-4dfd-be64-0f5bef320270"}
│
│ **Response**:
│ HTTP/1.1 404 Not Found
│ Content-Length: 17
│ Connection: keep-alive
│ Content-Type: application/json
│ Date: Thu, 24 Aug 2023 11:22:47 GMT
│ Server: nginx/1.25.2
│
│ Object not found.
Carlo Scarioni
08/24/2023, 11:24 AMShubham
08/24/2023, 11:26 AMTapan Desai
08/25/2023, 3:02 AMShubham
08/25/2023, 4:46 AMTapan Desai
08/25/2023, 6:19 AMTapan Desai
08/25/2023, 6:24 AM<http://localhost:8006/v1/><endpoint>
. You may have to set up port forwarding if you’re running with a kubernetes instance. If running with docker-compose, you’ll need to add a basic auth header with your username/password since requests go through the airbyte-proxy."Tapan Desai
08/25/2023, 6:42 AMGöktuğ Aşcı
08/27/2023, 1:15 PMGöktuğ Aşcı
08/27/2023, 1:16 PMCarlo Scarioni
09/01/2023, 9:23 AM/api/v1/sources
doesn't look like the right path. that doesnt look like an API path. That looks like you trying to access the old config api in the normal UI web appGöktuğ Aşcı
09/01/2023, 9:49 AMCarlo Scarioni
09/04/2023, 10:00 AMairbyte-api-server:
enabled: "true"
Göktuğ Aşcı
09/05/2023, 7:54 AMAntoine Balliet
09/05/2023, 12:22 PMGöktuğ Aşcı
09/05/2023, 12:33 PMAntoine Balliet
09/05/2023, 12:34 PMAntoine Balliet
09/05/2023, 12:35 PMAntoine Balliet
09/05/2023, 12:35 PMGöktuğ Aşcı
09/05/2023, 12:35 PM