AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the ListServices operation. Lists summary information for all the services that are associated with one or more namespaces.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.ServiceDiscovery.AmazonServiceDiscoveryRequest
      Amazon.ServiceDiscovery.Model.ListServicesRequest

Namespace: Amazon.ServiceDiscovery.Model
Assembly: AWSSDK.ServiceDiscovery.dll
Version: 3.x.y.z

Syntax

C#
public class ListServicesRequest : AmazonServiceDiscoveryRequest
         IAmazonWebServiceRequest

The ListServicesRequest type exposes the following members

Constructors

NameDescription
Public Method ListServicesRequest()

Properties

NameTypeDescription
Public Property Filters System.Collections.Generic.List<Amazon.ServiceDiscovery.Model.ServiceFilter>

Gets and sets the property Filters.

A complex type that contains specifications for the namespaces that you want to list services for.

If you specify more than one filter, an operation must match all filters to be returned by ListServices.

Public Property MaxResults System.Int32

Gets and sets the property MaxResults.

The maximum number of services that you want Cloud Map to return in the response to a ListServices request. If you don't specify a value for MaxResults, Cloud Map returns up to 100 services.

Public Property NextToken System.String

Gets and sets the property NextToken.

For the first ListServices request, omit this value.

If the response contains NextToken, submit another ListServices request to get the next group of results. Specify the value of NextToken from the previous response in the next request.

Cloud Map gets MaxResults services and then filters them based on the specified criteria. It's possible that no services in the first MaxResults services matched the specified criteria but that subsequent groups of MaxResults services do contain services that match the criteria.

Examples

Example: List services

Example: List services


var client = new AmazonServiceDiscoveryClient();
var response = client.ListServices(new ListServicesRequest 
{
});

List<ServiceSummary> services = response.Services;

            

Version Information

.NET Core App:
Supported in: 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5, 4.0, 3.5