AI-generated Key Takeaways
- 
          
This API method,
listOperations, retrieves the status of asynchronous API calls, referred to asOperation, based on specified criteria. - 
          
The
listOperationsmethod allows filtering byOperationType(e.g.,CLAIM_DEVICES,UNCLAIM_DEVICES) and/orOperationState(e.g.,IN_PROGRESS,COMPLETE). - 
          
The request,
ListOperationsRequest, supports pagination viapageSize(up to 100) andpageTokenparameters, allowing for retrieval of large datasets. - 
          
The response,
ListOperationsResponse, provides a list of matchingOperationobjects, the total count of operations, and anextPageTokenfor subsequent pages. - 
          
Potential errors during operation execution are indicated by a
CommonExceptionwith error codes likeINTERNAL_SERVER_ERROR,INVALID_PAGE_TOKEN, orNOT_IMPLEMENTED. 
An Operation
contains the status of an asynchronous API call. This method lists operations
matching a specified OperationType
and/or OperationState.
Method signature
public ListOperationsResponse listOperations(ListOperationsRequest request) throws CommonException;
ListOperationsRequest
| Property name | Value | Required | Description | 
|---|---|---|---|
operationType | 
enum(OperationType) | 
No | The operation type: CLAIM_DEVICES, UNCLAIM_DEVICES, UPDATE_CLAIMS. | 
state | 
enum(OperationState) | 
No | The operation state: IN_PROGRESS, COMPLETE, COMPLETE_WITH_ERRORS. | 
pageSize | 
int | 
No | The page size, up to 100. If greater than 100 or null, 100 is used. | 
pageToken | 
string | 
No | The page token. If empty, the first page is returned. | 
vendorParams | 
map | 
No | Extra fields, vendor specified key-value pair. | 
ListOperationsResponse
| Property name | Value | Description | 
|---|---|---|
operations | 
List of object(Operation) | 
The list of operations matching the request. | 
totalCount | 
int | 
The total count of devices matching the request. | 
nextPageToken | 
strong | 
The next page token. Empty for the last page. | 
vendorParams | 
map | 
Extra fields, vendor specified key-value pair. | 
Error behavior
If an error occurs, the library throws a CommonException containing one of the
following error codes:
| Error code | 
|---|
INTERNAL_SERVER_ERROR | 
INVALID_PAGE_TOKEN | 
NOT_IMPLEMENTED |