:doc:`IoTSiteWise <../../iotsitewise>` / Client / list_actions

************
list_actions
************



.. py:method:: IoTSiteWise.Client.list_actions(**kwargs)

  

  Retrieves a paginated list of actions for a specific target resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iotsitewise-2019-12-02/ListActions>`_  


  **Request Syntax**
  ::

    response = client.list_actions(
        targetResourceType='ASSET'|'COMPUTATION_MODEL',
        targetResourceId='string',
        nextToken='string',
        maxResults=123,
        resolveToResourceType='ASSET',
        resolveToResourceId='string'
    )
    
  :type targetResourceType: string
  :param targetResourceType: **[REQUIRED]** 

    The type of resource.

    

  
  :type targetResourceId: string
  :param targetResourceId: **[REQUIRED]** 

    The ID of the target resource.

    

  
  :type nextToken: string
  :param nextToken: 

    The token to be used for the next set of paginated results.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return for each paginated request.

    

  
  :type resolveToResourceType: string
  :param resolveToResourceType: 

    The type of the resolved resource.

    

  
  :type resolveToResourceId: string
  :param resolveToResourceId: 

    The ID of the resolved resource.

    

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

    
    ::

      {
          'actionSummaries': [
              {
                  'actionId': 'string',
                  'actionDefinitionId': 'string',
                  'targetResource': {
                      'assetId': 'string',
                      'computationModelId': 'string'
                  },
                  'resolveTo': {
                      'assetId': 'string'
                  }
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **actionSummaries** *(list) --* 

        A list that summarizes the actions associated with the specified asset.

        
        

        - *(dict) --* 

          Contains the summary of the actions, including information about where the action resolves to.

          
          

          - **actionId** *(string) --* 

            The ID of the action.

            
          

          - **actionDefinitionId** *(string) --* 

            The ID of the action definition.

            
          

          - **targetResource** *(dict) --* 

            The resource the action will be taken on.

            
            

            - **assetId** *(string) --* 

              The ID of the asset, in UUID format.

              
            

            - **computationModelId** *(string) --* 

              The ID of the computation model.

              
        
          

          - **resolveTo** *(dict) --* 

            The detailed resource this action resolves to.

            
            

            - **assetId** *(string) --* 

              The ID of the asset that the resource resolves to.

              
        
      
    
      

      - **nextToken** *(string) --* 

        The token for the next set of results, or null if there are no additional results.

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

  
  *   :py:class:`IoTSiteWise.Client.exceptions.InternalFailureException`

  
  *   :py:class:`IoTSiteWise.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`IoTSiteWise.Client.exceptions.ThrottlingException`

  