This operation updates a gateway’s metadata, which includes the gateway’s name and time zone. To specify which gateway to update, use the Amazon Resource Name (ARN) of the gateway in your request.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
|---|---|---|---|
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
|---|---|
|
A |
Examples
Activate a Storage Gateway
$sg = new AmazonStorageGateway();
// Acquire activation key
$activation_key = $sg->acquire_activation_code($gateway_url);
var_dump($activation_key);
if (!$activation_key) die('Activation key could not be retrieved.');
// Activate the gateway
$response = $sg->activate_gateway(array(
'ActivationKey' => $activation_key,
'GatewayName' => 'example-gateway',
'GatewayTimezone' => 'GMT-8:00',
'GatewayRegion' => 'us-east-1',
));
var_dump($response->isOK());
$gateway_arn = (string) $response->body->GatewayARN;
// Update gateway information
$response = $sg->update_gateway_information(array(
'GatewayARN' => $gateway_arn,
'GatewayTimezone' => 'GMT-7:00',
));
var_dump($response->isOK());
Source
Method defined in services/storagegateway.class.php | Toggle source view (6 lines) | View on GitHub

