MigrationHubStrategyRecommendations.Client.
get_portfolio_summary
()¶Retrieves overall summary including the number of servers to rehost and the overall number of anti-patterns.
See also: AWS API Documentation
Request Syntax
response = client.get_portfolio_summary()
{
'assessmentSummary': {
'antipatternReportS3Object': {
's3Bucket': 'string',
's3key': 'string'
},
'antipatternReportStatus': 'FAILED'|'IN_PROGRESS'|'SUCCESS',
'antipatternReportStatusMessage': 'string',
'lastAnalyzedTimestamp': datetime(2015, 1, 1),
'listAntipatternSeveritySummary': [
{
'count': 123,
'severity': 'HIGH'|'MEDIUM'|'LOW'
},
],
'listApplicationComponentStatusSummary': [
{
'count': 123,
'srcCodeOrDbAnalysisStatus': 'ANALYSIS_TO_BE_SCHEDULED'|'ANALYSIS_STARTED'|'ANALYSIS_SUCCESS'|'ANALYSIS_FAILED'|'ANALYSIS_PARTIAL_SUCCESS'|'UNCONFIGURED'|'CONFIGURED'
},
],
'listApplicationComponentStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'listApplicationComponentSummary': [
{
'appType': 'DotNetFramework'|'Java'|'SQLServer'|'IIS'|'Oracle'|'Other'|'Tomcat'|'JBoss'|'Spring'|'Mongo DB'|'DB2'|'Maria DB'|'MySQL'|'Sybase'|'PostgreSQLServer'|'Cassandra'|'IBM WebSphere'|'Oracle WebLogic'|'Visual Basic'|'Unknown'|'DotnetCore'|'Dotnet',
'count': 123
},
],
'listServerStatusSummary': [
{
'count': 123,
'runTimeAssessmentStatus': 'dataCollectionTaskToBeScheduled'|'dataCollectionTaskScheduled'|'dataCollectionTaskStarted'|'dataCollectionTaskStopped'|'dataCollectionTaskSuccess'|'dataCollectionTaskFailed'|'dataCollectionTaskPartialSuccess'
},
],
'listServerStrategySummary': [
{
'count': 123,
'strategy': 'Rehost'|'Retirement'|'Refactor'|'Replatform'|'Retain'|'Relocate'|'Repurchase'
},
],
'listServerSummary': [
{
'ServerOsType': 'WindowsServer'|'AmazonLinux'|'EndOfSupportWindowsServer'|'Redhat'|'Other',
'count': 123
},
]
}
}
Response Structure
An assessment summary for the portfolio including the number of servers to rehost and the overall number of anti-patterns.
The Amazon S3 object containing the anti-pattern report.
The S3 bucket name.
The Amazon S3 key name.
The status of the anti-pattern report.
The status message of the anti-pattern report.
The time the assessment was performed.
List of AntipatternSeveritySummary.
Contains the summary of anti-patterns and their severity.
Contains the count of anti-patterns.
Contains the severity of anti-patterns.
List of status summaries of the analyzed application components.
Summary of the analysis status of the application component.
The number of application components successfully analyzed, partially successful or failed analysis.
The status of database analysis.
List of ApplicationComponentStrategySummary.
Object containing the summary of the strategy recommendations.
The count of recommendations per strategy.
The name of recommended strategy.
List of ApplicationComponentSummary.
Contains the summary of application components.
Contains the name of application types.
Contains the count of application type.
List of status summaries of the analyzed servers.
The status summary of the server analysis.
The number of servers successfully analyzed, partially successful or failed analysis.
The status of the run time.
List of ServerStrategySummary.
Object containing the summary of the strategy recommendations.
The count of recommendations per strategy.
The name of recommended strategy.
List of ServerSummary.
Object containing details about the servers imported by Application Discovery Service
Type of operating system for the servers.
Number of servers.
Exceptions
MigrationHubStrategyRecommendations.Client.exceptions.AccessDeniedException
MigrationHubStrategyRecommendations.Client.exceptions.ThrottlingException
MigrationHubStrategyRecommendations.Client.exceptions.InternalServerException