Share via


SharePoint2007Provider::AddQuotaTemplate

This procedure creates a new quota template and adds it to the global list of quota templates.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<templateName>

Yes

The name of the new quota template.

<warningLevel>

Yes

The database size in bytes which will generate a warning.

<maxDBSize>

Yes

The database size in bytes which will prevent further growth of the SiteCollections Content Database.

Remarks

  • The caller must be a member of the local administrators group, or the group that is designated as the SharePoint Administrators Group Account.

  • <warningLevel> can be set to any integer equal or greater than 0. It is possible that Sharepoint will throw an error:"Warning storage level must be an integer that is greater than 0 and less than the maximum storage level". As this error is thrown by SharePoint, not SharePoint Provider, it can not be modified. The error message can be safely ignored if <warningLevel> is set to be non-negative integer.

Sample Code

Example XML Request

<request> 
    <procedure> 
        <execute namespace="SharePoint2007Provider" procedure="AddQuotaTemplate" impersonate="1"> 
            <executeData> 
                        <target>https://raven003:8080</target> 
                        <templateName>newQuotaTemplate</templateName> 
                        <warningLevel>10000000</warningLeve> 
                        <maxDBSize>20000000</maxDBSize> 
            </executeData> 
        </execute> 
    </procedure> 
</request>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::ModifyQuotaTemplate
SharePoint2007Provider::DeleteQuotaTemplate