Hide Forgot
There's no link to add a new key in the keys resource: curl -k -H "Accept: application/xml" --user "adietish:PASSWORD" https://openshift.redhat.com/broker/rest/user/keys/ -v <response> <type>keys</type> <status>ok</status> <messages/> <data> <key> <type>ssh-rsa</type> <content>KEYCONTENT</content> <name>default</name> <links> <link> <rel>Get SSH key</rel> <href>/user/keys/default</href> <method>GET</method> <optional-params/> <required-params/> </link> <link> <rel>Update SSH key</rel> <href>/user/keys/default</href> <method>PUT</method> <optional-params/> <required-params> <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> <link> <rel>Delete SSH key</rel> <href>/user/keys/default</href> <method>DELETE</method> <optional-params/> <required-params/> </link> </links> </key> </data> <version>1.0</version> </response> There is a link in the user resource though. But this looks like the wrong location to me.
> > 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.