Skip to content

Azure Billing API Pagination Issue #20

@cramasta

Description

@cramasta

The Azure billing API returns a max of 1000 events per requested timeframe. If there are more than 1000 events the response will also include a skipToken value that contains that has the url for the next page of results to request. The issue Im seeing is that I am only ever able to pull back 1000 events for a single timeframe.

The code for checking for the pagination skipToken url is

if '@odata.nextLink' in response_json:
nextLink = response_json['@odata.nextLink']

However from my testing with the API I am seeing that the field being returned is called nextLink, not @odata.nextLink. So even though there is a URL with the next page of results to request the code above is skipping over it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions