Web Interface and Publisher > Web Interface > Web Interface REST service > Requesting resources through the REST service > Requesting the available servers from a REST service (Web Interface REST service)
Requesting the available servers from a REST service (Web Interface REST service)
The Servers request returns resource URIs for the servers that can be accessed through the REST service.
Request
The syntax of the URI for a Servers request is as follows.
<Web Interface website>/ModelerService/Servers
Where:
<Web Interface website>
is the URI for the Web Interface website.
Returned XML
A Servers request returns a resource URI for each server that can be accessed through the REST service.
The syntax of a returned URI is as follows.
<Web Interface website>/ModelerService/Servers/<server name>
When you use the preceding resource URI against a server, the REST service returns operation URIs that can be used against the server.
Example
In this example, the following Servers request returns a resource URI for each server that can be accessed through the Web Interface website (https://localhost:57850).
https://localhost:57850/ModelerService/Servers
The returned XML is as follows. You can see that there is a resource URI for the Server101 server.
<?xml version="1.0"?>
ArrayOfServerxmlns:i="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://schemas.datacontract.org/2004/07/StudioRESTService.ModelerRESTService">
<Server>
<RequestResult>Complete</RequestResult>
<RequestResultType>Resource</RequestResultType>
<ID>Server101</ID>
<Name>Server101</Name>
<ResourceType>Server</ResourceType>
<URIs>
<URI>
<href>https://localhost:57850/ModelerService/Servers/Server101</href>
</URI>
</URIs>
<WebInterfaceLink>https://localhost:57850/showitem?srvNm=Server101</WebInterfaceLink>
</Server>
</ArrayOfServer>
Was this helpful?