In-platform accounts list shows a different total number of accounts to what is returned from the CloudHealth REST API.
There are considerations when listing accounts via the API. Pages, and page size is important to note.
API results will be paged. The default page size (number of results per page), is 30. This can be increased to a maximum of 100 per page.
If the total number of accounts is over 100, be sure to note this when using the API to ensure you collect ALL accounts.
For example listing 130 accounts.
To list the first 100 accounts (0-99)
https://chapi.cloudhealthtech.com/v1/aws_accounts?per_page=100
And to have the remaining accounts:
https://chapi.cloudhealthtech.com/v1/aws_accounts?per_page=100&page=2
For more information regarding pages and per page specifically in relation to the Accounts REST endpoint, please see the documentation below.
https://apidocs.cloudhealthtech.com/#account_aws-accounts-in-cloudhealth