:doc:`MigrationHubStrategyRecommendations <../../migrationhubstrategy>` / Client / get_server_strategies

*********************
get_server_strategies
*********************



.. py:method:: MigrationHubStrategyRecommendations.Client.get_server_strategies(**kwargs)

  

  Retrieves recommended strategies and tools for the specified server.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/migrationhubstrategy-2020-02-19/GetServerStrategies>`_  


  **Request Syntax**
  ::

    response = client.get_server_strategies(
        serverId='string'
    )
    
  :type serverId: string
  :param serverId: **[REQUIRED]** 

    The ID of the server.

    

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

    
    ::

      {
          'serverStrategies': [
              {
                  'isPreferred': True|False,
                  'numberOfApplicationComponents': 123,
                  'recommendation': {
                      'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase',
                      'targetDestination': 'None specified'|'AWS Elastic BeanStalk'|'AWS Fargate'|'Amazon Elastic Cloud Compute (EC2)'|'Amazon Elastic Container Service (ECS)'|'Amazon Elastic Kubernetes Service (EKS)'|'Aurora MySQL'|'Aurora PostgreSQL'|'Amazon Relational Database Service on MySQL'|'Amazon Relational Database Service on PostgreSQL'|'Amazon DocumentDB'|'Amazon DynamoDB'|'Amazon Relational Database Service'|'Babelfish for Aurora PostgreSQL',
                      'transformationTool': {
                          'description': 'string',
                          'name': 'App2Container'|'Porting Assistant For .NET'|'End of Support Migration'|'Windows Web Application Migration Assistant'|'Application Migration Service'|'Strategy Recommendation Support'|'In Place Operating System Upgrade'|'Schema Conversion Tool'|'Database Migration Service'|'Native SQL Server Backup/Restore',
                          'tranformationToolInstallationLink': 'string'
                      }
                  },
                  'status': 'recommended'|'viableOption'|'notRecommended'|'potential'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **serverStrategies** *(list) --* 

        A list of strategy recommendations for the server.

        
        

        - *(dict) --* 

          Contains information about a strategy recommendation for a server.

          
          

          - **isPreferred** *(boolean) --* 

            Set to true if the recommendation is set as preferred.

            
          

          - **numberOfApplicationComponents** *(integer) --* 

            The number of application components with this strategy recommendation running on the server.

            
          

          - **recommendation** *(dict) --* 

            Strategy recommendation for the server.

            
            

            - **strategy** *(string) --* 

              The recommended strategy.

              
            

            - **targetDestination** *(string) --* 

              The recommended target destination.

              
            

            - **transformationTool** *(dict) --* 

              The target destination for the recommendation set.

              
              

              - **description** *(string) --* 

                Description of the tool.

                
              

              - **name** *(string) --* 

                Name of the tool.

                
              

              - **tranformationToolInstallationLink** *(string) --* 

                URL for installing the tool.

                
          
        
          

          - **status** *(string) --* 

            The recommendation status of the strategy for the server.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`MigrationHubStrategyRecommendations.Client.exceptions.ValidationException`

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

  