Skip to main content
The providers endpoints let you connect cloud accounts to InfraAudit, trigger resource syncs, and remove accounts. Each cloud provider type has its own connect endpoint with provider-specific request fields. Base path: /api/v1/providers

POST /providers/aws/connect — connect AWS

Connect an AWS account using an IAM access key pair.

Request body

name
string
required
A human-readable label for this provider, for example Production AWS.
accessKeyId
string
required
Your AWS IAM access key ID.
secretAccessKey
string
required
Your AWS IAM secret access key.
region
string
required
The primary AWS region, for example us-east-1.

Response 201


POST /providers/gcp/connect — connect GCP

Request body

name
string
required
A human-readable label for this provider.
serviceAccountJson
string
required
The GCP service account JSON key file contents as a string.
projectId
string
required
Your GCP project ID.
billingDataset
string
BigQuery dataset name for billing export data.

POST /providers/azure/connect — connect Azure

Request body

name
string
required
A human-readable label for this provider.
clientId
string
required
Azure service principal client ID.
clientSecret
string
required
Azure service principal client secret.
tenantId
string
required
Azure Active Directory tenant ID.
subscriptionId
string
required
Azure subscription ID.

POST /providers/kubernetes/connect — connect Kubernetes

Request body

name
string
required
A human-readable label for this cluster.
kubeconfig
string
required
The kubeconfig YAML contents as a string.

GET /providers — list providers

Returns all connected cloud providers.

Response

status
string
Current sync status: syncing, synced, or error.

GET /providers/ — get provider

Returns details for a single provider. Credentials are never returned.

POST /providers//sync — trigger manual sync

Triggers an immediate resource sync. Returns 202 Accepted with a job ID.

Response 202


DELETE /providers/ — disconnect provider

Removes stored credentials and stops future syncs. Historical data is retained.
Returns 204 No Content.
Deleting a provider removes its credentials immediately and stops all scheduled syncs. Resource and cost history are preserved for reporting purposes.