This operation configures one or more gateway local disks as working storage for a gateway. This operation is supported only for the gateway-stored volume architecture.
Working storage is also referred to as upload buffer. You can also use the
AddUploadBuffer
operation to add upload buffer to a stored-volume gateway.
In the request, you specify the gateway Amazon Resource Name (ARN) to which you want to add working storage, and one or more disk IDs that you want to configure as working storage.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Working Storage.
$sg = new AmazonStorageGateway(); // Get local disk $response = $sg->list_local_disks(array('GatewayARN' => $gateway_arn)); $disks = $response->body->DiskId()->map_string(); $disk_id = $disks[0]; var_dump($response->isOK()); // Describe working storage $response = $sg->describe_working_storage(array('GatewayARN' => $gateway_arn)); var_dump($response->isOK()); // Add working storage $response = $sg->add_working_storage(array( 'GatewayARN' => $gateway_arn, 'DiskIds' => array($disk_id), )); var_dump($response->isOK()); sleep(10); // Describe working storage $response = $sg->describe_working_storage(array('GatewayARN' => $gateway_arn)); var_dump($response->isOK());
Source
Method defined in services/storagegateway.class.php | Toggle source view (12 lines) | View on GitHub