Skip to content
This repository was archived by the owner on Apr 10, 2021. It is now read-only.

Two API calls required when you have over 100 servers #2

Open
a13x212 opened this issue Sep 25, 2013 · 1 comment
Open

Two API calls required when you have over 100 servers #2

a13x212 opened this issue Sep 25, 2013 · 1 comment

Comments

@a13x212
Copy link

a13x212 commented Sep 25, 2013

If you have over 100 servers and use the overview api call, server data is missing. There is a 100 limit per API request and requires a second API call to receive all the data.

Attached is the out from raxmon cli and how rackspace handles it.

JSON output from first API call

"metadata": {
    "count": 100,
    "limit": 100,
    "marker": null,
    "next_marker": "ynlpydZadB",
    "next_href": "https://monitoring.api.rackspacecloud.com/v1.0/7777777/views/overview?marker=ynlpydZadB"
}

}
0

-------- end 39228120:39237896 response ----------

Second API call to get the remaining data

-------- begin 44798320 request ----------

curl -i -X GET -H 'Host: monitoring.api.rackspacecloud.com' -H 'X-LC-Request-ID: 55791225' -H 'Accept-Encoding: gzip,deflate' -H 'X-Auth-Token: 28911331fg3241d9852348cc555f09fd' -H 'Accept: application/json' -H 'User-Agent: libcloud/0.13.0 (Rackspace Monitoring) ' --compress 'https://monitoring.api.rackspacecloud.com:443/v1.0/7777777/views/overview?marker=ynlpydZadB'

@a13x212 a13x212 closed this as completed Sep 25, 2013
@a13x212 a13x212 reopened this Sep 25, 2013
@Snider
Copy link
Owner

Snider commented Oct 2, 2013

Hiya,

Sorry i just noticed this, should probably update my github email :)

will try and make the needed change as soon as possible, in the mean time the change that needs to happen to that function can be seen here: https://github.com/snider/php-cloudDNS/blob/master/rackDNS.php#L361

thanks for reporting the issue

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants