This operation returns information about the working storage of 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
DescribeUploadBuffer
operation to add upload buffer to a stored-volume gateway.
The response includes disk IDs that are configured as working storage, and it includes the amount of working storage allocated and used.
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 (6 lines) | View on GitHub