CLI command | update-deployment-policy |
Description | Update a deployment policy. |
Command format |
The path to the JSON file that defines the deployment policy needs to be defined as the |
Short option | Long option | Description | Required | Example value |
---|---|---|---|---|
-p | --resource-path | Folder path of the JSON file where the deployment policy definition is defined. | Yes |
|
{ "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.
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
Successfully updated deployment policy.