Skip to main content

Update Disk Storage Properties

Modify the properties of an existing disk storage pool

Path Parameters
  • storagePoolId int32 required

    Id of the disk storage to update

Request Body
  • newName string

    change the name of the storage pool

  • dataEncryption object

    Different ways in which data can be encrypted.

  • encrypt boolean
  • keyLength int32

    Different keylengths are present for different kinds of ciphers. Blowfish,Twofish,AES and Serpent all accept both 128 and 256. DES3 accepts only 192. GOST accepts only 256.

  • cipher string

    Possible values: [BlowFish, AES, DES3, GOST, Serpent, Twofish]

    The different types of encryption keys that can be used for encrypting the data. The values are case sensitive

  • keyProvider object
  • id int32
  • name string
  • security object[]
  • user object
  • id int32
  • name string
  • userGroup object
  • id int32
  • name string
  • role object
  • id int32
  • name string
Responses

Success


Schema
  • errorMessage string
  • errorCode int32
PUT /v4/storage/disk/:storagepoolid    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://localhost/webconsole/api
token
storagePoolId — path required
Body
{
"newName": "string",
"dataEncryption": {
"encrypt": true,
"keyLength": 0,
"cipher": "BlowFish",
"keyProvider": {
"id": 0,
"name": "string"
}
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
]
}
curl -L -X PUT 'https://localhost/webconsole/api/V4/Storage/Disk/:storagePoolId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"newName": "string",
"dataEncryption": {
"encrypt": true,
"keyLength": 0,
"cipher": "BlowFish",
"keyProvider": {
"id": 0,
"name": "string"
}
},
"security": [
{
"user": {
"id": 0,
"name": "string"
},
"userGroup": {
"id": 0,
"name": "string"
},
"role": {
"id": 0,
"name": "string"
}
}
]
}'