Delete a server system pool
The first step in deleting a server system pool is to retrieve a list of available server system pools. From there, you can choose the server system pool that you need to delete.
- URL
- https://myserver:port/ibm/director/rest/VMControl/systemPools/{systemPoolOID}
- HTTP method
- GET
- Sample request
Get the list of all server system pools:
GET https://myserver:port/ibm/director/rest/VMControl/systemPools
Listing 32. Sample response representation{ "systemPools":[{ "state":{ "label":"Active", "id":20 }, "status":{ "label":"Healthy", "id":0 }, "type":"KVM", "oid":19362, "name":"systempool233", "uri":"/ibm/director/rest/VMControl/systemPools/19362" } ], "uri":"/ibm/director/rest/VMControl/systemPools" }
The delete server system pool request deletes the server system pool, but does not delete any of its members. The member virtual servers are simply updated to state that they are no longer managed by a server system pool. Deleting a server system pool is an asynchronous operation.
The response contains two copies of the same URL. The URL in the location header and in the response message point to the job activation record for the delete server system pool task. The job activation record contains the status of the delete server system pool request, including percentage complete and any status or error messages.
- URL
- https://myserver:port/ibm/director/rest/VMControl/systemPools/{systemPoolOID}
- HTTP method
- DELETE
- Sample request
Delete the server system pool with a unique ID of 19362:
DELETE https://myserver:port/ibm/director/rest/VMControl/systemPools/19362
Listing 33. Sample response representationHTTP/1.1 202 OK Cache-Control: no-store Set-Cookie: JSESSIONID_ibm_console_80=0000ZdJty7E5NW6uYO97y-KlOrI;Path=/; Secure; HTTPOnly Expires: Thu, 01 Dec 1994 16:00:00 GMT Content-Type: application/octet-stream; charset=UTF-8 Content-Length: 193 Date: Mon, 14 May 2012 08:57:47 GMT Location: https://9.9.9.9:8422/ibm/director/rest/jobs/1964/activations/1 Accept-Ranges: bytes Server: Noelios-Restlet-Engine/1.1.4 Content-Language: en-US { "MessageText": "DNZEMW051I New \"Delete Server System Pool\" job [1] started. \n Refer to the following URI for status: /ibm/director/rest/jobs/1964/activations/1 ", "MessageID": "DNZEMW051I" }
Monitor the delete server system pool job
The final step in deleting a server system pool is to monitor its progress to completion. The recommended method to monitor server system pool deletion is through the job activation record. As shown above, this URL is returned in response to the DELETE request. The job activation record can be monitored by polling the URL, but the recommended method is to use the JMS provider.
IBM Systems Director server includes a JMS provider to communicate events and other important messages with interested client applications. It allows for asynchronous communication between two or more applications. Job activation records can be monitored asynchronously through the Director.jobs.activation JMS topic.
For more information on JMS, refer to the JMS Messaging Overview page of the IBM Systems Director 6.3.x SDK information center.







