psm analytics add-storage

Use this command to add block storage to a node without changing the compute shape of the node. Be aware that, if you add block storage, you can’t remove it later.

Syntax

In the following syntax, line breaks have been added for clarity. Don’t include them when entering the command.

psm analytics add-storage -s|--service-name serviceName
    -c|—config-payload pathToJson
      [-of|--output-format json|html|short]
      [-wc, --wait-until-complete <value>]

Parameters

Parameter Description
-s|--serviceName serviceName Name of the service.
-c|—config-payload pathToJson Full path to the JSON file that contains the payload for this command.
-of|--output-format json|html|short (Optional) Output format of the command’s response:
  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

  • short—output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

-wc, --wait-until-complete <value> (Optional) Wait until the command is complete. Valid values are [true, false]. Default is false.

Examples

$ psm analytics add-storage -s MyAnalyticsCloudClassicService  -c c://home/templates/add-storage-payload.json -of json

Sample Payload

In the payload JSON file, you would include the actual values that you want to use (see example).

{   
  "allServiceHosts":"",
    "components":{ 
	      "BI":{ 
	          "dataVolume":[] 
	          "latencyVolume":[]
			"hosts":[]
             }  
                }   
}

For example,

{
 "allServiceHosts":false,
 "components":{
     "BI":{
         "dataVolume":"11",
         "hosts":["mni1dockbi-bi-1"],
         "latencyVolume":"23"
     }
  }
}