infomaniak_dns_create_record
Add a DNS record (A, AAAA, CNAME, MX, TXT, etc.) to an Infomaniak-managed domain. Uses a two-phase commit: first call returns a plan and token, second call with token applies the change.
Instructions
Create a DNS record on an Infomaniak-managed zone. Two-phase commit: first call returns a plan + token, second call (same params + token) actually creates the record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| zone | Yes | DNS zone (root domain) to add the record to, e.g. 'broz.be'. Must be a domain whose DNS is managed by Infomaniak (check via infomaniak_get_domain). | |
| source | Yes | Subdomain part (e.g. 'www', 'mail') or '.' for the zone apex. Do NOT include the zone itself. | |
| type | Yes | Record type as enum: A, AAAA, CNAME, MX, TXT, NS, SRV, CAA, PTR. Must be UPPERCASE. | |
| target | Yes | Record value. For MX and SRV, embed the priority inline as Infomaniak does, e.g. '5 mta-gw.infomaniak.ch'. | |
| ttl | No | Time-to-live in seconds. Min 60, max 86400 (24h). Default 3600 (1h). | |
| confirmation_token | No | Token from the prior plan response. Required on the apply phase only. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||