CmdID / aws / aws servicediscovery
aws servicediscovery discover-instances
Discovers registered instances for a specified namespace and service. AWS CLI reference
7 options Its page in the AWS CLI reference
Options
--health-statusThe health status of the instances that you want to discover.--max-resultsThe maximum number of instances that you want Cloud Map to return in the response to a DiscoverInstances request.--namespace-nameThe HttpName name of the namespace.--optional-parametersOpportunistic filters to scope the results based on custom attributes.--owner-accountThe ID of the Amazon Web Services account that owns the namespace associated with the instance, as specified in the namespace ResourceOwner field.--query-parametersFilters to scope the results based on custom attributes for the instance (for example, {version=v1, az=1a}).--service-nameThe name of the service that you specified when you registered the instance.