List cloud connections
Lists the workspace's cloud connections.
GET/v1/workspaces/{regionId}/cloud-connections
Returns
200 OK with the object shown in the response.
More details
Lists the workspace's cloud connections, including setups still in progress (status pending). Never returns secrets or the identifiers the setup used (role ARN, external ID, service account, OCIDs, tenant or app IDs).
Response fields
dataSourcesArray<"invoices" | "current_cost">What Pleaxy may read: finalized invoices and/or month-to-date cost. Absent means both.
lastSyncStatus"ok" | "error" | "throttled" | "never"How the last billing sync went. lastSyncErrorCode says why one failed: throttled, access_revoked, platform_config, data_not_enabled or unknown.
Errors
- 401 Unauthorized - No credential was presented, or the Bearer token / X-Api-Key value is missing, invalid, expired, or revoked.
- 403 Forbidden - The caller's Bearer token or API key doesn't grant access to this workspace (regionId), or lacks the required role.
curl "$PLEAXY_API_BASE_URL/v1/workspaces/{regionId}/cloud-connections" \
-H "X-Api-Key: $PLEAXY_API_KEY"[
{
"id": "string",
"provider": "aws" | "gcp" | "azure" | "oci",
"accountLabel": "string",
"detail": "string",
"spend": number,
"status": "connected" | "pending" | "error",
"connectedAt": "string",
"awsAccountId": "string",
"dataSources": [ "invoices" | "current_cost" ],
"gcp": { "billingAccountId": "string", "providerId": "string" },
"oci": { "homeRegion": "string", "keyFingerprint": "string" },
"azure": { "scopeDisplayName": "string", "agreementType": "string" },
"lastSyncedAt": "string",
"lastSyncStatus": "ok" | "error" | "throttled" | "never",
"lastSyncError": "string",
"lastSyncErrorCode": "throttled" | "access_revoked" | "platform_config" | "data_not_enabled" | "unknown"
}
]