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.

Returns group information for the specified directory.

This operation supports pagination with the use of the NextToken request and response parameters. If more results are available, the ListGroups.NextToken member contains a token that you pass in the next call to ListGroups. This retrieves the next set of items.

You can also specify a maximum number of return results with the MaxResults parameter.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to ListGroupsAsync.

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

Syntax

C#
public virtual ListGroupsResponse ListGroups(
         ListGroupsRequest request
)

Parameters

request
Type: Amazon.DirectoryServiceData.Model.ListGroupsRequest

Container for the necessary parameters to execute the ListGroups service method.

Return Value


The response from the ListGroups service method, as returned by DirectoryServiceData.

Exceptions

ExceptionCondition
AccessDeniedException You don't have permission to perform the request or access the directory. It can also occur when the DirectoryId doesn't exist or the user, member, or group might be outside of your organizational unit (OU). Make sure that you have the authentication and authorization to perform the action. Review the directory information in the request, and make sure that the object isn't outside of your OU.
DirectoryUnavailableException The request could not be completed due to a problem in the configuration or current state of the specified directory.
InternalServerException The operation didn't succeed because an internal error occurred. Try again later.
ThrottlingException The limit on the number of requests per second has been exceeded.
ValidationException The request isn't valid. Review the details in the error message to update the invalid parameters or values in your request.

Version Information

.NET Framework:
Supported in: 4.5 and newer, 3.5

See Also