Data Warehouse
Operations related to Data Warehouse integrations for exporting/importing platform data to/from external data warehouse systems.
The data warehouse owning the database
The data warehouse database id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datawarehouses/{datawarehouse_id}/databases/{database_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"data_warehouse_id": "text",
"id": "text",
"name": "text",
"discovery_date": 0
}
}The data warehouse owning the database
The data warehouse database id
0Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datawarehouses/{datawarehouse_id}/databases/{database_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}{
"status": "ok",
"data": {
"data_warehouse_id": "text",
"id": "text",
"name": "text",
"discovery_date": 0
}
}The data warehouse owning the database
The data warehouse database id
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datawarehouses/{datawarehouse_id}/databases/{database_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Retrieve a DataWarehouse Datamart Config
The datamart id
The data warehouse id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/datawarehouses/{datawarehouse_id}/config HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"datamart_id": "text",
"role": "text",
"last_modified_ts": 0,
"output_schema_name": "text",
"working_schema_name": "text",
"id": "text",
"data_warehouse_id": "text",
"created_ts": 0,
"compute_name": "text"
}
}Upsert a DataWarehouse Datamart Config
The datamart id
The data warehouse id
00Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/datawarehouses/{datawarehouse_id}/config HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 142
{
"datamart_id": "text",
"role": "text",
"output_schema_name": "text",
"working_schema_name": "text",
"data_warehouse_id": "text",
"compute_name": "text"
}{
"status": "ok",
"data": {
"datamart_id": "text",
"role": "text",
"last_modified_ts": 0,
"output_schema_name": "text",
"working_schema_name": "text",
"id": "text",
"data_warehouse_id": "text",
"created_ts": 0,
"compute_name": "text"
}
}Delete a DataWarehouse Datamart Config
The datamart id
The data warehouse id
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/datawarehouses/{datawarehouse_id}/config HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}The data warehouse the credentials give access to
Success response
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datawarehouses/{datawarehouse_id}/credentials HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 56
{
"scheme": "GOOGLE_SERVICE_ACCOUNT",
"credentials": "text"
}{
"status": "ok"
}Return the first rows of a data warehouse table
The data warehouse owning the table
The table to preview
The datamart used to resolve the data warehouse's datafarm
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datawarehouses/{datawarehouse_id}/tables/{table_id}/preview?datamart_id=text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"columns": [
"text"
],
"rows": [
[
null
]
]
}
}The data warehouse owning the tables
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datawarehouses?organisation_id=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"organisation_id": "text",
"description": "text",
"engine_type": "BIG_QUERY",
"id": "text",
"name": "text",
"location": "text"
}
],
"status": "ok",
"max_results": 1,
"first_result": 1,
"total": 1,
"count": 1
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datawarehouses HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"description": "text",
"engine_type": "BIG_QUERY",
"name": "text",
"location": "text"
}{
"status": "ok",
"data": {
"organisation_id": "text",
"description": "text",
"engine_type": "BIG_QUERY",
"id": "text",
"name": "text",
"location": "text"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datawarehouses/wizard HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 172
{
"type": "POSTGRES",
"organisation_id": "text",
"credentials": "text",
"working_schema_name": "text",
"output_schema_name": "text",
"description": "text",
"data_warehouse_name": "text"
}{
"status": "ok",
"data": {
"organisation_id": "text",
"description": "text",
"engine_type": "BIG_QUERY",
"id": "text",
"name": "text",
"location": "text"
}
}The data warehouse owning the tables
Include elements with an non null disappearance date
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datawarehouses/{datawarehouse_id}/metadata HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"name": "text",
"databases": [
{
"discovery_date": 0,
"last_seen_date": 0,
"disappearance_date": 0,
"schemas": [
{
"disappearance_date": 0,
"discovery_date": 0,
"tables": [
{
"read_access_disappearance_date": 0,
"last_seen_date": 0,
"columns": [
{
"primary_key": false,
"discovery_date": 0,
"index": 0,
"type_name": "text",
"nullable": false,
"repeated": false,
"last_seen_date": 0,
"column_name": "text",
"disappearance_date": 0,
"id": "text"
}
],
"discovery_date": 0,
"has_read_access": false,
"disappearance_date": 0,
"name": "text",
"id": "text"
}
],
"last_seen_date": 0,
"id": "text",
"name": "text"
}
],
"name": "text",
"data_warehouse_id": "text",
"id": "text"
}
]
}
}The data warehouse owning the tables
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datawarehouses/{datawarehouse_id}/metadata HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"fetch_only": false
}{
"status": "ok",
"data": {
"id": "text",
"name": "text",
"databases": [
{
"discovery_date": 0,
"last_seen_date": 0,
"disappearance_date": 0,
"schemas": [
{
"disappearance_date": 0,
"discovery_date": 0,
"tables": [
{
"read_access_disappearance_date": 0,
"last_seen_date": 0,
"columns": [
{
"primary_key": false,
"discovery_date": 0,
"index": 0,
"type_name": "text",
"nullable": false,
"repeated": false,
"last_seen_date": 0,
"column_name": "text",
"disappearance_date": 0,
"id": "text"
}
],
"discovery_date": 0,
"has_read_access": false,
"disappearance_date": 0,
"name": "text",
"id": "text"
}
],
"last_seen_date": 0,
"id": "text",
"name": "text"
}
],
"name": "text",
"data_warehouse_id": "text",
"id": "text"
}
]
}
}The data warehouse the credentials give access to
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datawarehouses/{datawarehouse_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"organisation_id": "text",
"description": "text",
"engine_type": "BIG_QUERY",
"id": "text",
"name": "text",
"location": "text"
}
}The data warehouse the credentials give access to
Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datawarehouses/{datawarehouse_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 80
{
"description": "text",
"engine_type": "BIG_QUERY",
"name": "text",
"location": "text"
}{
"status": "ok",
"data": {
"organisation_id": "text",
"description": "text",
"engine_type": "BIG_QUERY",
"id": "text",
"name": "text",
"location": "text"
}
}The data warehouse the credentials give access to
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datawarehouses/{datawarehouse_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}The data warehouse
The data warehouse column
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datawarehouses/{datawarehouse_id}/columns/{column_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"table_id": "text",
"schema_name": "text",
"database_id": "text",
"data_warehouse_id": "text",
"data_warehouse_name": "text",
"column_name": "text",
"id": "text",
"database_name": "text",
"schema_id": "text",
"table_name": "text"
}
}The data warehouse owning the databases
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datawarehouses/{datawarehouse_id}/databases HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"count": 1,
"first_result": 1,
"max_results": 1,
"total": 1,
"data": [
{
"data_warehouse_id": "text",
"id": "text",
"name": "text",
"discovery_date": 0
}
]
}The data warehouse owning the databases
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datawarehouses/{datawarehouse_id}/databases HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 470
{
"databases": [
{
"schemas": [
{
"disappearance_date": 0,
"discovery_date": 0,
"tables": [
{
"read_access_disappearance_date": 0,
"last_seen_date": 0,
"columns": [
{
"primary_key": false,
"discovery_date": 0,
"index": 0,
"type_name": "text",
"nullable": false,
"repeated": false,
"last_seen_date": 0,
"column_name": "text",
"disappearance_date": 0,
"id": "text"
}
],
"discovery_date": 0,
"has_read_access": false,
"disappearance_date": 0,
"name": "text"
}
],
"last_seen_date": 0,
"id": "text",
"name": "text"
}
],
"name": "text"
}
]
}{
"count": 1,
"status": "ok",
"max_results": 1,
"first_result": 1,
"total": 1,
"data": [
{
"discovery_date": 0,
"last_seen_date": 0,
"disappearance_date": 0,
"schemas": [
{
"disappearance_date": 0,
"discovery_date": 0,
"tables": [
{
"read_access_disappearance_date": 0,
"last_seen_date": 0,
"columns": [
{
"primary_key": false,
"discovery_date": 0,
"index": 0,
"type_name": "text",
"nullable": false,
"repeated": false,
"last_seen_date": 0,
"column_name": "text",
"disappearance_date": 0,
"id": "text"
}
],
"discovery_date": 0,
"has_read_access": false,
"disappearance_date": 0,
"name": "text",
"id": "text"
}
],
"last_seen_date": 0,
"id": "text",
"name": "text"
}
],
"name": "text",
"data_warehouse_id": "text",
"id": "text"
}
]
}Last updated
Was this helpful?