This operation returns a list of the local disks of a gateway. To specify which gateway to describe you use the Amazon Resource Name (ARN) of the gateway in the body of the request.
The request returns all disks, specifying which are configured as working storage, stored volume or not configured at all.
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