Overview
Excerpt |
---|
CLI command | add-application-policy | Description | Add 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
| | | | |
---|
-p | --resource-path | Folder 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 |
---|
nopanel | true |
---|
|
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 |