MigrationHubStrategyRecommendations / Client / get_server_strategies

get_server_strategies#

MigrationHubStrategyRecommendations.Client.get_server_strategies(**kwargs)#

Retrieves recommended strategies and tools for the specified server.

See also: AWS API Documentation

Request Syntax

response = client.get_server_strategies(
    serverId='string'
)
Parameters:

serverId (string) –

[REQUIRED]

The ID of the server.

Return type:

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