describe_maintenance_start_time ( $opt )

This operation returns your gateway’s weekly maintenance start time including the day and time of the week. Note that values are in terms of the gateway’s time zone.

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

Maintenance Start Time

$sg = new AmazonStorageGateway();

// Update maintenance start time
$response = $sg->update_maintenance_start_time(array(
	'GatewayARN'   => $gateway_arn,
	"HourOfDay"    => 0,
	"MinuteOfHour" => 30,
	"DayOfWeek"    => 2,
));
var_dump($response->isOK());

sleep(2);

// Describe maintenance start time
$response = $sg->describe_maintenance_start_time(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_maintenance_start_time($opt = null)
{
    if (!$opt) $opt = array();
    
    return $this->authenticate('DescribeMaintenanceStartTime', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback