scrollProfiles

// Using callbacks (NodeJS or Web Browser)
kuzzle
  .security
  .scrollProfiles(scrollId, options, function(error, result) {
    // called once the scroll action has been completed
  });
kuzzle
  .security
  .scrollProfiles(scrollId, options, new ResponseListener<SecurityDocumentList>() {
    @Override
    public void onSuccess(SecurityDocumentList response) {
      // called once the scroll action has been completed
    }

    @Override
    public void onError(JSONObject error) {
      // Handle error
    }
  });
<?php

use \Kuzzle\Kuzzle;

$scrollId = 'myScrollId';
$options = [];

$kuzzle = new Kuzzle('localhost');

try {
  $kuzzle->security()->scrollProfiles($profileId, $options);
}
catch (ErrorException $e) {
  // Handle error
}

Scrolls on stored profiles using the provided scroll ID.


scrollProfiles(scrollId, [options], callback)

ArgumentsTypeDescription
scrollIdstringScroll identifier retrieved from a search query
optionsJSON ObjectOptional parameters
callbackfunctionCallback handling the response

Options

OptionTypeDescriptionDefault
queuablebooleanMark this request as (not) queuabletrue

Callback response

Resolves the list of retrieved profiles according to the scroll parameters (offset, limit etc.).