The chat responses are generated using Generative AI technology for intuitive search and may not be entirely accurate. They are not intended as professional advice. For full details, including our use rights, privacy practices and potential export control restrictions, please refer to our Generative AI Service Terms of Use and Generative AI Service Privacy Information. As this is a test version, please let us know if something irritating comes up. Like you get recommended a chocolate fudge ice cream instead of an energy managing application. If that occurs, please use the feedback button in our contact form!
Skip to content
Industrial IoT Open Source Tools and Libraries

Demo applications, libraries and SDKs as well as useful connectivity tools which are maintained and released as open source software.

mdsp data-lake Command¶

Syntax:

mdsp data-lake

Help:

mdsp data-lake --help

Alternative form:

mc data-lake

(The CLI was using mc as default command name in older versions)

Description¶

manage data lake, data lake access permissions and STS tokens *

Usage¶

Parameter list:

Usage: mdsp data-lake|dlk [options]

manage data lake, data lake access permissions and STS tokens *

Options:
 -m, --mode [...] mode: list | read | write | delete | readtoken | writetoken | uploadurl | downloadurl | upload | meta |
 subscriptions | subscribe | unsubscribe (default: "list")
 -f, --file file to upload
 -l, --shell [bash|ps|cmd] output format for STS token [bash | ps | cmd] (default: "bash")
 -p, --path path for read/write token or uploadUrl, downloadUrl, subscribe or unsubscribe comamand
 -t, --destination destination for subscribe comamand
 -i, --permissionid permission id for delete operation
 -s, --subtenantid subtenant id
 -b, --subscriptionid subscription id
 -d, --duration duration in seconds (default: "3600")
 -k, --passkey passkey
 -y, --retry retry attempts before giving up (default: "3")
 -v, --verbose verbose output
 -h, --help display help for command

Examples¶

Here are some examples of how to use the mdsp data-lake command:

 Examples:

 mdsp data-lake --mode list lists all configured permissions for data lake
 mdsp data-lake --mode write allow writing to the data lake
 mdsp data-lake --mode write --path data/ allow writing to the data lake from data/ folder
 mdsp data-lake --mode meta --path data/ get metadata for path
 mdsp data-lake --mode readtoken create AWS STS Token with read rights
 mdsp data-lake --mode writetoken create AWS STS Token with write rights from data lake root
 mdsp data-lake --mode writetoken --path data/ create AWS STS Token with write rights from data/ folder
 mdsp data-lake --mode delete --permissionid delete writing permission with selected permissionid
 mdsp data-lake --mode upload --file CHANGELOG.md --path uploads/CHANGELOG.md upload file to data lake
 mdsp data-lake --mode downloadurl --path uploads/CHANGELOG.md generate download url for the path
 mdsp data-lake --mode subscriptions list all data lake event subscriptions
 mdsp data-lake --mode subscribe --path --destination aws-sns:// subscribe an AWS SNS topic to folder changes
 mdsp data-lake --mode unsubscribe --subscriptionid delete event subscription

 Additional Information:

 Purchasing Data Lake: https://www.dex.siemens.com/mindsphere/applications/integrated-data-lake
 Data Lake APIs: https://developer.mindsphere.io/apis/iot-integrated-data-lake/api-integrated-data-lake-overview.html

See Insights Hub API documentation for more information about Insights Hub APIs.