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/list-instances.rst
**To list service instances**

The following ``list-instances`` example lists service instances. ::

    aws servicediscovery list-instances \
        --service-id srv-qzpwvt2tfqcegapy

Output::

    {
        "Instances": [
            {
                "Id": "i-06bdabbae60f65a4e",
                "Attributes": {
                    "AWS_INSTANCE_IPV4": "172.2.1.3",
                    "AWS_INSTANCE_PORT": "808"
                }
            }
        ]
    }

For more information, see `Viewing a list of service instances <https://docs.aws.amazon.com/cloud-map/latest/dg/listing-instances.html>`__ in the *AWS Cloud Map Developer Guide*.