:doc:`DataZone <../../datazone>` / Client / list_asset_revisions

********************
list_asset_revisions
********************



.. py:method:: DataZone.Client.list_asset_revisions(**kwargs)

  

  Lists the revisions for the asset.

   

  Prerequisites:

   

  
  * The asset must exist in the domain.
   
  * There must be at least one revision of the asset (which happens automatically after creation).
   
  * The domain must be valid and active.
   
  * User must have permissions on the asset and domain.
  

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/ListAssetRevisions>`_  


  **Request Syntax**
  ::

    response = client.list_asset_revisions(
        domainIdentifier='string',
        identifier='string',
        nextToken='string',
        maxResults=123
    )
    
  :type domainIdentifier: string
  :param domainIdentifier: **[REQUIRED]** 

    The identifier of the domain.

    

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

    The identifier of the asset.

    

  
  :type nextToken: string
  :param nextToken: 

    When the number of revisions is greater than the default value for the ``MaxResults`` parameter, or if you explicitly specify a value for ``MaxResults`` that is less than the number of revisions, the response includes a pagination token named ``NextToken``. You can specify this ``NextToken`` value in a subsequent call to ``ListAssetRevisions`` to list the next set of revisions.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of revisions to return in a single call to ``ListAssetRevisions``. When the number of revisions to be listed is greater than the value of ``MaxResults``, the response contains a ``NextToken`` value that you can use in a subsequent call to ``ListAssetRevisions`` to list the next set of revisions.

    

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

    
    ::

      {
          'items': [
              {
                  'domainId': 'string',
                  'id': 'string',
                  'revision': 'string',
                  'createdBy': 'string',
                  'createdAt': datetime(2015, 1, 1)
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **items** *(list) --* 

        The results of the ``ListAssetRevisions`` action.

        
        

        - *(dict) --* 

          The revision of an inventory asset.

          
          

          - **domainId** *(string) --* 

            The Amazon DataZone user who created the inventory asset.

            
          

          - **id** *(string) --* 

            The identifier of the inventory asset revision.

            
          

          - **revision** *(string) --* 

            The revision details of the inventory asset.

            
          

          - **createdBy** *(string) --* 

            The Amazon DataZone user who created the asset revision.

            
          

          - **createdAt** *(datetime) --* 

            The timestamp of when an inventory asset revison was created.

            
      
    
      

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

        When the number of revisions is greater than the default value for the ``MaxResults`` parameter, or if you explicitly specify a value for ``MaxResults`` that is less than the number of revisions, the response includes a pagination token named ``NextToken``. You can specify this ``NextToken`` value in a subsequent call to ``ListAssetRevisions`` to list the next set of revisions.

        
  
  **Exceptions**
  
  *   :py:class:`DataZone.Client.exceptions.InternalServerException`

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

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

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

  
  *   :py:class:`DataZone.Client.exceptions.ValidationException`

  
  *   :py:class:`DataZone.Client.exceptions.UnauthorizedException`

  