Change 'path in bucket' for S3 managed folder using code
psvnm
Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Dataiku DSS Adv Designer, Registered Posts: 7 ✭✭✭✭
Hi there,
I wanted to change the path for S3 managed folder using code rather than manual. Please suggest further.
Tagged:
Answers
-
RoyE Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 31 Dataiker
Hi!
This can be done using the dataikuapi package as seen below.
You will need to fill in the required variables with your environment specific information.import dataikuapi host = "" #hosturl key = '' #user API key client = dataikuapi.DSSClient(host, key) project = client.get_project(projectKey) dataset = project.get_dataset(datasetName) getSettings = dataset.get_settings() getSettings.get_raw_params()['path']='/test' #s3 bucket path getSettings.save() #save changes