| Summary: | [REST API] no link to add a new key in the keys resource | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Andre Dietisheim <adietish> |
| Component: | Pod | Assignee: | Lili Nader <lnader> |
| Status: | CLOSED NOTABUG | QA Contact: | libra bugs <libra-bugs> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 2.x | CC: | mfisher, mpatel, xcoulon |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-27 20:17:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Andre Dietisheim
2012-03-23 13:19:35 UTC
>
> There is a link in the user resource though. But this looks like the wrong
> location to me.
<user>
<login>adietish</login>
<links>
<link>
<rel>Get user information</rel>
<href>/user</href>
<method>GET</method>
<optional-params/>
<required-params/>
</link>
<link>
<rel>Add new SSH key</rel>
<href>/user/keys</href>
<method>POST</method>
<optional-params/>
<required-params>
<param>
<type>string</type>
<name>name</name>
<valid-options/>
<description>Name of the application</description>
</param>
<param>
<type>string</type>
<name>type</name>
<valid-options>
<valid-option>ssh-rsa</valid-option>
<valid-option>ssh-dss</valid-option>
</valid-options>
<description>Type of Key</description>
</param>
<param>
<type>string</type>
<name>content</name>
<valid-options/>
<description>The key portion of an rsa key (excluding ssh-rsa and comment)</description>
</param>
</required-params>
</link>
as mentioned above the link is under user resource. |