activate_gateway
async
¶
activate_gateway(
activation_key: ActivationKey,
gateway_name: GatewayName,
gateway_timezone: GatewayTimezone,
gateway_region: RegionId,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = None,
gateway_type: Optional[GatewayType] = None,
tape_drive_type: Optional[TapeDriveType] = None,
medium_changer_type: Optional[MediumChangerType] = None,
tags: Optional[Tags] = None,
) -> ActivateGatewayOutput
Activates the gateway you previously deployed on your host. In the activation process, you specify information such as the Amazon Web Services Region that 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.
Parameters:
-
activation_key(ActivationKey) –Your gateway activation key. You can obtain the activation key by sending an HTTP GET request with redirects enabled to the gateway IP address (port 80). The redirect URL returned in the response provides you the activation key for your gateway in the query string parameter
activationKey. It may also include other activation-related parameters, however, these are merely defaults -- the arguments you pass to theActivateGatewayAPI call determine the actual configuration of your gateway.For more information, see Getting activation key in the Storage Gateway User Guide.
-
gateway_name(GatewayName) –The name you configured for your gateway.
-
gateway_timezone(GatewayTimezone) –A value that indicates the time zone you want to set for the gateway. The time zone is of the format "GMT", "GMT-hr:mm", or "GMT+hr:mm". For example, GMT indicates Greenwich Mean Time without any offset. GMT-4:00 indicates the time is 4 hours behind GMT. GMT+2:00 indicates the time is 2 hours ahead of GMT. The time zone is used, for example, for scheduling snapshots and your gateway's maintenance schedule.
-
gateway_region(RegionId) –A value that indicates the Amazon Web Services Region where you want to store your data. The gateway Amazon Web Services Region specified must be the same Amazon Web Services Region as the Amazon Web Services Region in your
Hostheader in the request. For more information about available Amazon Web Services Regions and endpoints for Storage Gateway, see Storage Gateway endpoints and quotas in the Amazon Web Services General Reference.Valid Values: See Storage Gateway endpoints and quotas in the Amazon Web Services General Reference.
-
gateway_type(Optional[GatewayType], default:None) –A value that defines the type of gateway to activate. The type specified is critical to all later functions of the gateway and cannot be changed after activation. The default value is
CACHED.Amazon FSx File Gateway is no longer available to new customers. Existing customers of FSx File Gateway can continue to use the service normally. For capabilities similar to FSx File Gateway, visit this blog post.
Valid Values:
STORED|CACHED|VTL|FILE_S3|FILE_FSX_SMB -
tape_drive_type(Optional[TapeDriveType], default:None) –The value that indicates the type of tape drive to use for tape gateway. This field is optional.
Valid Values:
IBM-ULT3580-TD5 -
medium_changer_type(Optional[MediumChangerType], default:None) –The value that indicates the type of medium changer to use for tape gateway. This field is optional.
Valid Values:
STK-L700|AWS-Gateway-VTL|IBM-03584L32-0402 -
tags(Optional[Tags], default:None) –A list of up to 50 tags that you can assign to the gateway. Each tag is a key-value pair.
Valid characters for key and value are letters, spaces, and numbers that can be represented in UTF-8 format, and the following special characters: + - = . _ : / @. The maximum length of a tag's key is 128 characters, and the maximum length for a tag's value is 256 characters.
Raises:
-
InternalServerError–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.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To activate the gateway Activates the gateway you previously deployed on your host.
>>> await client.activate_gateway(activation_key='29AV1-3OFV9-VVIUB-NKT0I-LRO6V', gateway_name='My_Gateway', gateway_timezone='GMT-12:00', gateway_region='us-east-1', gateway_type='STORED', tape_drive_type='IBM-ULT3580-TD5', medium_changer_type='AWS-Gateway-VTL')
Source code in docs_src/capo_storage_gateway/_services/async_storage_gateway.py
443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 | |