# Google Cloud Logging API . projects . logServices . indexes

## Instance Methods

Lists log service indexes associated with a log service.

Retrieves the next page of results.

### Method Details

`list(projectsId, logServicesId, log=None, pageSize=None, depth=None, indexPrefix=None, pageToken=None, x__xgafv=None)`

    Lists log service indexes associated with a log service.

    Args:
      projectsId: string, Part of `serviceName`. A log service resource of the form `/projects/*/logServices/*`. The service indexes of the log service are returned. Example: `"/projects/myProj/logServices/appengine.googleapis.com"`. (required)
      logServicesId: string, Part of `serviceName`. See documentation of `projectsId`. (required)
      log: string, A log resource like `/projects/project_id/logs/log_name`, identifying the log for which to list service indexes.
      pageSize: integer, The maximum number of log service index resources to return in one operation.
      depth: integer, A limit to the number of levels of the index hierarchy that are expanded. If `depth` is 0, it defaults to the level specified by the prefix field (the number of slash separators). The default empty prefix implies a `depth` of 1. It is an error for `depth` to be any non-zero value less than the number of components in `indexPrefix`.
      indexPrefix: string, Restricts the indexes returned to be those with a specified prefix. The prefix has the form `"/label_value/label_value/..."`, in order corresponding to the [`LogService indexKeys`][google.logging.v1.LogService.index_keys]. Non-empty prefixes must begin with `/` . Example prefixes: + `"/myModule/"` retrieves App Engine versions associated with `myModule`. The trailing slash terminates the value. + `"/myModule"` retrieves App Engine modules with names beginning with `myModule`. + `""` retrieves all indexes.
      pageToken: string, An opaque token, returned as `nextPageToken` by a prior `ListLogServiceIndexes` operation. If `pageToken` is supplied, then the other fields of this request are ignored, and instead the previous `ListLogServiceIndexes` operation is continued.
      x__xgafv: string, V1 error format.

    Returns:
      An object of the form:

        { # Result returned from ListLogServiceIndexesRequest.
        "nextPageToken": "A String", # If there are more results, then `nextPageToken` is returned in the response. To get the next batch of indexes, use the value of `nextPageToken` as `pageToken` in the next call of `ListLogServiceIndexess`. If `nextPageToken` is empty, then there are no more results.
        "serviceIndexPrefixes": [ # A list of log service index prefixes.
          "A String",
        ],
      }

`list_next(previous_request, previous_response)`

    Retrieves the next page of results.

    Args:
      previous_request: The request for the previous page. (required)
      previous_response: The response from the request for the previous page. (required)

    Returns:
      A request object that you can call 'execute()' on to request the next
      page. Returns None if there are no more items in the collection.