MigrationHub / Client / list_application_states

list_application_states#

MigrationHub.Client.list_application_states(**kwargs)#

Lists all the migration statuses for your applications. If you use the optional ApplicationIds parameter, only the migration statuses for those applications will be returned.

See also: AWS API Documentation

Request Syntax

response = client.list_application_states(
    ApplicationIds=[
        'string',
    ],
    NextToken='string',
    MaxResults=123
)
Parameters:
  • ApplicationIds (list) –

    The configurationIds from the Application Discovery Service that uniquely identifies your applications.

    • (string) –

  • NextToken (string) – If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.

  • MaxResults (integer) – Maximum number of results to be returned per page.

Return type:

dict

Returns:

Response Syntax

{
    'ApplicationStateList': [
        {
            'ApplicationId': 'string',
            'ApplicationStatus': 'NOT_STARTED'|'IN_PROGRESS'|'COMPLETED',
            'LastUpdatedTime': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • ApplicationStateList (list) –

      A list of Applications that exist in Application Discovery Service.

      • (dict) –

        The state of an application discovered through Migration Hub import, the AWS Agentless Discovery Connector, or the AWS Application Discovery Agent.

        • ApplicationId (string) –

          The configurationId from the Application Discovery Service that uniquely identifies an application.

        • ApplicationStatus (string) –

          The current status of an application.

        • LastUpdatedTime (datetime) –

          The timestamp when the application status was last updated.

    • NextToken (string) –

      If a NextToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in NextToken.

Exceptions

  • MigrationHub.Client.exceptions.AccessDeniedException

  • MigrationHub.Client.exceptions.ThrottlingException

  • MigrationHub.Client.exceptions.InternalServerError

  • MigrationHub.Client.exceptions.ServiceUnavailableException

  • MigrationHub.Client.exceptions.InvalidInputException

  • MigrationHub.Client.exceptions.HomeRegionNotSetException