This operation activates the gateway you previously deployed on your VMware host. For more
information, see Downloading
and Deploying AWS Storage Gateway VM. In the activation process you specify information
such as the region you want to use for storing snapshots, the time zone for scheduled snapshots
and the gateway schedule window, an activation key, and a name for your gateway. The activation
process also associates your gateway with your account (see
UpdateGatewayInformation
).
You must power on the gateway VM before you can activate your gateway.
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