How to use the ContinuationToken

matsujirushi 636 Reputation points MVP
2020-11-26T09:42:37.083+00:00

Hi,

In Device Group List API, I got some of the results and ContinuationToken.
I want to get the rest of the results, but I don't know how to do it.

Could you tell me what to refer to?

https://learn.microsoft.com/en-us/rest/api/azure-sphere/devicegroup/list#microsoft.azure.sphere.publicapi.contracts.itemcollectionresponse_microsoft.azure.sphere.publicapi.contracts.v2.devicegroupv2_

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
168 questions
{count} votes

Accepted answer
  1. QuantumCache 20,271 Reputation points
    2020-12-11T19:02:23.51+00:00

    Hello @matsujirushi , Sorry for the inconvenience caused, we will update the REST API documentation soon.

    Please set the request header as Sphere-Continuation=<**yourContinuationtoken> in your REST API call**.

    Example:
    Step 1: The first call returns the result set and the continuation token.

    47464-image.png

    Step 2: Second call with header set Sphere-Continuation=<yourContinuationtoken>

    47465-image.png

    Step 3: Finally you will get continuationToken=null if the list is completed and no more data to be returned from the service.

    47399-image.png

    If there is any further update in this matter, then we will let you know. Thanks for your understanding.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.