Managed Web Hosting::CreateAppPool

The CreateAppPool method creates an application pool.

Arguments

Input argument Required Description

<webServerName>

Yes

A string representing the name of the server. This can be a NetBIOS name, a fully qualified domain name (FQDN), or an IP address.

<appPoolId>

Yes

The name of the new application pool.

<properties>

No

Application pool properties.

Remarks

Process Steps

The following steps occur when creating an application pool with the CreateAppPool method of the Managed Web Hosting Namespace:

  1. Create an application pool.

  2. Set application pool properties.

Security

The CreateAppPool method has the following security requirements:

  • The caller is impersonated.

Sample Code

Example XML Request

The following is an example of an XML request for the CreateAppPool method of the Managed Web Hosting Namespace:

<request> 
        <procedure> 
                <execute namespace="Managed Web Hosting" procedure="CreateAppPool"  
                impersonate="1"> 
                        <executeData> 
                        <webServerName>WEB01</webServerName> 
                        <appPoolId>SharedAppPool</appPoolId> 
                        </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::DeleteAppPool