HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/servicediscovery/discover-instances.rst
**To discover registered instances**

The following ``discover-instances`` example discovers registered instances. ::

    aws servicediscovery discover-instances \
        --namespace-name example.com \
        --service-name myservice \
        --max-results 10 \
        --health-status ALL

Output::

    {
        "Instances": [
            {
                "InstanceId": "myservice-53",
                "NamespaceName": "example.com",
                "ServiceName": "myservice",
                "HealthStatus": "UNKNOWN",
                "Attributes": {
                    "AWS_INSTANCE_IPV4": "172.2.1.3",
                    "AWS_INSTANCE_PORT": "808"
                }
            }
        ]
    }