Goodday
referring to https://forum.proxmox.com/threads/create-disk-using-the-proxmox-api.27580/post-138824 this will (silently) create a new disk and attach that (ie.put the current staoge as a Unused disk, create the new storage and attach that in the old disk's place).
Is there an option I missed to (a) ignore the creation if a disk is already attached in that position and/or (b) throw and error is disk already exists?
Or should I rather use the work flow of creating the volume in storage, then attaching that, and to fail if the expected storage name/vole already exists?
referring to https://forum.proxmox.com/threads/create-disk-using-the-proxmox-api.27580/post-138824 this will (silently) create a new disk and attach that (ie.put the current staoge as a Unused disk, create the new storage and attach that in the old disk's place).
Is there an option I missed to (a) ignore the creation if a disk is already attached in that position and/or (b) throw and error is disk already exists?
Or should I rather use the work flow of creating the volume in storage, then attaching that, and to fail if the expected storage name/vole already exists?