You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"enable_cbt", "Enabling changed block tracking for a VDI";
6331
6335
"disable_cbt", "Disabling changed block tracking for a VDI";
6336
+
"data_destroy", "Deleting the data of the VDI";
6337
+
"export_changed_blocks", "Exporting a bitmap that shows the changed blocks between two VDIs";
6332
6338
"set_on_boot", "Setting the on_boot field of the VDI";
6333
6339
"blocked", "Operations on this VDI are temporarily blocked";
6334
6340
])
@@ -6571,6 +6577,57 @@ let vdi_disable_cbt = call
6571
6577
~allowed_roles:_R_VM_ADMIN
6572
6578
()
6573
6579
6580
+
let vdi_data_destroy = call
6581
+
~name:"data_destroy"
6582
+
~in_oss_since:None
6583
+
~in_product_since:rel_inverness
6584
+
~params:[Ref _vdi, "self", "The VDI whose data should be deleted."]
6585
+
~errs:[
6586
+
Api_errors.sr_operation_not_supported;
6587
+
Api_errors.vdi_missing;
6588
+
Api_errors.sr_not_attached;
6589
+
Api_errors.sr_no_pbds;
6590
+
Api_errors.operation_not_allowed;
6591
+
Api_errors.vdi_incompatible_type;
6592
+
Api_errors.vdi_no_cbt_metadata;
6593
+
Api_errors.vdi_in_use;
6594
+
Api_errors.vdi_is_a_physical_device;
6595
+
]
6596
+
~doc:"Delete the data of the snapshot VDI, but keep its changed block tracking metadata. When successful, this call changes the type of the VDI to cbt_metadata. This operation is idempotent: calling it on a VDI of type cbt_metadata results in a no-op, and no error will be thrown."
6597
+
~allowed_roles:_R_VM_ADMIN
6598
+
()
6599
+
6600
+
let vdi_export_changed_blocks = call
6601
+
~name:"export_changed_blocks"
6602
+
~in_oss_since:None
6603
+
~in_product_since:rel_inverness
6604
+
~params:
6605
+
[ Ref _vdi, "vdi_from", "The first VDI."
6606
+
; Ref _vdi, "vdi_to", "The second VDI."
6607
+
]
6608
+
~errs:
6609
+
[ Api_errors.sr_operation_not_supported
6610
+
; Api_errors.vdi_missing
6611
+
; Api_errors.sr_not_attached
6612
+
; Api_errors.sr_no_pbds
6613
+
; Api_errors.vdi_in_use
6614
+
]
6615
+
~result:(String, "A base64 string-encoding of the bitmap showing which blocks differ in the two VDIs.")
6616
+
~doc:"Reports which blocks differ in the two VDIs. This operation is not allowed when vdi_to is attached to a VM."
6617
+
~allowed_roles:_R_VM_OP
6618
+
()
6619
+
6620
+
let vdi_get_nbd_info = call
6621
+
~name:"get_nbd_info"
6622
+
~in_oss_since:None
6623
+
~in_product_since:rel_inverness
6624
+
~params:[Ref _vdi, "self", "The VDI to access via NBD."]
6625
+
~errs: [Api_errors.vdi_incompatible_type]
6626
+
~result:(SetString, "The list of URIs.")
6627
+
~doc:"Get a list of URIs specifying how to access this VDI via the NBD server of XenServer. A URI will be returned for each PIF of each host that is connected to the VDI's SR. An empty list is returned in case no network has a PIF on a host with access to the relevant SR. To access the given VDI, any of the returned URIs can be passed to the NBD server running at the IP address and port specified by that URI as the export name."
6628
+
~allowed_roles:_R_VM_ADMIN
6629
+
()
6630
+
6574
6631
(** A virtual disk *)
6575
6632
let vdi =
6576
6633
create_obj ~in_db:true~in_product_since:rel_rio ~in_oss_since:oss_since_303 ~internal_deprecated_since:None~persist:PersistEverything~gen_constructor_destructor:true~name:_vdi ~descr:"A virtual disk image"
0 commit comments