Bug 787315 - Creating SSH key through rest api doesn't support POSTing XML or JSON
Summary: Creating SSH key through rest api doesn't support POSTing XML or JSON
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-03 22:42 UTC by Clayton Coleman
Modified: 2015-05-15 01:46 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-09 20:29:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Clayton Coleman 2012-02-03 22:42:01 UTC
Looking at keys_controller.rb I don't see a way to post the model object for a key to /user/keys - neither:

{name: "name", type: "type", key: "key"}

or

<ssh_key><name>...</name><type>...</type><key>...</key></ssh_key>

seem to be supported.

Comment 1 Alex Boone 2012-02-09 20:29:58 UTC
This actually appears to be working just fine.


Note You need to log in before you can comment on or make changes to this bug.