Build a raidcom recipe script
raidcom_build_recipeBuilds a validated raidcom script and individual commands from a recipe and parameters, so you can review provisioning commands before executing them yourself.
Instructions
Build the script for a recipe from its parameters (see raidcom_list_recipes). Lists such as ldev_ids accept ranges: ["100-109"]. Example: recipe provision-fc-volumes with {"pool": 0, "ldev_ids": ["100-103"], "capacity": "100G", "ports": ["CL1-A", "CL2-A"], "host_grp": "esx01", "host_mode": "VMWARE_EX", "wwns": ["210000e08b0256f8"]}. Returns the script and the individual commands. Nothing is executed.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"recipe": "<recipe>",
"params": "<params>"
},
"name": "raidcom_build_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| login | No | Add raidcom -login / -logout using $RAIDCOM_USER and $RAIDCOM_PASSWORD. | |
| model | No | Storage model, so values are checked against its limits: vsp-one-b24, vsp-one-b26, vsp-one-b28, vsp-5000, vsp-e590, vsp-e790, vsp-e990, vsp-e1090. Aliases such as B28 or E990 work. Omit it to check against the widest range of any model. | |
| global | No | Settings that apply to the whole command, not to one raidcom option. | |
| params | Yes | Recipe parameters. | |
| recipe | Yes | Recipe ID. | |
| strict | No | Default true. The command catalogue is parsed from the manual, whose syntax lines are occasionally incomplete, so a "needs <option>" error can be a false alarm. If one looks wrong after reading raidcom_describe_command, retry with strict=false: missing-option errors then become warnings. Unknown options and out-of-range values stay errors. | |
| lock_resource | No | Wrap the commands in raidcom lock resource / unlock resource. |