Amazon.WorkSpaces.AmazonWorkSpacesClient.DescribeWorkspacesAsync C# (CSharp) Method

DescribeWorkspacesAsync() public method

Obtains information about the specified WorkSpaces.

Only one of the filter parameters, such as BundleId, DirectoryId, or WorkspaceIds, can be specified at a time.

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

/// One or more parameter values are not valid. /// /// The specified resource is not available. ///
public DescribeWorkspacesAsync ( System cancellationToken = default(CancellationToken) ) : Task
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<DescribeWorkspacesResponse> DescribeWorkspacesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var request = new DescribeWorkspacesRequest();
            return DescribeWorkspacesAsync(request, cancellationToken);
        }

Same methods

AmazonWorkSpacesClient::DescribeWorkspacesAsync ( DescribeWorkspacesRequest request, System cancellationToken = default(CancellationToken) ) : Task