MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / create_datasource

Function create_datasource

tools/metadata_loader/main.py:42–59  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

40
41
42def create_datasource(args):
43 config = get_config()
44
45 url = f'{config["API_URL_BASE"]}/api/datasources'
46 data = {
47 "type": f"{args.type}",
48 "name": f"{args.name}",
49 "account": f"{args.accountName}",
50 "container": f"{args.containerName}",
51 "description": f"{args.description}",
52 "sasToken": f"{args.sasToken}",
53 "owners": ["IQEngine-Admin"],
54 "readers": [],
55 "public": True
56 }
57 resp = call_create_datasource_api(url, payload=data)
58
59 return resp.text
60
61
62def call_get_all_metadata_api(url: str):

Callers 1

Calls 2

get_configFunction · 0.70

Tested by 1