[Pdns-users] Unable to edit domainmetadata with API

Shailendra Gautam shailendragautam349 at gmail.com
Fri Jun 30 13:14:30 UTC 2023


Thank you, missed it somehow.


--
Thanks,
SG


On Fri, 30 Jun, 2023, 5:37 pm Frank Louwers, <frank+pdns at tembo.be> wrote:

> Hi Shailendra,
>
> This is documented behaviour:
> https://doc.powerdns.com/authoritative/domainmetadata.html states:
>
> The option SOA-EDIT-API can not be written or read via the HTTP API
> metadata endpoint.
>
>
> Cheers,
>
> Frank
>
>
>
> Frank Louwers
> PowerDNS Certified Consultant @ Kiwazo.be
>
> On 30 Jun 2023, at 13:55, Shailendra Gautam via Pdns-users <
> pdns-users at mailman.powerdns.com> wrote:
>
> 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
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> https://mailman.powerdns.com/mailman/listinfo/pdns-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20230630/0a7789a7/attachment-0001.htm>


More information about the Pdns-users mailing list