:doc:`Outposts <../../outposts>` / Client / list_asset_instances

********************
list_asset_instances
********************



.. py:method:: Outposts.Client.list_asset_instances(**kwargs)

  

  A list of Amazon EC2 instances, belonging to all accounts, running on the specified Outpost. Does not include Amazon EBS or Amazon S3 instances.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListAssetInstances>`_  


  **Request Syntax**
  ::

    response = client.list_asset_instances(
        OutpostIdentifier='string',
        AssetIdFilter=[
            'string',
        ],
        InstanceTypeFilter=[
            'string',
        ],
        AccountIdFilter=[
            'string',
        ],
        AwsServiceFilter=[
            'AWS'|'EC2'|'ELASTICACHE'|'ELB'|'RDS'|'ROUTE53',
        ],
        MaxResults=123,
        NextToken='string'
    )
    
  :type OutpostIdentifier: string
  :param OutpostIdentifier: **[REQUIRED]** 

    The ID of the Outpost.

    

  
  :type AssetIdFilter: list
  :param AssetIdFilter: 

    Filters the results by asset ID.

    

  
    - *(string) --* 

    

  :type InstanceTypeFilter: list
  :param InstanceTypeFilter: 

    Filters the results by instance ID.

    

  
    - *(string) --* 

    

  :type AccountIdFilter: list
  :param AccountIdFilter: 

    Filters the results by account ID.

    

  
    - *(string) --* 

      The ID of the Amazon Web Services account.

      

    

  :type AwsServiceFilter: list
  :param AwsServiceFilter: 

    Filters the results by Amazon Web Services service.

    

  
    - *(string) --* 

    

  :type MaxResults: integer
  :param MaxResults: 

    The maximum page size.

    

  
  :type NextToken: string
  :param NextToken: 

    The pagination token.

    

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

    
    ::

      {
          'AssetInstances': [
              {
                  'InstanceId': 'string',
                  'InstanceType': 'string',
                  'AssetId': 'string',
                  'AccountId': 'string',
                  'AwsServiceName': 'AWS'|'EC2'|'ELASTICACHE'|'ELB'|'RDS'|'ROUTE53'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AssetInstances** *(list) --* 

        List of instances owned by all accounts on the Outpost. Does not include Amazon EBS or Amazon S3 instances.

        
        

        - *(dict) --* 

          An Amazon EC2 instance.

          
          

          - **InstanceId** *(string) --* 

            The ID of the instance.

            
          

          - **InstanceType** *(string) --* 

            The type of instance.

            
          

          - **AssetId** *(string) --* 

            The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.

            
          

          - **AccountId** *(string) --* 

            The ID of the Amazon Web Services account.

            
          

          - **AwsServiceName** *(string) --* 

            The Amazon Web Services service name of the instance.

            
      
    
      

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

        The pagination token.

        
  
  **Exceptions**
  
  *   :py:class:`Outposts.Client.exceptions.ValidationException`

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

  
  *   :py:class:`Outposts.Client.exceptions.NotFoundException`

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

  