Creates a new Touchstone®
Project.
Parameters
- request
- Contains a CreateProjectRequest that identifies the Name and optional Description of the Project that you want to create, along with the associated Touchstone-generated Business Unit Sequential Identifier (SID) and SQL Instance SID.
Return Value
A
CreateProjectResponse containing the
Project SID, which uniquely identifies the Project that you have created.
The following example shows how to create a Touchstone Project using the
CreateProject()
method:
using System;
using AIR.Services.Common.Data;
using AIR.Services.ProjectManagement.Api;
class SnippetCreateProjectRequest
{
private static void CreateProject(int businessUnitSid, int sqlInstanceSid, string projectName, string projectDesc)
{
ProjectManagementServiceClient projectClient = new ProjectManagementServiceClient();
CreateProjectRequest request = new CreateProjectRequest();
request.BusinessUnitSid = businessUnitSid;
request.SqlInstanceSid = sqlInstanceSid;
request.Name = projectName;
request.Description = projectDesc;
CreateProjectResponse response = projectClient.CreateProject(request);
if (response.Status.Code == StatusCode.Success)
{
Console.WriteLine("Project " + request.Name + " created with SID: " + response.ProjectSid);
}
}
}
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2