:doc:`BackupGateway <../../backup-gateway>` / Client / create_gateway

**************
create_gateway
**************



.. py:method:: BackupGateway.Client.create_gateway(**kwargs)

  

  Creates a backup gateway. After you create a gateway, you can associate it with a server using the ``AssociateGatewayToServer`` operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/backup-gateway-2021-01-01/CreateGateway>`_  


  **Request Syntax**
  ::

    response = client.create_gateway(
        ActivationKey='string',
        GatewayDisplayName='string',
        GatewayType='BACKUP_VM',
        Tags=[
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    )
    
  :type ActivationKey: string
  :param ActivationKey: **[REQUIRED]** 

    The activation key of the created gateway.

    

  
  :type GatewayDisplayName: string
  :param GatewayDisplayName: **[REQUIRED]** 

    The display name of the created gateway.

    

  
  :type GatewayType: string
  :param GatewayType: **[REQUIRED]** 

    The type of created gateway.

    

  
  :type Tags: list
  :param Tags: 

    A list of up to 50 tags to assign to the gateway. Each tag is a key-value pair.

    

  
    - *(dict) --* 

      A key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.

      

    
      - **Key** *(string) --* **[REQUIRED]** 

        The key part of a tag's key-value pair. The key can't start with ``aws:``.

        

      
      - **Value** *(string) --* **[REQUIRED]** 

        The value part of a tag's key-value pair.

        

      
    

  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'GatewayArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **GatewayArn** *(string) --* 

        The Amazon Resource Name (ARN) of the gateway you create.

        
  
  **Exceptions**
  
  *   :py:class:`BackupGateway.Client.exceptions.ValidationException`

  
  *   :py:class:`BackupGateway.Client.exceptions.InternalServerException`

  
  *   :py:class:`BackupGateway.Client.exceptions.ThrottlingException`

  