-
Notifications
You must be signed in to change notification settings - Fork 974
Open
Labels
Milestone
Description
- Program: Authoritative
- Issue type: Feature request
Short description
When exporting cryptokey data through GET /servers/{server_id}/zones/{zone_id}/cryptokeys/{cryptokey_id}, the resulting JSON object cannot be directly POSTed to /servers/{server_id}/zones/{zone_id}/cryptokeys. It errors out with the following message:
{"error": "Either you submit just the 'privatekey' field or you leave 'privatekey' empty and submit the other fields."}
This message is somewhat misleading too, as sending just privatekey results in...
{"error": "Key 'keytype' not present or not a String"}
I also haven't seen documentation on which fields are exactly required (this page doesn't seem to mention it?) but keytype and privatekey seem to be enough.
Usecase
Easier importing / migrations between servers. Habbie mentioned on IRC that this may be something desirable :)