AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Activates the gateway you previously deployed on your host. For more information, see Activate the AWS Storage Gateway. In the activation process, you specify information such as the region you want to use for storing snapshots or tapes, the time zone for scheduled snapshots the gateway snapshot schedule window, an activation key, and a name for your gateway. The activation process also associates your gateway with your account; for more information, see UpdateGatewayInformation.

You must turn on the gateway VM before you can activate your gateway.

Note:

For PCL this operation is only available in asynchronous form. Please refer to ActivateGatewayAsync.

Namespace: Amazon.StorageGateway
Assembly: AWSSDK.StorageGateway.dll
Version: 3.x.y.z

Syntax

C#
public abstract ActivateGatewayResponse ActivateGateway(
         ActivateGatewayRequest request
)
Parameters
request
Type: Amazon.StorageGateway.Model.ActivateGatewayRequest

Container for the necessary parameters to execute the ActivateGateway service method.

Return Value
The response from the ActivateGateway service method, as returned by StorageGateway.

Exceptions

ExceptionCondition
InternalServerErrorException An internal server error has occurred during the request. For more information, see the error and message fields.
InvalidGatewayRequestException An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.

Examples

Activates the gateway you previously deployed on your host.

To activate the gateway


var response = client.ActivateGateway(new ActivateGatewayRequest 
{
    ActivationKey = "29AV1-3OFV9-VVIUB-NKT0I-LRO6V",
    GatewayName = "My_Gateway",
    GatewayRegion = "us-east-1",
    GatewayTimezone = "GMT-12:00",
    GatewayType = "STORED",
    MediumChangerType = "AWS-Gateway-VTL",
    TapeDriveType = "IBM-ULT3580-TD5"
});

string gatewayARN = response.GatewayARN;

            

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms

See Also