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 policy Command¶

Syntax:

mdsp policy

Help:

mdsp policy --help

Alternative form:

mc policy

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

Description¶

list, create or delete policies *

Usage¶

Parameter list:

Usage: mdsp policy|po [options]

list, create or delete policies *

Options:
 -m, --mode [list|create|update|delete|template|info] list | create | update | delete | template | info (default: "list")
 -f, --file .mdsp.json file with policy definition (default: "policy.mdsp.json")
 -n, --policy the policy name
 -i, --policyid the policy id
 -o, --overwrite overwrite template file if it already exists
 -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 policy command:

 Examples:

 mdsp policy --mode list list all policies
 mdsp policy --mode template --policy create a template file for 
 mdsp policy --mode create --file create policy 
 mdsp policy --mode update --file --policyid update policy 
 mdsp policy --mode info --policyid policy info for specified id
 mdsp policy --mode delete --policyid delete policy with specified id

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