Create Virtual Lab API
Select
API to create virtual lab
- application/json
Request Body
Request body for create virtual lab API
- name string
Lab name
- description string
Description of lab
target object
Details of target associated to virtual machine
id int32name string- count int32
Number of labs
- expirationTime int32
Lab expiration time in UNIX timestamp format
vmPassword object
savedCredentials object
id int32name stringcredentials object
name stringusername to access the network path
password stringpassword to access the network path
labVMConfiguration object[]
name stringName of VM
description stringVM description
expirationTime int32VM expiration time in UNIX timestamp format
count int32Number of VMs to be created
userDetails object
name stringusername to access the network path
password stringpassword to access the network path
target object
id int32name stringtemplate object
vmName stringVM name of template
vmGUID stringVM guid of template
operatingSystem stringPossible values: [
WINDOWS
,UNIX
]OS types
operatingSystemDisplayName stringOperating System version
memory int64Memory size of VM in GBs
numCPUs int32Number of CPUs for VM
numNICs int32Number of NICs associated to VM
vmSize stringVM instance
createPublicIP booleanIs public IP enabled
vmIOPS int32IOPS limit for Amazon VM
isoPath stringISO path for HyperV VM
vmBackup booleanEnable VM backup
vmDisk object[]
New disk configuration
name stringName of the disk
snapshotId stringUnique identifier of the snapshot, applicable if the disk is created from a snapshot
provisioningType stringPossible values: [
THIN
,THICK
]Disk provisioning type
diskSize int64Disk size in bytes
diskType stringPossible values: [
ISCSI
,IDE
]Type of disk controller
sourceHardDiskType SourceHardDiskTypePossible values: [
None
,EmptyHardDisk
,ExistingHardDisk
,ExistingSnapShot
,RootHardDisk
]Type of hard disk
network object[]
networkDisplayName stringSelected network display name
network stringName of network switch
subnetId stringSubnet id of the subnet
networkId stringVPC id for the amazon network
destinationNetworks string[]Destination network name
networkNames string[]Name of network to which the nic is connected
domainOptions object
domainName stringUnique name for network domain
OUPath stringOrganizational unit path of VM
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
Tells about the error occured
- errorCode ErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,VALUE_NOT_FOUND
,UNKNOWN_EXCEPTION
,CONNECTION_PROBLEM
,UNKNOWN_SQL_ERROR
,INVALID_USER
,INVALID_OPERATION_TYPE
,INTERNAL_SERVER_PROBLEM
,INSUFFICIENT_USER_PERMISSION_ON_ENTITY
,INVALID_ENTITY_ID
]Error code value
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
Tells about the error occured
- errorCode ErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,VALUE_NOT_FOUND
,UNKNOWN_EXCEPTION
,CONNECTION_PROBLEM
,UNKNOWN_SQL_ERROR
,INVALID_USER
,INVALID_OPERATION_TYPE
,INTERNAL_SERVER_PROBLEM
,INSUFFICIENT_USER_PERMISSION_ON_ENTITY
,INVALID_ENTITY_ID
]Error code value
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
Tells about the error occured
- errorCode ErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,VALUE_NOT_FOUND
,UNKNOWN_EXCEPTION
,CONNECTION_PROBLEM
,UNKNOWN_SQL_ERROR
,INVALID_USER
,INVALID_OPERATION_TYPE
,INTERNAL_SERVER_PROBLEM
,INSUFFICIENT_USER_PERMISSION_ON_ENTITY
,INVALID_ENTITY_ID
]Error code value
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
Tells about the error occured
- errorCode ErrorCode
Possible values: [
NO_ERROR
,INVALID_INPUT
,VALUE_NOT_FOUND
,UNKNOWN_EXCEPTION
,CONNECTION_PROBLEM
,UNKNOWN_SQL_ERROR
,INVALID_USER
,INVALID_OPERATION_TYPE
,INTERNAL_SERVER_PROBLEM
,INSUFFICIENT_USER_PERMISSION_ON_ENTITY
,INVALID_ENTITY_ID
]Error code value
{
"errorMessage": "string",
"errorCode": "NO_ERROR"
}