# PreAllocateStorage

Allocates storage in a rolling buffer.

Media Server must allocate storage before it can write video to a rolling buffer. By default, Media Server allocates storage the first time it needs to write to the rolling buffer. Allocating storage is not instantaneous so this could delay the start of recording.

To ensure that Media Server can start recording immediately, use this action to allocate storage before you start processing.

Type: Asynchronous

Parameter | Description | Required
--- | --- | ---
`Stream` | The name of the rolling buffer for which you want to allocate storage. If you do not specify a name, Media Server allocates storage for all rolling buffers. | No

## Example

    http://localhost:14000/action=PreAllocateStorage

## Response

This is an asynchronous action, so it returns a token:

    <autnresponse>
      <action>PREALLOCATESTORAGE</action>
      <response>SUCCESS</response>
      <responsedata>
        <token>MTAuMi4xMDQuODI6MTQwMDA6UFJFQUxMT0NBVEVTVE9SQUdFOjI0OTE5MzMxMQ==</token>
      </responsedata>
    </autnresponse>

You can use the token with the QueueInfo action to retrieve the action response:

    <autnresponse>
      <action>QUEUEINFO</action>
      <response>SUCCESS</response>
      <responsedata>
        <actions>
          <action>
            <status>Finished</status>
            <queued_time>2014-Oct-23 17:36:13</queued_time>
            <time_in_queue>0</time_in_queue>
            <process_start_time>2014-Oct-23 17:36:13</process_start_time>
            <time_processing>72</time_processing>
            <process_end_time>2014-Oct-23 17:37:25</process_end_time>
            <token>MTAuMi4xMDQuODI6MTQwMDA6UFJFQUxMT0NBVEVTVE9SQUdFOjI0OTE5MzMxMQ==</token>
          </action>
        </actions>
      </responsedata>
    </autnresponse>

_FT_HTML5_bannerTitle.htm