Web Hosting Resource Manager::ModifyWebSiteAllocation

This procedure modifies a Web site size allocation.

Arguments

Input argument Required Description

<serverName>

Yes

The name of the IIS Web Server where the Web site resides.

<IISPath>

Yes

The metabase key of the Web site to modify.

<megabytes>

Yes

The size in megabytes to adjust the allocation by. Positive numbers increase the existing allocation. Negative numbers decrease the existing allocation.

<preferredDomainController>

Yes

<container>

A starting LDAP container to look for the server in. The procedure performs an LDAP search to resolve the <serverName> to the Active Directory computer object. You can improve the performance of this search by specifying a default container (for example, LDAP://CN=Computers,DC=fabrikam,DC=Com).

Remarks

Access Level

Private.

Provisioning Steps

  1. Modify the Web site allocation.

Security

  1. Impersonate Caller.

Note

The access level of this procedure is private. It is intended to be called from other namespaces that perform their own security checks.

Sample Code

Example XML Request

<request> 
  <procedure> 
 
    <execute namespace="Web Hosting Resource Manager" procedure="ModifyWebSiteAllocation" impersonate="1"> 
 
      <executeData> 
 
        <preferredDomainController>AD01-wh.fabrikam.com</preferredDomainController> 
 
        <megabytes>10</megabytes> 
 
        <serverName>Web09</serverName> 
 
        <IISPath>IIS://WEB01/W3SVC/3453463</IISPath> 
 
      </executeData> 
 
      <after source="executeData" destination="data" mode="merge"/> 
 
    </execute> 
 
  </procedure> 
 
</request> 

Example XML Response

No example XML response.

Applies To

Web Hosting Resource Manager Namespace 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

Web Hosting Resource Manager::EndAllocateWebSite
Web Hosting Resource Manager::DeallocateWebSite