Record DNS
Elencare, creare, aggiornare ed eliminare record DNS. Gli esempi usano la modalità codice A2A. MCP espone la stessa modalità codice tramite lo strumentoexecute.
Funzioni
dns_records.add
dns_records.add.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | dns.record.create | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | dns.record.create |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | POST /v1/public/accounts/{account_id}/dns-records |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
domain | str | sì |
name | str | sì |
type | str | sì |
value | str | sì |
prio | int | null | no |
ttl | int | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
id | int | sì |
name | str | sì |
ttl | int | sì |
type | str | sì |
value | str | sì |
is_system_managed | bool | no |
priority | int | null | no |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta:
dns_records.delete
dns_records.delete.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | dns.record.delete | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | dns.record.delete |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | DELETE /v1/public/accounts/{account_id}/dns-records/{record_id} |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
record_id | int | sì |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
result | {} | sì |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta:
dns_records.list
dns_records.list.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | dns.record.view | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | dns.record.view |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | GET /v1/public/accounts/{account_id}/dns-records |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
domain | str | null | no |
name | str | null | no |
page | int | no |
page_size | int | no |
type | str | null | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
items | [{"id": int, "name": str, "ttl": int, "type": str, "value": str, "is_system_managed"?: bool, "priority"?: int | null}] | sì |
page | int | sì |
page_size | int | sì |
total | int | sì |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta:
dns_records.update
dns_records.update.
| Proprietà | Valore | Proprietà | Valore |
|---|---|---|---|
| Autorizzazione richiesta | dns.record.update | Autenticazione richiesta | sì |
| Modalità di esecuzione | sync | Capacità | dns.record.update |
| Tipo di risorsa | account | Campo ID risorsa | account_id |
| Route API pubblica | PATCH /v1/public/accounts/{account_id}/dns-records/{record_id} |
Argomenti
Argomenti
| Nome | Tipo | Obbligatorio |
|---|---|---|
account_id | str | sì |
record_id | int | sì |
disabled | bool | null | no |
name | str | null | no |
prio | int | null | no |
ttl | int | null | no |
value | str | null | no |
Restituisce
Restituisce
| Campo | Tipo | Obbligatorio |
|---|---|---|
id | int | sì |
name | str | sì |
ttl | int | sì |
type | str | sì |
value | str | sì |
is_system_managed | bool | no |
priority | int | null | no |
Esempio A2A
Esempio A2A
Richiesta:Risposta:
Esempio MCP
Esempio MCP
Richiesta:Risposta: