This topic describes how to delete a specified unused resource pool by using the API.
Request parameters
The following table describes the parameters of the request.
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the resource pool to be deleted. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| successful | bool | Indicates whether the request is successful. |
| timestamp | time.Time | The timestamp when the server received the request. |
| duration | int | The time (in milliseconds) required by the server to process the request. |
| status | int | The HTTP status code. |
| traceId | string | The Trace ID of the request. |
| error | ApiError | The error generated during the request, which contains the following information:
|
Examples
Example request
DELETE 10.10.10.1:2886/api/v1/resource-pool/p1
Example response
{
"successful": true,
"timestamp": "2024-10-14T15:46:12.947201503+08:00",
"duration": 13,
"status": 200,
"traceId": "b3792e6360025da5"
}
References
You can also call the API by using SDK methods in addition to the CLI.
For more information about how to use the obshell-sdk-python to request API methods, see Delete a resource pool.
For more information about how to use the obshell-sdk-go to request API methods, see Delete a resource pool.