Data Sources API
Data sources — cloud accounts — are managed through the REST API so you can automate onboarding and lifecycle. All calls require thex-optscale-token header (see Authentication).
List data sources
Connect a data source
type, and a provider-specific config object. To connect Huawei Cloud, use the huawei_cnr type and provide the access key pair:
type and config shape — for example, an AWS account uses AWS credentials and report settings. The response returns the created account, including the identifier you use in subsequent calls.
Get a data source
Update a data source
config; the previous secret is replaced, not merged.
Remove a data source
List resources for a data source
A typical onboarding flow
POST .../cloud_accountsto connect the account.- Poll
GET /cloud_accounts/{id}until the first import reports success. GET .../cloud_resourcesto confirm discovery, then pull cost and recommendation data from the other endpoint groups.