:doc:`ServiceDiscovery <../../servicediscovery>` / Client / discover_instances_revision

***************************
discover_instances_revision
***************************



.. py:method:: ServiceDiscovery.Client.discover_instances_revision(**kwargs)

  

  Discovers the increasing revision associated with an instance.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/servicediscovery-2017-03-14/DiscoverInstancesRevision>`_  


  **Request Syntax**
  ::

    response = client.discover_instances_revision(
        NamespaceName='string',
        ServiceName='string',
        OwnerAccount='string'
    )
    
  :type NamespaceName: string
  :param NamespaceName: **[REQUIRED]** 

    The ``HttpName`` name of the namespace. The ``HttpName`` is found in the ``HttpProperties`` member of the ``Properties`` member of the namespace.

    

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

    The name of the service that you specified when you registered the instance.

    

  
  :type OwnerAccount: string
  :param OwnerAccount: 

    The ID of the Amazon Web Services account that owns the namespace associated with the instance, as specified in the namespace ``ResourceOwner`` field. For instances associated with namespaces that are shared with your account, you must specify an ``OwnerAccount``. For more information about shared namespaces, see `Cross-account Cloud Map namespace sharing <https://docs.aws.amazon.com/cloud-map/latest/dg/sharing-namespaces.html>`__ in the *Cloud Map Developer Guide*.

    

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

    
    ::

      {
          'InstancesRevision': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **InstancesRevision** *(integer) --* 

        The increasing revision associated to the response Instances list. If a new instance is registered or deregistered, the ``InstancesRevision`` updates. The health status updates don't update ``InstancesRevision``.

        
  
  **Exceptions**
  
  *   :py:class:`ServiceDiscovery.Client.exceptions.ServiceNotFound`

  
  *   :py:class:`ServiceDiscovery.Client.exceptions.NamespaceNotFound`

  
  *   :py:class:`ServiceDiscovery.Client.exceptions.InvalidInput`

  
  *   :py:class:`ServiceDiscovery.Client.exceptions.RequestLimitExceeded`

  