Versions Compared

Key

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

Table of Contents
maxLevel3

Overview

Excerpt
CLI command
update-deployment-policy          
DescriptionUpdate a deployment policy.
Command format

update-deployment-policy -p <JSON_FILE_PATH>

The path to the JSON file that defines the deployment 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 of the JSON file where the deployment policy definition is defined.Yes

<STRATOS_SOURCE_HOME>/samples/deployment-policies/deployment-policy-1.json

Sample deployment policy JSON

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

For information on the property definitions, see the Deployment Policy Resource Definition.

Example

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

Code Block
update-deployment-policy -p <STRATOS_SOURCE_HOME>/samples/deployment-policies/deployment-policy-1.json

Sample output

Code Block
Successfully updated deployment policy.