İçeriğe geç
Tres Teknoloji
Developers

Manage your infrastructure as code

Automate Tres Cloud with the REST API, the official Terraform provider or MCP. Servers, networking, IPs, backups — all programmatic, with a single tres_ key.

Provider live · registry.terraform.io/providers/tresteknoloji/tres

main.tf
terraform {
  required_providers {
    tres = { source = "tresteknoloji/tres" }
  }
}

resource "tres_server" "web" {
  name     = "web-01"
  location = "tr-ist-1"
  image    = "ubuntu-24.04"
  cpu      = 2
  ram      = 4
  ipv4     = true
}
$ terraform apply → web-01 ready · 185.24.•••.•••

Three ways, one infrastructure

The same account, the same tres_ key. Pick the one that fits your workflow.

REST API

A predictable REST API with Bearer tokens. Create a server, assign an IP, take a snapshot, write a firewall rule — all from one consistent endpoint.

JSON · Bearer tres_… · rate-limit

API reference (OpenAPI)

Terraform

The official tresteknoloji/tres provider. Version your infrastructure in HCL, review it as a team, and provision it with terraform apply.

tres_server · tres_firewall · tres_network

Terraform Registry

MCP

Add Tres to your AI as a connector; spin up servers, take backups and build networks in natural language.

Claude · ChatGPT · Gemini · Copilot

Explore MCP

Your first call in minutes

In the panel, from Account & access → API generate a tres_ key; the rest is below.

cURL REST API
# make your key an environment variable
export TRES_TOKEN="tres_•••••••••"

# list your servers
curl https://api.tresteknoloji.com/v1/servers \
  -H "Authorization: Bearer $TRES_TOKEN"

# create a new server
curl -X POST https://api.tresteknoloji.com/v1/servers \
  -H "Authorization: Bearer $TRES_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"web-01","location":"tr-ist-1","image":"ubuntu-24.04","cpu":2,"ram":4}'
Terraform main.tf
terraform {
  required_providers {
    tres = { source = "tresteknoloji/tres" }
  }
}

# token is read from the TRES_TOKEN environment variable
provider "tres" {}

resource "tres_server" "web" {
  name     = "web-01"
  location = "tr-ist-1"
  image    = "ubuntu-24.04"
  cpu      = 2
  ram      = 4
}

For all endpoints, fields and schemas, see the live API reference.

What you can manage as code

Everything you do in the panel is available in the API and Terraform too.

Servers
tres_server
Kubernetes
tres_kubernetes
SSH keys
tres_ssh_key
Floating IP
tres_floating_ip
Firewall
tres_firewall
Snapshots
tres_snapshot
Private network (VPC)
tres_network
Object Storage
tres_bucket
Database
tres_database
Block Storage
tres_volume

Generate a key, provision your first server as code

Open your account, grab your tres_ key from the panel and start with the API, Terraform or MCP.