update_maintenance_start_time ( $opt )

This operation updates a gateway’s weekly maintenance start time information, including day and time of the week. The maintenance time is the time in your 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.
  • HourOfDay - integer - Required - The hour component of the maintenance start time represented as hh, wherehh is the hour (00 to 23). The hour of the day is in the time zone of the gateway.
  • MinuteOfHour - integer - Required - The minute component of the maintenance start time represented as mm, where mm is the minute (00 to 59). The minute of the hour is in the time zone of the gateway.
  • DayOfWeek - integer - Required - The maintenance start time day of the week.
  • 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 update_maintenance_start_time($opt = null)
{
    if (!$opt) $opt = array();
    
    return $this->authenticate('UpdateMaintenanceStartTime', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback