Skip to main content
Flexible Top Header
Answer

Need v2 API to create an External Host Record

  • June 17, 2025
  • 2 replies
  • 57 views

rharolde
Forum|alt.badge.img+4

The migration doc says v1 “POST /Services/REST/v1/addExternalHostRecord” becomes “POST /api/v2/zones/{collectionId}/resourceRecords”, but there is no ‘zone’ for an ExternalHost record.  So what collectionId should I use?

 

Best answer by tmaestas

Each View will have a zone of type=ExternalHostsZone - you can fetch this/these with /api/v2/zones?filter=type:eq(“ExternalHostsZone”) (add additional filters for configuration.name etc as required for your environment).

2 replies

Forum|alt.badge.img+2
  • Verified Resolver
  • Answer
  • June 17, 2025

Each View will have a zone of type=ExternalHostsZone - you can fetch this/these with /api/v2/zones?filter=type:eq(“ExternalHostsZone”) (add additional filters for configuration.name etc as required for your environment).


rharolde
Forum|alt.badge.img+4
  • Author
  • DNS/DHCP/IPAM at U of Michigan
  • June 17, 2025

Thanks!