...
Parameter | Type | Required | Comment |
---|---|---|---|
action | String | create see also API - General parameters | |
maxbytes | long | the number of available bytes | |
sourcepath | String | the path to the storage | |
customdata | JSON | possible values:
| |
description | String | the description of the storage | |
hrid | String | the hrid of the storage | |
readonly | boolean | if set to true, the storage can only be read | |
drain | boolean | if set to true, the storage will be drained and cannot be used for fetches, see also Default-Schedule-Worker - G) |
By default, a new storage is locked. You must set the locked-option to false via update!
...
Parameter | Type | Required | Comment |
---|---|---|---|
action | String | update see also API - General parameters | |
uuid | uuid | see also API - General parameters | |
maxbytes | long | the number of available bytes | |
description | String | ||
customdata | JSON | possible values:
| |
locked | boolean | set this to false to active the storage, see also Default-Schedule-Worker - Scoring | |
readonly | boolean | if set to true, the storage can only be read, see also Default-Schedule-Worker - Scoring | |
drain | boolean | if set to true, the storage will be drained and cannot be used for fetches, see also Default-Schedule-Worker - G) |
Example call
No Format |
---|
/api/storage?action=update&uuid=bbb42a28-51dd-497c-85a9-16f318612c06&locked=true&readonly=true |
...