[Pdns-users] Unable to edit domainmetadata with API

Shailendra Gautam shailendragautam349 at gmail.com
Fri Jun 30 11:55:33 UTC 2023


Hi,

I'd like to edit the domain metadata SOA-EDIT-API to EPOCH but the API
doesn't allow it, however I can edit SOA-EDIT kind. Is that a bug?

[root at sgpowerdns /]# curl -X GET
http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata
[{"kind": "SOA-EDIT", "metadata": ["EPOCH"], "type": "Metadata"}, {"kind":
"SOA-EDIT-API", "metadata": ["DEFAULT"], "type": "Metadata"}]
[root at sgpowerdns /]#
[root at sgpowerdns /]# curl -X GET
http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata/SOA-EDIT
{"kind": "SOA-EDIT", "metadata": ["EPOCH"], "type": "Metadata"}
[root at sgpowerdns /]#
[root at sgpowerdns /]# curl -X GET
http://10.10.143.64:8081/api/v1/servers/localhost/zones/test2.org./metadata/SOA-EDIT-API
{"error": "Unsupported metadata kind 'SOA-EDIT-API'"}
[root at sgpowerdns /]#

--
Thanks,
SG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20230630/21594d0d/attachment.htm>


More information about the Pdns-users mailing list