# Cloudflare - DNS e Proxy

**Arquivo:** `~/.ssh/cloudflare-token`

| Propriedade | Valor |
|-------------|-------|
| Email | yamamoto@rede5.com.br |
| API Key | Ver arquivo |
| Usuario | Tiago Yamamoto |

## Status

✅ API funcionando

## Contas/Organizacoes (29)

| Organizacao | Status |
|-------------|--------|
| associato.app | member |
| associato.com.br | member |
| bhcompras | member |
| Brunopersonal@rede5.com.br | member |
| cgy2telecom | member |
| compreagorabh | member |
| delta sun power | member |
| diariasimples | member |
| gohorsejobs | member |
| inforseg | member |
| maxsac | member |
| moobz | member |
| photum.app.br | member |
| q1agenda | member |
| q1fit.pro | member |
| q1food | Super Administrator |
| q1site | member |
| q1store.me | member |
| rafto | member |
| rede5.com.br | member |
| rifadojaum | member |
| rodiziosdaqui | invited |
| saveinmed | member |
| sep | member |
| stormtroopers | member |
| todaicars | member |
| todaijobs | member |
| Vilanova@rede5.com.br | member |
| virtualfashion | member |

## Zonas DNS (44 dominios)

### Projetos Ativos

| Dominio | Uso |
|---------|-----|
| gohorsejobs.com | GoHorse Jobs |
| rede5.com.br | Rede5 principal |
| saveinmed.com.br | Saveinmed |
| q1agenda.com.br | Q1 Agenda |
| q1food.com | Q1 Food |
| q1site.com.br | Q1 Site |
| q1store.me | Q1 Store |
| q1fit.pro | Q1 Fit |
| photum.app.br | Photum |
| sextando.com.br | Sextando |
| sepdistribuidora.com.br | SEP Distribuidora |
| deltasunpower.com | Delta Sun Power |

### Outros Dominios

| Dominio |
|---------|
| agvn24h.com.br |
| almeidacamposadvocacia.com.br |
| associato.com.br |
| bhcompras.com.br |
| brunoteodoropersonal.com.br |
| cgy2telecom.com.br |
| compreagorabh.com.br |
| deltasunpower.com.br |
| diariasimples.com.br |
| maxsac.com.br |
| moobz.com.br |
| rafto.com.br |
| rifadojaum |
| thaiswhitetrainers.com |
| vilaitaimskatepark.com.br |
| virtualfashion.com.br |

## Uso da API

```bash
CF_EMAIL="yamamoto@rede5.com.br"
CF_KEY=$(cat ~/.ssh/cloudflare-token)

# Usuario atual
curl -s -H "X-Auth-Email: $CF_EMAIL" -H "X-Auth-Key: $CF_KEY" \
  "https://api.cloudflare.com/client/v4/user"

# Listar zonas
curl -s -H "X-Auth-Email: $CF_EMAIL" -H "X-Auth-Key: $CF_KEY" \
  "https://api.cloudflare.com/client/v4/zones"

# Listar DNS records
curl -s -H "X-Auth-Email: $CF_EMAIL" -H "X-Auth-Key: $CF_KEY" \
  "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/dns_records"

# Criar DNS record
curl -s -X POST -H "X-Auth-Email: $CF_EMAIL" -H "X-Auth-Key: $CF_KEY" \
  -H "Content-Type: application/json" \
  "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/dns_records" \
  -d '{"type":"A","name":"subdominio","content":"192.168.1.1","proxied":true}'

# Limpar cache
curl -s -X DELETE -H "X-Auth-Email: $CF_EMAIL" -H "X-Auth-Key: $CF_KEY" \
  "https://api.cloudflare.com/client/v4/zones/<ZONE_ID>/purge_cache" \
  -d '{"purge_everything":true}'
```

## Zone IDs Principais

| Dominio | Zone ID |
|---------|---------|
| gohorsejobs.com | `5e7e9286849525abf7f30b451b7964ac` |
| rede5.com.br | `7eb6587a2c867bb9743719a8fabcd455` |

---

*Atualizado em: 2026-02-21*
