Is it possible to retrieve the calculated capacity for a specific skill group using the Genesys Cloud CLI or a direct API call?
We are automating capacity planning reports using Terraform and GitHub Actions. The goal is to validate that the genesyscloud_routing_emaildomain and associated routing configurations match the expected capacity metrics before promotion to production.
Current approach:
- Fetch routing strategy via
genesyscloud_routing_strategyresource. - Attempt to correlate with
genesyscloud_routing_skillgroup.
The issue is that standard provider resources do not expose the real-time calculated capacity or the effective utilization percentage derived from the predictive routing engine. The dashboard shows these values, but the API documentation for /api/v2/analytics/report/definitions requires complex aggregation queries that are difficult to parameterize dynamically in HCL.
Running provider v1.52. Environment: APAC Sydney.
Error when attempting to query raw capacity metrics:
“404 Not Found: The requested resource /api/v2/analytics/query/metrics/routing/skillgroup/capacity does not exist or is not supported for this tenant.”
Need a method to export these calculated values for audit purposes without manual dashboard scraping. Any CLI flags or hidden endpoints known for this?