Apache CloudStack 4.20.0.0 Root Admin API Reference
updateSecondaryStorageSelector
Updates an existing secondary storage selector.
Request parameters
| Parameter Name | Description | Required |
| id | The unique identifier of the secondary storage selector. | true |
| heuristicrule | The heuristic rule, in JavaScript language. It is required that it returns the UUID of a secondary storage pool. An example of a rule is `if (snapshot.hypervisorType === 'KVM') { '7832f261-c602-4e8e-8580-2496ffbbc45d'; }` would allocate all snapshots with the KVM hypervisor to the specified secondary storage UUID. | true |
Response Tags
| Response Name | Description |
| id | ID of the heuristic. |
| created | When the heuristic was created. |
| description | Description of the heuristic. |
| heuristicrule | The heuristic rule, in JavaScript language, used to select a secondary storage to be directed. |
| name | Name of the heuristic. |
| removed | When the heuristic was removed. |
| type | The resource type directed to a specific secondary storage by the selector. Valid options are: ISO, SNAPSHOT, TEMPLATE and VOLUME. |
| zoneid | The zone which the heuristic is valid upon. |