Create connection
Changed onCreate a new database connection. The request body varies by dialect - see dialect-specific documentation for required fields.
Request
- Base URLhttps://omniapp.co (the document declares no server; this is the origin it was published from)
- URLhttps://omniapp.co/api/v1/connections
- AuthHTTP bearer
Request body
Example request
{
"acceptsLicense": true,
"alwaysScopeViewNames": true,
"authenticationType": "snowflake-password",
"awsRoleArn": "arn:aws:iam::123456789012:role/OmniAthenaRole",
"baseRole": "QUERIER",
"database": "analytics_db",
"defaultSchema": "public",
"dialect": "snowflake",
"externalOauthAuthorizationUrl": "https://oauth.example.com/authorize",
"externalOauthTokenUrl": "https://oauth.example.com/token",
"host": "myaccount",
"hostOverride": "myaccount.snowflakecomputing.com",
"includeOtherCatalogs": [
"other_project1",
"other_project2"
],
"includeSchemas": [
"public",
"analytics"
],
"inferRelationshipsFromColumnNames": true,
"maxBillingBytes": 1000000000,
"name": "Production Warehouse",
"offloadedSchemas": [
"analytics_archive"
],
"port": 5432,
"queryTimeoutSeconds": 900,
"queryTimezone": "NONE",
"region": "us-east-1",
"scratchSchema": "omni_scratch",
"systemTimezone": "UTC",
"username": "analytics_user",
"warehouse": "COMPUTE_WH",
"wifAudience": "//iam.googleapis.com/projects/123456789/locations/global/workloadIdentityPools/my-pool/providers/my-provider",
"wifServiceAccountEmail": "omni@my-project.iam.gserviceaccount.com"
}Response
Connection created successfully
Example response
{
"data": "550e8400-e29b-41d4-a716-446655440000",
"success": true
}Changes
- info
added the new optional request property
- info
- breaking
removed the enum value
CONNECTION_ADMINof the request property - breaking
removed the enum value
MODELERof the request property - breaking
removed the enum value
NO_ACCESSof the request property - breaking
removed the enum value
QUERIERof the request property - breaking
removed the enum value
RESTRICTED_QUERIERof the request property - breaking
removed the enum value
VIEWERof the request property - breaking
request property
list-of-types was narrowed by removing typesstringfrom media typeapplication/json - breaking
the
request property type changed fromstringtoarray - breaking
the
request property type changed fromstringtoarray - breaking
the
request property type changed fromstringtointeger - warning
the
request property's max was set to9007199254740991.00 - warning
the
request property's min was set to0.00 - info
the request property
became optional
- breaking