Skip to content

Commit a80e4aa

Browse files
committed
Add Python API for data catalog indexing
1 parent 49684e3 commit a80e4aa

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

dataikuapi/dssclient.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,18 @@ def prepare_project_import(self, f):
635635
"tmp-import.zip", f)
636636
return TemporaryImportHandle(self, val.json()["id"])
637637

638+
639+
########################################################
640+
# Data Catalog
641+
########################################################
642+
643+
def catalog_index_connections(self, connection_names=[], all_connections=False, indexing_mode="FULL"):
644+
return self._perform_json("POST", "/catalog/index", body={
645+
"connectionNames": connection_names,
646+
"indexAllConnections": all_connections,
647+
"indexingMode": indexing_mode
648+
})
649+
638650
########################################################
639651
# Internal Request handling
640652
########################################################

0 commit comments

Comments
 (0)