Get Virtual Machine Hypervisor Types
Headers
Authorization: OAuth the-session-uuidCurl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth fa53caa553b8446e9bb1c3ccae31cfcd" \
-X GET http://localhost:8080/zstack/v1/hosts/hypervisor-typesParameter List
| Name | Type | Location | Description | Allowed Values | Starting Version |
|---|---|---|---|---|---|
| systemTags (optional) | List | query | System tag | 0.6 | |
| userTags (optional) | List | query | User tag | 0.6 |
API Response
On success, this API returns an empty JSON structure {}. On error, the returned JSON structure contains an error field, for example:
{
"error": {
"code": "SYS.1001",
"description": "A message or a operation timeout",
"details": "Create VM on KVM timeout after 300s"
}
}SDK Examples
Java SDK
GetHypervisorTypesAction action = new GetHypervisorTypesAction();
action.sessionId = "6e32c684aeab461db30fb6631a1ac898";
GetHypervisorTypesAction.Result res = action.call();Python SDK
GetHypervisorTypesAction action = GetHypervisorTypesAction()
action.sessionId = "48f0a488d41d4f84b77c343a24e206e4"
GetHypervisorTypesAction.Result res = action.call()