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
- count int32
Number of labs
- expirationTime int32
Lab expiration time in UNIX timestamp format
vmPassword object
labVMConfiguration object[]
- 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"
}
POST /v4/vmprovisioning/virtuallab
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VMProvisioning/VirtualLab' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"description": "string",
"target": {
"id": 0,
"name": "string"
},
"count": 0,
"expirationTime": 0,
"vmPassword": {
"savedCredentials": {
"id": 0,
"name": "string"
},
"credentials": {
"name": "string",
"password": "string"
}
},
"labVMConfiguration": [
{
"name": "string",
"description": "string",
"expirationTime": 0,
"count": 0,
"userDetails": {
"name": "string",
"password": "string"
},
"target": {
"id": 0,
"name": "string"
},
"template": {
"vmName": "string",
"vmGUID": "string",
"operatingSystem": "WINDOWS",
"operatingSystemDisplayName": "string",
"hardDisks": {
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
},
"memory": 0,
"numCPUs": 0,
"numNICs": 0,
"vmSize": "string",
"createPublicIP": true,
"vmIOPS": 0,
"isoPath": "string",
"vmBackup": true,
"vmDisk": [
{
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
],
"network": [
{
"networkDisplayName": "string",
"network": "string",
"subnetId": "string",
"networkId": "string",
"destinationNetworks": [
"string"
],
"networkNames": [
"string"
]
}
],
"domainOptions": {
"domainName": "string",
"OUPath": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VMProvisioning/VirtualLab' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"description": "string",
"target": {
"id": 0,
"name": "string"
},
"count": 0,
"expirationTime": 0,
"vmPassword": {
"savedCredentials": {
"id": 0,
"name": "string"
},
"credentials": {
"name": "string",
"password": "string"
}
},
"labVMConfiguration": [
{
"name": "string",
"description": "string",
"expirationTime": 0,
"count": 0,
"userDetails": {
"name": "string",
"password": "string"
},
"target": {
"id": 0,
"name": "string"
},
"template": {
"vmName": "string",
"vmGUID": "string",
"operatingSystem": "WINDOWS",
"operatingSystemDisplayName": "string",
"hardDisks": {
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
},
"memory": 0,
"numCPUs": 0,
"numNICs": 0,
"vmSize": "string",
"createPublicIP": true,
"vmIOPS": 0,
"isoPath": "string",
"vmBackup": true,
"vmDisk": [
{
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
],
"network": [
{
"networkDisplayName": "string",
"network": "string",
"subnetId": "string",
"networkId": "string",
"destinationNetworks": [
"string"
],
"networkNames": [
"string"
]
}
],
"domainOptions": {
"domainName": "string",
"OUPath": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VMProvisioning/VirtualLab' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"description": "string",
"target": {
"id": 0,
"name": "string"
},
"count": 0,
"expirationTime": 0,
"vmPassword": {
"savedCredentials": {
"id": 0,
"name": "string"
},
"credentials": {
"name": "string",
"password": "string"
}
},
"labVMConfiguration": [
{
"name": "string",
"description": "string",
"expirationTime": 0,
"count": 0,
"userDetails": {
"name": "string",
"password": "string"
},
"target": {
"id": 0,
"name": "string"
},
"template": {
"vmName": "string",
"vmGUID": "string",
"operatingSystem": "WINDOWS",
"operatingSystemDisplayName": "string",
"hardDisks": {
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
},
"memory": 0,
"numCPUs": 0,
"numNICs": 0,
"vmSize": "string",
"createPublicIP": true,
"vmIOPS": 0,
"isoPath": "string",
"vmBackup": true,
"vmDisk": [
{
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
],
"network": [
{
"networkDisplayName": "string",
"network": "string",
"subnetId": "string",
"networkId": "string",
"destinationNetworks": [
"string"
],
"networkNames": [
"string"
]
}
],
"domainOptions": {
"domainName": "string",
"OUPath": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VMProvisioning/VirtualLab' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"description": "string",
"target": {
"id": 0,
"name": "string"
},
"count": 0,
"expirationTime": 0,
"vmPassword": {
"savedCredentials": {
"id": 0,
"name": "string"
},
"credentials": {
"name": "string",
"password": "string"
}
},
"labVMConfiguration": [
{
"name": "string",
"description": "string",
"expirationTime": 0,
"count": 0,
"userDetails": {
"name": "string",
"password": "string"
},
"target": {
"id": 0,
"name": "string"
},
"template": {
"vmName": "string",
"vmGUID": "string",
"operatingSystem": "WINDOWS",
"operatingSystemDisplayName": "string",
"hardDisks": {
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
},
"memory": 0,
"numCPUs": 0,
"numNICs": 0,
"vmSize": "string",
"createPublicIP": true,
"vmIOPS": 0,
"isoPath": "string",
"vmBackup": true,
"vmDisk": [
{
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
],
"network": [
{
"networkDisplayName": "string",
"network": "string",
"subnetId": "string",
"networkId": "string",
"destinationNetworks": [
"string"
],
"networkNames": [
"string"
]
}
],
"domainOptions": {
"domainName": "string",
"OUPath": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VMProvisioning/VirtualLab' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"description": "string",
"target": {
"id": 0,
"name": "string"
},
"count": 0,
"expirationTime": 0,
"vmPassword": {
"savedCredentials": {
"id": 0,
"name": "string"
},
"credentials": {
"name": "string",
"password": "string"
}
},
"labVMConfiguration": [
{
"name": "string",
"description": "string",
"expirationTime": 0,
"count": 0,
"userDetails": {
"name": "string",
"password": "string"
},
"target": {
"id": 0,
"name": "string"
},
"template": {
"vmName": "string",
"vmGUID": "string",
"operatingSystem": "WINDOWS",
"operatingSystemDisplayName": "string",
"hardDisks": {
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
},
"memory": 0,
"numCPUs": 0,
"numNICs": 0,
"vmSize": "string",
"createPublicIP": true,
"vmIOPS": 0,
"isoPath": "string",
"vmBackup": true,
"vmDisk": [
{
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
],
"network": [
{
"networkDisplayName": "string",
"network": "string",
"subnetId": "string",
"networkId": "string",
"destinationNetworks": [
"string"
],
"networkNames": [
"string"
]
}
],
"domainOptions": {
"domainName": "string",
"OUPath": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VMProvisioning/VirtualLab' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"description": "string",
"target": {
"id": 0,
"name": "string"
},
"count": 0,
"expirationTime": 0,
"vmPassword": {
"savedCredentials": {
"id": 0,
"name": "string"
},
"credentials": {
"name": "string",
"password": "string"
}
},
"labVMConfiguration": [
{
"name": "string",
"description": "string",
"expirationTime": 0,
"count": 0,
"userDetails": {
"name": "string",
"password": "string"
},
"target": {
"id": 0,
"name": "string"
},
"template": {
"vmName": "string",
"vmGUID": "string",
"operatingSystem": "WINDOWS",
"operatingSystemDisplayName": "string",
"hardDisks": {
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
},
"memory": 0,
"numCPUs": 0,
"numNICs": 0,
"vmSize": "string",
"createPublicIP": true,
"vmIOPS": 0,
"isoPath": "string",
"vmBackup": true,
"vmDisk": [
{
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
],
"network": [
{
"networkDisplayName": "string",
"network": "string",
"subnetId": "string",
"networkId": "string",
"destinationNetworks": [
"string"
],
"networkNames": [
"string"
]
}
],
"domainOptions": {
"domainName": "string",
"OUPath": "string"
}
}
]
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/VMProvisioning/VirtualLab' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"description": "string",
"target": {
"id": 0,
"name": "string"
},
"count": 0,
"expirationTime": 0,
"vmPassword": {
"savedCredentials": {
"id": 0,
"name": "string"
},
"credentials": {
"name": "string",
"password": "string"
}
},
"labVMConfiguration": [
{
"name": "string",
"description": "string",
"expirationTime": 0,
"count": 0,
"userDetails": {
"name": "string",
"password": "string"
},
"target": {
"id": 0,
"name": "string"
},
"template": {
"vmName": "string",
"vmGUID": "string",
"operatingSystem": "WINDOWS",
"operatingSystemDisplayName": "string",
"hardDisks": {
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
},
"memory": 0,
"numCPUs": 0,
"numNICs": 0,
"vmSize": "string",
"createPublicIP": true,
"vmIOPS": 0,
"isoPath": "string",
"vmBackup": true,
"vmDisk": [
{
"name": "string",
"snapshotId": "string",
"provisioningType": "THIN",
"diskSize": 0,
"diskType": "ISCSI",
"diskId": "string"
}
],
"network": [
{
"networkDisplayName": "string",
"network": "string",
"subnetId": "string",
"networkId": "string",
"destinationNetworks": [
"string"
],
"networkNames": [
"string"
]
}
],
"domainOptions": {
"domainName": "string",
"OUPath": "string"
}
}
]
}'