pem.getFTPUser

This method is supported by Operations starting from version 2.4.

This method returns the login name for primary FTP user for FTP hosting associated with the specific subscription.

The method has the following input parameters:

Name

Type

Short Description

subscription_id

int

ID of the subscription

[webspace_id]

int

ID of the webspace served by the chosen FTP service

[domain_name]

string

Name of the domain served by the chosen FTP service

The [webspace_id] or [domain_name] parameters should be used when a subscription contains more than one webspace served by the FTP service in order to determine, which exactly service to use. These parameters are optional to each other, so only one of them can be used in a single request. If neither of them is specified, the method will act as if there is only one webspace in the subscription and will result in error if it's not so.

Output is a structure with following content:

Name

Type

Short Description

username

string

The requested login name.