A.4.4. 使用 cURL DELETE 请求
例 A.4. DELETE
请求
以下
DELETE
请求会删除虚拟机资源。
DELETE /ovirt-engine/api/vms/082c794b-771f-452f-83c9-b2b5a19c0399 HTTP/1.1
将方法(
DELETE
)和 URI (https://[RHEVM-Host]:443/ovirt-engine/api/vms/082c794b-771f-452f-83c9-b2b5a19c0399
)调整为以下 cURL 命令:
$ curl -X DELETE -u [USER:PASS] --cacert [CERT] https://[RHEVM-Host]:443//ovirt-engine/api/vms/082c794b-771f-452f-83c9-b2b5a19c039
REST API 删除虚拟机。注意
Accept: application/xml
请求标头是可选的,因为 DELETE
请求为空的结果。