Accounts-accountNumber-web-domainName-ftp:GET

From Hostway API Documentation
(Difference between revisions)
Jump to: navigation, search
(Created page with "= GET /accounts/{accountNumber}/web/{domainName}/ftp = Returns a list of ftp accounts for the website. __TOC__ == Request == <code>GET /accounts/{accountNumber}/web/{domainN...")
 
m (1 revision: Release 105)
 

Latest revision as of 12:57, 3 April 2015

[edit] GET /accounts/{accountNumber}/web/{domainName}/ftp

Returns a list of ftp accounts for the website.

Contents


[edit] Request

GET /accounts/{accountNumber}/web/{domainName}/ftp

[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] Response

[edit] Response Body

{
   "users":
   [
       {
           "username": "{username}",
           "type": "{ftpAccountType}"
       },
       ...
   ]
}
 

[edit] Response parameters =

username - string
The username of the ftp account
ftpAccountType - string
The type of the ftp account, one of "www.account.master", "www.account.ftp", "www.account.subftp". There is always one master account which can't be deleted. There are also regular ftp accounts and sub dir ftp accounts associated with a sub folder (currently folder name is the same as the username).

[edit] Status Code

200 OK
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] Listing the ftp accounts for a website

Request

GET /accounts/acct411359/web/ng-test-website1-20150305-0734.us/ftp
 

Response

{
   "users":
   [
       {
           "username": "ng-test-website1-35",
           "type": "www.account.master"
       },
       {
           "username": "testftp1",
           "type": "www.account.ftp"
       },
       {
           "username": "testsubftp1",
           "type": "www.account.subftp"
       }
   ]
}



blog comments powered by Disqus

Personal tools
Namespaces
Variants
Actions
APIs
Navigation
Toolbox