pem.sharepoint.getAvailableSharePointSiteTemplates

This method is supported by POA starting from version 2.8 hotfix02

This method returns the list of all available Site Templates with their languages. It prepares information about Site Templates, which is used in the pem.sharepoint.createSharePointSite method.

The method has the following input parameters:

Name

Type

Short Description

subscription_id

int

ID of Subscription.

[resources]

struct

It contains a combination of Resource Types, which is used to point out the service targeted for provisioning SharePoint Site.

It is an optional parameter. If it is not specified, a combination of Resource Types is automatically found by POA. If POA detects multiple combinations of Resource Types, which are required for SharePoint Site provisioning, an error is thrown.

  • [sharepoint_sites_resource]

int

ID of Resource Type, which is created on the basis of the SharePoint Sites Resource Class. For example, if a Subscription contains several such Resource Types, the ID of the required Resource Type should be specified.

  • [traffic_resource]

int

ID of Resource Type, which is created on the basis of the Traffic Resource Class. It should be specified, if a separate Resource Type is used to calculate traffic for SharePoint Sites.

  • [diskspace_resource]

int

ID of Resource Type, which is created on the basis of the Diskspace Resource Class. It should be specified, if a separate Resource Type is used to calculate diskspace for SharePoint Sites.

The method returns the array of structures:

Name

Type

Short Description

sharepoint_site_template

string

Name of Site Template.

language_code

int

Locale ID of Site Template (refer to http://www.microsoft.com/globaldev/reference/lcid-all.mspx to obtain detailed information about Locale ID).

This table represents a mapping between the sharepoint_site_template parameter value and the name of Site Template in UI:

Parameter Value

Site Template Name in UI

WSS 2.0

STS_0

Team Site

STS_1

Blank Site

STS_2

Document Workspace

MPS_0

Basic Meeting Workspace

MPS_1

Blank Meeting Workspace

MPS_2

Decision Meeting Workspace

MPS_3

Social Meeting Workspace

MPS_4

Multipage Meeting Workspace

WSS 3.0

STS_1

Blank Site

STS_2

Document Workspace

MPS_0

Basic Meeting Workspace

MPS_1

Blank Meeting Workspace

MPS_2

Decision Meeting Workspace

MPS_3

Social Meeting Workspace

MPS_4

Multipage Meeting Workspace

BLOG_0

Blog Site

WIKI_0

Wiki Site