This API is used to delete specified BMSs in a batch or one by one.
POST /v1/{project_id}/baremetalservers/delete
Parameter |
Mandatory |
Description |
---|---|---|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
servers |
Yes |
Array of objects |
Specifies the BMSs to be deleted. For details, see Table 2. |
delete_publicip |
Yes |
Boolean |
Specifies whether to delete the EIP bound to the BMS when the BMS is deleted. If you choose not to delete the EIP, the system only unbinds the EIP from the BMS and reserves the EIP. The value can be true or false. The default value is false.
|
delete_volume |
No |
Boolean |
Specifies whether to delete a data disk attached to the BMS when the BMS is deleted. If you choose not to delete the data disk, the system only detaches the disk from the BMS and reserves the disk. The value can be true or false. The default value is false.
|
{ "servers": [ { "id": "616fb98f-46ca-475e-917e-2563e5a8cd19" } ], "delete_publicip": false, "delete_volume": false }
See Task ID Response.
Returned Value |
Description |
---|---|
200 |
The request has been successfully processed. |
For details about other returned values, see Status Codes.
See Error Codes.