List of VMs in Lab
Select
SaaS
Customer Managed
List of virtual machines created under lab
Query Parameters
- id number
Lab Id
- name string
Lab Name
Responses
- 200
- 401
- 404
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
virtualMachines object[]
{
"virtualMachines": [
{
"name": "string",
"state": "STOPPED = 0",
"ipAddress": "string",
"operatingSystem": "string",
"creator": "string",
"expirationTime": 0,
"vmGUID": "string",
"lab": {
"id": 0,
"name": "string"
}
}
]
}
Unauthorized
Lab Not Found
Internal Server Error
GET /virtuallab/virtualmachines
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/VirtualLab/VirtualMachines' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/VirtualLab/VirtualMachines' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/VirtualLab/VirtualMachines' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/VirtualLab/VirtualMachines' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/VirtualLab/VirtualMachines' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/VirtualLab/VirtualMachines' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'
curl -L -X GET 'https://CommandCenterHostName/commandcenter/api/VirtualLab/VirtualMachines' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>'