Use the CreateFTPSite procedure of the Managed IIS namespace to create a File Transfer Protocol (FTP) site.
This procedure expects to be called with impersonate="1". The procedure impersonates the caller.
<request>
<procedure>
<execute namespace="Managed IIS" procedure="CreateFTPSite">
<executeData>
<description>www.myftp.com</description>
<diskMegabytes>10</diskMegabytes>
<owner>LDAP://ou=Reseller,ou=Hosting,dc=contoso,dc=com</owner>
<policyName>reseller</policyName>
<StartOnCreate>0</StartOnCreate>
<preferredDomainController>myPrimaryDC.contoso.com</preferredDomainController>
</executeData>
<after source="executeData" sourcePath="IISPath"
destination="data" mode="insert" />
</execute>
</procedure>
</request>
The following input is valid for this request:
In the <diskMegabytes> element, specify the amount of disk space, in megabytes, that you want to reserve for this FTP site.
<diskMegabytes>reserved disk space in megabytes</diskMegabytes>
In the <StartOnCreate> element, specify whether the FTP site starts automatically when it is created. To start the FTP site when it is created, specify 1. The default value is 0, to not start the FTP site when it is created.
<StartOnCreate>0|1</StartOnCreate>
In the <owner> element, specify the Lightweight Directory Access Protocol (LDAP) path of the organization to which this FTP site belongs. The owner value must correspond to the creation policy element as follows:
<owner>organization in which the Web site is being created.</owner>
By using the <description> element, you can specify a description of the FTP site.
This information is optional.
<description>description of the FTP site</description>
By using the <preferredDomainController> element, you can specify the domain controller that you want to use for this request. Using a single preferred domain controller eliminates replication delays that arise between multiple controllers.
This information is optional.
<preferredDomainController>YourPrimaryDomainController.YourHostname.DomainNameExtension</preferredDomainController>
By using the <policyName> element, you can specify the type of organization in which the FTP site belongs. To specify the organization type, use lowercase letters.
This information is optional. If you do not include it, the request uses default.
<policyName>default|hosting|reseller|customer</policyName>
This procedure returns the IIS path of the FTP site.
<response>
<data>
<IISPath>IIS://MyServer/MSFTPSVC/5</IISPath>
</data>
Important