Get Servers
This end point returns the list of servers
Query Parameters
- showOnlyInfrastructureMachines int32
Default value:
1
Returns only infrastructure machines if value is 1 if 0, it returns all servers, default value is 1
Responses
- 200
OK
Response Headers
- application/json
- Schema
- Example (from schema)
Schema
- totalServers int32
servers object[]
{
"totalServers": 0,
"servers": [
{
"id": 0,
"name": "string",
"displayName": "string",
"hostName": "string",
"agents": [
{
"id": 0,
"name": "string"
}
],
"configured": true,
"version": "11.22.5",
"OS": "string",
"updateState": "UNKNOWN",
"isInfrastructure": true,
"isMARoleSet": true,
"isMAPackageInstalled": true,
"networkReadiness": "OFFLINE",
"company": {
"id": 0,
"name": "string"
},
"tags": [
{
"id": 0,
"name": "string",
"value": "string"
}
],
"commcell": {
"name": "string"
},
"clientRoles": [
{
"id": 0,
"name": "string"
}
]
}
]
}
GET /v4/servers
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X GET 'https://localhost/webconsole/api/V4/Servers' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Servers' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Servers' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Servers' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Servers' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Servers' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://localhost/webconsole/api/V4/Servers' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'