The API follows one simple rule: changes to records and geohosts become active only after a commit. These are the two typical sequences, with links to each call.
Publish a zone with records
- Create the zone – No commit needed.
- Add records – Records are saved but not active.
- Commit the zone – The new records go live.
To change records later, call Modify zone records or Delete zone records, then commit the zone again.
Create a geohost with targets
- Look up check ids – Each target is monitored by one or more checks.
- Look up the balancing algorithm – Use one of the returned tags as
lbalgorithm. - Create the geohost – It must be committed to become active.
- Add targets – One call per target.
- Commit the geohost – Geohost and targets go live.
Deleting a geohost takes effect immediately and needs no commit.
What needs a commit
| Operation | Commit required |
|---|---|
| Create / modify / delete zone | No |
| Create / modify / delete zone records | Yes – commit the zone |
| Create / modify geohost | Yes – commit the geohost |
| Delete geohost | No, deleted immediately |
| Create / modify / delete geohost target | Yes – commit the geohost |