MindSphere CLI: 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: mc 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:

    mc data-lake --mode list 			lists all configured permissions for data lake
    mc data-lake --mode write 			allow writing to the data lake
    mc data-lake --mode write --path data/ 	allow writing to the data lake from data/ folder
    mc data-lake --mode meta --path data/ 	get metadata for path
    mc data-lake --mode readtoken 		create AWS STS Token with read rights
    mc data-lake --mode writetoken 		create AWS STS Token with write rights from data lake root
    mc data-lake --mode writetoken --path data/ create AWS STS Token with write rights from data/ folder
    mc data-lake --mode delete --permissionid  			 delete writing permission with selected permissionid
    mc data-lake --mode upload --file CHANGELOG.md --path uploads/CHANGELOG.md 	 upload file to data lake
    mc data-lake --mode downloadurl --path uploads/CHANGELOG.md 		 generate download url for the path
    mc data-lake --mode subscriptions 						 list all data lake event subscriptions
    mc data-lake --mode subscribe --path  --destination aws-sns:// 	 subscribe an AWS SNS topic to folder changes
    mc 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 MindSphere API documentation for more information about MindSphere APIs.

Further Information

The content of the community tools and libraries documentation pages is licensed under the MIT License.
Siemens API Notice applies.
Back to top