Skip to content

List Operations

servicediscovery_list_operations R Documentation

Lists operations that match the criteria that you specify

Description

Lists operations that match the criteria that you specify.

Usage

servicediscovery_list_operations(NextToken, MaxResults, Filters)

Arguments

NextToken

For the first list_operations request, omit this value.

If the response contains NextToken, submit another list_operations 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 operations and then filters them based on the specified criteria. It's possible that no operations in the first MaxResults operations matched the specified criteria but that subsequent groups of MaxResults operations do contain operations that match the criteria.

MaxResults

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

Filters

A complex type that contains specifications for the operations that you want to list, for example, operations that you started between a specified start date and end date.

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

Value

A list with the following syntax:

list(
  Operations = list(
    list(
      Id = "string",
      Status = "SUBMITTED"|"PENDING"|"SUCCESS"|"FAIL"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_operations(
  NextToken = "string",
  MaxResults = 123,
  Filters = list(
    list(
      Name = "NAMESPACE_ID"|"SERVICE_ID"|"STATUS"|"TYPE"|"UPDATE_DATE",
      Values = list(
        "string"
      ),
      Condition = "EQ"|"IN"|"BETWEEN"|"BEGINS_WITH"
    )
  )
)

Examples

## Not run: 
# This example gets the operations that have a STATUS of either PENDING or
# SUCCESS.
svc$list_operations(
  Filters = list(
    list(
      Condition = "IN",
      Name = "STATUS",
      Values = list(
        "PENDING",
        "SUCCESS"
      )
    )
  )
)

## End(Not run)