Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
maxLevel3

Overview

Excerpt
CLI command
add-application-policy      
DescriptionAdd an application policy.
Command format
add-application-policy -p <JSON_FILE_PATH>

The path to the JSON file that defines the application policy needs to be defined as the <JSON_FILE_PATH> value.

Parameter definitions

Short option
Long option
Description
Required
Example value
-p
--resource-pathFolder path where the JSON file that defines the application policy is stored.yes
<STRATOS_SOURCE_HOME>/samples/application-policies
/application-policy-1.json

Sample application policy JSON

Excerpt Include
4.1.x Application Policy Resource Definition
4.1.x Application Policy Resource Definition
nopaneltrue

For information on all the properties that can be used in an application policy definition, see the Application Policy Resource Definition.

Example

Use case: Add the application policy defined in the <STRATOS_SOURCE_HOME>/samples/application-policies/application-policy-1.json file.

Code Block
add-application-policy -p <STRATOS_SOURCE_HOME>/samples/application-policies/application-policy-1.json

Sample output

Code Block
Successfully added application policy