The parameter values are not documented, so I checked via Inspect/Network what’s generated when changing settings on the Monitor page in the admin portal. Oddly, the values sent in the request (target=31&duration=3 etc) don’t work via the API playground (specifically it complains over duration), despite the URL and arguments being identical with real use by Cloudways. The only things different:
- The portal adds “storage=false”, that’s not possible to set in the playground.
- The portal uses platform.cloudways.com instead of api.cloudways.com, but the rest of the URL is the same. Maybe parameter values are different.
Has anyone used this request successfully?
API authentication works, and I can retrieve lists etc, so I’m over that bit. I’m using the PHP SDK by Ahmed Khan.