:doc:`AppRunner <../../apprunner>` / Client / list_services

*************
list_services
*************



.. py:method:: AppRunner.Client.list_services(**kwargs)

  

  Returns a list of running App Runner services in your Amazon Web Services account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/apprunner-2020-05-15/ListServices>`_  


  **Request Syntax**
  ::

    response = client.list_services(
        NextToken='string',
        MaxResults=123
    )
    
  :type NextToken: string
  :param NextToken: 

    A token from a previous result page. Used for a paginated request. The request retrieves the next result page. All other parameter values must be identical to the ones specified in the initial request.

     

    If you don't specify ``NextToken``, the request retrieves the first result page.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to include in each response (result page). It's used for a paginated request.

     

    If you don't specify ``MaxResults``, the request retrieves all available results in a single response.

    

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

    
    ::

      {
          'ServiceSummaryList': [
              {
                  'ServiceName': 'string',
                  'ServiceId': 'string',
                  'ServiceArn': 'string',
                  'ServiceUrl': 'string',
                  'CreatedAt': datetime(2015, 1, 1),
                  'UpdatedAt': datetime(2015, 1, 1),
                  'Status': 'CREATE_FAILED'|'RUNNING'|'DELETED'|'DELETE_FAILED'|'PAUSED'|'OPERATION_IN_PROGRESS'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ServiceSummaryList** *(list) --* 

        A list of service summary information records. In a paginated request, the request returns up to ``MaxResults`` records for each call.

        
        

        - *(dict) --* 

          Provides summary information for an App Runner service.

           

          This type contains limited information about a service. It doesn't include configuration details. It's returned by the `ListServices <https://docs.aws.amazon.com/apprunner/latest/api/API_ListServices.html>`__ action. Complete service information is returned by the `CreateService <https://docs.aws.amazon.com/apprunner/latest/api/API_CreateService.html>`__, `DescribeService <https://docs.aws.amazon.com/apprunner/latest/api/API_DescribeService.html>`__, and `DeleteService <https://docs.aws.amazon.com/apprunner/latest/api/API_DeleteService.html>`__ actions using the `Service <https://docs.aws.amazon.com/apprunner/latest/api/API_Service.html>`__ type.

          
          

          - **ServiceName** *(string) --* 

            The customer-provided service name.

            
          

          - **ServiceId** *(string) --* 

            An ID that App Runner generated for this service. It's unique within the Amazon Web Services Region.

            
          

          - **ServiceArn** *(string) --* 

            The Amazon Resource Name (ARN) of this service.

            
          

          - **ServiceUrl** *(string) --* 

            A subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.

            
          

          - **CreatedAt** *(datetime) --* 

            The time when the App Runner service was created. It's in the Unix time stamp format.

            
          

          - **UpdatedAt** *(datetime) --* 

            The time when the App Runner service was last updated. It's in theUnix time stamp format.

            
          

          - **Status** *(string) --* 

            The current state of the App Runner service. These particular values mean the following.

             

            
            * ``CREATE_FAILED`` – The service failed to create. The failed service isn't usable, and still counts towards your service quota. To troubleshoot this failure, read the failure events and logs, change any parameters that need to be fixed, and rebuild your service using ``UpdateService``.
             
            * ``DELETE_FAILED`` – The service failed to delete and can't be successfully recovered. Retry the service deletion call to ensure that all related resources are removed.
            

            
      
    
      

      - **NextToken** *(string) --* 

        The token that you can pass in a subsequent request to get the next result page. It's returned in a paginated request.

        
  
  **Exceptions**
  
  *   :py:class:`AppRunner.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`AppRunner.Client.exceptions.InternalServiceErrorException`

  