Skip to main content
GET
/
terraform
/
{terraformId}
/
terraformResources
Get terraform resources from latest deployment
curl --request GET \
  --url https://api.qovery.com/terraform/{terraformId}/terraformResources \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "resource_type": "aws_instance",
      "name": "web_server",
      "address": "aws_instance.web_server",
      "provider": "aws",
      "mode": "managed",
      "attributes": {
        "instance_id": "i-1234567890abcdef0",
        "instance_type": "t2.micro",
        "public_ip": "10.0.0.1",
        "private_ip": "172.31.0.1"
      },
      "extracted_at": "2023-01-15T10:30:00Z"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT tokens should be used with OIDC account (human to machine). JWT tokens used by the Qovery console to communicate with the API have a TTL. Curl Example ' curl https://console.qovery.com/organization -H "Authorization: Bearer $qovery_token" '

Path Parameters

terraformId
string<uuid>
required

Terraform ID

Response

List of terraform resources from latest deployment

List of Terraform resources from the latest deployment

results
Terraform Resource Response · object[]
required

Array of Terraform resources