3.4 Example 4: Create and Delete a Media Pool

This example demonstrates creating and deleting a media pool as described in section 2.5.3.1.

Prerequisites

  • The Storage Services protocols meets all the preconditions as described in section 2.4.

  • The RSMP service, as described in [MS-RSMP], is enabled on both the client and server.

  • The communication channel between the Admin Client and the RSMP service of the Storage Services protocols is established, as described in [MS-RSMP] section 2.1.

Initial System State

There is no media pool with the required name.

Final System State

The creation and deletion of the media pool has finished successfully.

Sequence of Events

Create and delete a media pool

Figure 11: Create and delete a media pool

The following steps describe this sequence:

  1. The Admin Client contacts the RSMP service to create a media pool by using the INtmsMediaServices1::CreateNtmsMediaPoolW method, as described in [MS-RSMP] section 3.2.5.2.2.10.

  2. The RSMP service creates a new pool, opens the newly created media pool, and returns zero on success.

  3. The Admin Client contacts the RSMP service to delete the media pool by using the INtmsMediaServices1::DeleteNtmsMediaPool method, as described in [MS-RSMP] section 3.2.5.2.2.14.

  4. The RSMP service deletes the requested media pool from the database and returns zero on success.