describe_working_storage ( $opt )

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

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • GatewayARN - string - Required - The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and region.
  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

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

public function describe_working_storage($opt = null)
{
    if (!$opt) $opt = array();
    
    return $this->authenticate('DescribeWorkingStorage', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback