Accounts-accountNumber-web-domainName-ssh-SshUsername:POST
From Hostway API Documentation
(Difference between revisions)
(→POST /accounts/{accountNumber}/web/{domainName}/ssh) |
Mike.robski (Talk | contribs) m (1 revision: Release 109) |
Latest revision as of 13:16, 24 July 2015
POST /accounts/{accountNumber}/web/{domainName}/ssh
Add ssh account.
Contents |
Request
POST /accounts/{accountNumber}/web/{domainName}/ssh
URI Parameters
- accountNumber - string
- The user account of the web site owner
- domainName - string
- The domain name of the website
Request Headers
- Authorization - HTTP Authorization header [1]
- The Authentication credentials of the client application.
Request Body
{ "username": "{username}", "password": "{password}" }
Parameters
- username - string
- A valid ssh username. Required.
- password - string
- A valid password. Required.
Response
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
Examples
Adding an ssh account
Request
POST /accounts/acct411359/web/ng-test-website1-20150305-0734.us/ssh { "username": "testssh053247", "password": "somePw97q" }
Response
202 Accepted