Accounts-accountNumber-web-domainName-ssh-SshUsername:POST
From Hostway API Documentation
Revision as of 15:19, 16 July 2015 by Venzi.iliev (Talk)
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