:doc:`StorageGateway <../../storagegateway>` / Client / set_local_console_password

**************************
set_local_console_password
**************************



.. py:method:: StorageGateway.Client.set_local_console_password(**kwargs)

  

  Sets the password for your VM local console. When you log in to the local console for the first time, you log in to the VM with the default credentials. We recommend that you set a new password. You don't need to know the default password to set a new password.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/SetLocalConsolePassword>`_  


  **Request Syntax**
  ::

    response = client.set_local_console_password(
        GatewayARN='string',
        LocalConsolePassword='string'
    )
    
  :type GatewayARN: string
  :param GatewayARN: **[REQUIRED]** 

    The Amazon Resource Name (ARN) of the gateway. Use the  ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

    

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

    The password you want to set for your VM local console.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **GatewayARN** *(string) --* 

        The Amazon Resource Name (ARN) of the gateway. Use the  ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

        
  
  **Exceptions**
  
  *   :py:class:`StorageGateway.Client.exceptions.InvalidGatewayRequestException`

  
  *   :py:class:`StorageGateway.Client.exceptions.InternalServerError`

  

  **Examples**

  Sets the password for your VM local console.
  ::

    response = client.set_local_console_password(
        GatewayARN='arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B',
        LocalConsolePassword='PassWordMustBeAtLeast6Chars.',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'GatewayARN': 'arn:aws:storagegateway:us-east-1:999999999999:gateway/sgw-12A3456B',
        'ResponseMetadata': {
            '...': '...',
        },
    }

  