Summary:
List servers.
URL:
http(s)://{server hostname}/api/servers
Methods summary
- GET Method - lists Entuity servers (XML, JSON).
GET Method detail
Lists Entuity servers, in either XML or JSON format.
Response:
Name | Description |
---|---|
count | number of servers. |
servers |
list of servers. |
server |
Server summary details, with the following attributes:
|
Examples:
INPUT
curl -u admin:admin https://localhost/api/servers?media=json
OUTPUT
{
"items": [
{
"serverId": "34564e92-3b4f-43ba-94a8-04309c0e48fe",
"id": "34564e92-3b4f-43ba-94a8-04309c0e48fe",
"name": "ENTLONDEV08"
}
],
"count": 1
}
INPUT
curl -u admin:admin https://localhost/api/servers?media=xml
OUTPUT
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<items count="1">
<item xsi:type="namedItem" name="ENTLONDEV08" id="34564e92-3b4f-43ba-94a8-04309c0e48fe" serverId="34564e92-3b4f-43ba-94a8-04309c0e48fe" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"/>
</items>
Comments
0 comments
Please sign in to leave a comment.