Accounts-accountNumber-web-domainName-ssh:POST

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "= POST /accounts/{accountNumber}/web/{domainName}/ssh = Add ssh account. __TOC__ == Request == <code>POST /accounts/{accountNumber}/web/{domainName}/ssh</code> === URI Para...")
 
m (1 revision: Release 109)
 

Latest revision as of 13:16, 24 July 2015

[edit] POST /accounts/{accountNumber}/web/{domainName}/ssh

Add ssh account.

Contents


[edit] Request

POST /accounts/{accountNumber}/web/{domainName}/ssh

[edit] URI Parameters

accountNumber - string
The user account of the web site owner
domainName - string
The domain name of the website

[edit] Request Headers

Authorization - HTTP Authorization header [1]
The Authentication credentials of the client application.

[edit] Request Body

{
   "username": "{username}",
   "password": "{password}"
}
 

[edit] Parameters

username - string
A valid ssh username. Required.
password - string
A valid password. Required.


[edit] Response

[edit] Status Code

202 Accepted
Success
401 Unauthorized
The supplied credentials are invalid or do not provide permissions for this operation
403 Forbidden
The authenticated user is not allowed to access this resource

[edit] Examples

[edit] Adding an ssh account

Request

POST /accounts/acct411359/web/ng-test-website1-20150305-0734.us/ssh

{ "username": "testssh053247", "password": "somePw97q" }
 

Response

202 Accepted

 



blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox