Managed Web Hosting::ModifyCustomerWebSite
The ModifyCustomerWebSite method provides for modification of a limited set of Web site properties.
Arguments
Input argument | Required | Description |
---|---|---|
<org> |
Yes |
The Lightweight Directory Access Protocol (LDAP) path of the owning organization. |
<webSiteName> or <location> |
Yes |
For this parameter, use the unique Web site name that was established when creating the site, or you can use the IIS metabase path. |
<preferredDomainController> |
Yes |
The name of the preferred domain controller. |
<frontpageExtendWeb> |
No |
Allowed values are "1," which installs FrontPage extensions, or "0" which does not install the extensions. If "1" is specified and extensions are already installed, an exception will not be thrown. If "0" is specified and extensions are not installed, an exception will be thrown. |
<anonymousUserPass> |
No |
The password for the automatically generated anonymous user. If supplied, the user's password will be reset and the new password will be applied to the AnonymousUserPass property of the IIS Site. |
<uncUserPass> |
No |
If this element is present, a user is created (if one does not already exist) and set with this password. The resulting user is then applied to the UncUserName property for the Web site. |
<serverBindings> |
No |
The container for one or more instance of a <binding> element. |
<serverBindings mode="[replace|clear|edit]"> |
No |
This optional mode attribute indicates the behavior that will occur with regard to existing bindings. If not supplied, a default mode of "edit" is assumed:
|
<serverBindings>/<binding> |
Yes |
One or more instances with attributes containing the components of a Web site server bindings. The number of bindings will be counted against (and cannot exceed) the number of web sites (maxWebSites) in Resource Manager.
|
<properties> |
No |
The collection of the customer's root Web properties. Any valid property setting supported by the IIS provider can be passed through. Typical properties would include:
|
<keys> |
No |
The "keys" node specifies any child keys for which properties should be set. The <keys/> node may be omitted, or it may be empty. The keys node applies to any IIS paths beneath the root Web of the site to be modified, such as a virtual directory, such as IIS://WEB01/w3svc/10/Root/images. See the IIS Provider::SetProperties documentation for more information on this node. |
<ServerComment> |
No |
The ServerComment is the display string that you see in ISM. |
Remarks
Process Steps
The following steps occur when modifying a Web site with the ModifyCustomerWebSite method of the Managed Web Hosting Namespace:
Install or remove FrontPage extensions if specified.
Set the anonymous user account password if specified.
Create a UNC user if uncUserPass is supplied and the user does not exist.
Set the UNC user password if uncUserPass is supplied.
Add or remove server bindings as specified.
Set Root Web properties if specified.
Ensure the existence of an application pool if specified in the property collection.
Set the child <keys> properties if supplied.
Security
The ModifyCustomerWebSite method has the following security requirements:
The caller is impersonated.
The caller is tested for OrgCreator permissions by checking for membership in any of the following groups:
Domain Admins
Hosting Admins
Reseller Admins
Sample Code
Example XML Request
The following is an example of an XML request for the ModifyCustomerWebSite method of the Managed Web Hosting Namespace:
<request>
<procedure>
<execute namespace="Managed Web Hosting"
procedure="ModifyCustomerWebSite" impersonate="1">
<executeData>
<preferredDomainController>AD01.fabrikam.com
</preferredDomainController>
<org>LDAP://OU=alpineskihouse,OU=consolidatedmessenger,
OU=Hosting,DC=fabrikam,DC=Com</org>
<webSiteName>www.alpineskihouse.com</webSiteName>
<serverComment>www.alpineskihouse.com</serverComment>
<serverBindings mode="edit">
<binding port="80"
ipAddress="" hostHeader="support.alpineskihouse.com"
mode="append" />
<binding port="80" ipAddress=""
hostHeader="help.alpineskihouse.com"
mode="delete" />
<binding port="80" ipAddress=""
hostHeader="shop.alpineskihouse.com"
mode="append" />
</serverBindings>
<properties>
<property name="AppPoolId">AnotherPool</property>
</properties>
</executeData>
<after source="executeData" destination="data" mode="merge" />
</execute>
</procedure>
</request>
Example XML Response
No example XML response.
Applies To
Managed Web Hosting Namespace API for:
Hosted Messaging and Collaboration version 4.5
Hosted Messaging and Collaboration version 4.0
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
Windows-based Hosting version 4.5
Windows-based Hosting version 4.0
Windows-based Hosting version 3.5
Windows-based Hosting for Applications version 1.0
See also
Tasks
Managed Web Hosting::CreateCustomerWebSite
Managed Web Hosting::DeleteCustomerWebSite
Managed Web Hosting::ControlCustomerWebSite