ServiceDiscovery / Client / discover_instances_revision

discover_instances_revision

ServiceDiscovery.Client.discover_instances_revision(**kwargs)

Discovers the increasing revision associated with an instance.

See also: AWS API Documentation

Request Syntax

response = client.discover_instances_revision(
    NamespaceName='string',
    ServiceName='string',
    OwnerAccount='string'
)
Parameters:
  • NamespaceName (string) –

    [REQUIRED]

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

  • ServiceName (string) –

    [REQUIRED]

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

  • OwnerAccount (string) – 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 in the Cloud Map Developer Guide.

Return type:

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