ALM Site Administration API Type Library 12.50 and later
GetAllDomainProjects Method
The domain name.
Description
Returns the properties of all projects in a domain.
Syntax
Visual Basic
Public Function GetAllDomainProjects( _
   ByVal DomainName As String _
) As String
Parameters
DomainName
The domain name.
Return Type

On success, returns an XML string containing the project properties.

Return Value Details

The properties of the XML return string:

Return Value Example
<TDXItem>
        <TDXItem>
                <PROJECT_ID>1</PROJECT_ID>
                <PROJECT_NAME>deleted</PROJECT_NAME>
                <DESCRIPTION>Created on 2007-06-17 11:56:38</DESCRIPTION>
                <DOMAIN_ID>1</DOMAIN_ID>
                <DOMAIN_NAME>DEFAULT</DOMAIN_NAME>
                <DB_NAME>default_random_db0</DB_NAME>
                <DB_TYPE>2</DB_TYPE>
                <CREATE_FROM_PROJECT>Empty Database</CREATE_FROM_PROJECT>
                <CREATE_FROM_DOMAIN>Templates</CREATE_FROM_DOMAIN>
                <PHYSICAL_DIRECTORY>
                       C:\ProgramData\HP\ALM\Repository\qc\Default\random\
                </PHYSICAL_DIRECTORY>
                <DB_NATIVE_AUTHENTICATION>N</DB_NATIVE_AUTHENTICATION>
                <DB_USER>td</DB_USER>
                <DB_USER_PASS>TWO:59-132-191-0-59-132</DB_USER_PASS>
                <DBSERVER_NAME>dbServer06</DBSERVER_NAME>
                <DB_CONNSTR_FORMAT>jdbc:serverfarm:sqlserver://dbServer06:1433
                    </DB_CONNSTR_FORMAT>
                <DB_ENCRYPTED_CONNSTR>jdbc:serverfarm:sqlserver://dbServer06:1433
                    </DB_ENCRYPTED_CONNSTR>
                <DB_DRIVER_CLASS_NAME>com.mycom.jdbc.sqlserver.SQLServerDriver
                    </DB_DRIVER_CLASS_NAME>
                <PROJECT_VERSION>9.2</PROJECT_VERSION>
                <PR_IS_ACTIVE>N</PR_IS_ACTIVE>
                <SAQ_IS_ACTIVE>N</SAQ_IS_ACTIVE>
                <PR_HAS_VCSDB>N</PR_HAS_VCSDB>
                <USERS_QUOTA>-1</USERS_QUOTA>
                <PR_REPOSITORY_IN_DB>N</PR_REPOSITORY_IN_DB>
                <PR_LANGUAGE>English</PR_LANGUAGE>
        </TDXItem>
</TDXItem>
Example
Private Sub GetAllDomainProjects()

'The following Visual Basic example gets the projects
' and their properties from the MyDomain domain.
    Dim sDomainName As String
    Dim sReply As String

    On Error GoTo err

    sDomainName = "MyDomain"
    sReply = m_SAClient.GetAllDomainProjects _
        (sDomainName)
    MsgBox sReply
    Exit Sub

err:
    MsgBox "Program failed:" + err.Description
End Sub
See Also

SAapi Object  | SAapi Members