Overview

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

{
  "id": "deployment-policy-1",
  "networkPartitions": [
    {
      "id": "network-partition-1",
      "partitionAlgo": "one-after-another",
      "partitions": [
        {
          "id": "partition-1",
          "partitionMax": 20
        }
      ]
    }
  ]
}

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.

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

Sample output

Successfully updated deployment policy.
  • No labels