domains Collection
Description
The domains in a site the current user can access.
URL
/qcbin/rest/domains
Remarks
If the query ?include-projects-info=y is appended to the URL, the list of projects in each domain is returned.
HTTP Methods
GET: Gets the domains collection.
PUT: N/A
DELETE: N/A
POST: N/A
Media Type | GET
| PUT
| DELETE
| POST
|
---|---|---|---|---|
application/xml | - | - | - | |
application/json | - | - | - |
Returns
One of the HTTP Return Codes.
An XML string compliant with the Domains Collection Schema or a string containing the data in another supported format.
Examples
GET: /qcbin/rest/domains?include-projects-info=y ACCEPT: application/xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Domains> <Domain Name="ALEX_QA"> <Projects> <Project Name="Version1"/> <Project Name="Version2"/> </Projects> </Domain> <Domain Name="SUZY_DEV"> <Projects> <Project Name="Version3"/> <Project Name="Version4"/> </Projects> </Domain> <Domain Name="DEFAULT"> <Projects> <Project Name="DEMO"/> <Project Name="PEMBERLEY"/> </Projects> </Domain> </Domains>