GetHypervisorTypes

API Request

URLs
GET zstack/v1/hosts/hypervisor-types
Headers
Authorization: OAuth the-session-uuid
Curl Example
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth fa53caa553b8446e9bb1c3ccae31cfcd" \
-X GET http://localhost:8080/zstack/v1/hosts/hypervisor-types
Parameter 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()
API Reference | ZStack ZSphere · ZVF | ZStack Resource Center