Skip to main content

Perform Virtual Machine Operations

Select

SaaS
Customer Managed

Perform VM operations :- PowerOn, PowerOff, Delete, Reset, Edit Owners, Edit Creators

Request Body

VMs list request body

  • operation VMOperationEnum

    Possible values: [CREATE = 0, RESTART = 1, SHUTDOWN = 2, SNAPSHOT = 3, RESTORE_SNAP = 4, DELETE = 5, CLONE = 6, PAUSE = 7, POWERON = 10, EDIT = 11, VIEW_SNAPSHOTS = 12, DELETE_SNAP_VM = 15, RENEW_VM = 17, REFRESH_VM = 20, EDIT_OWNERS = 21, POWER_OFF = 29, EDIT_CREATOR = 30, REFRESH = 31, LIST_OWNERS = 32, CREATE_LAB = 34]

  • virtualMachines object[]
  • GUID string

    GUID of virtual machine

  • owners string[]

    list of owners for the virtual machine

  • creator string

    creator of virtual machine

  • snapOption object[]
  • name string

    Name of snapshot

  • desc string

    Description of snapshot

  • id string

    ID of snapshot

Responses

OK


Schema
  • errorMessage string
  • errorCode int32
POST /vmprovisioning/virtualmachines/action    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body
{
"operation": "CREATE = 0",
"virtualMachines": [
{
"GUID": "string",
"owners": [
"string"
],
"creator": "string",
"snapOption": [
{
"name": "string",
"desc": "string",
"id": "string"
}
]
}
]
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/VMProvisioning/VirtualMachines/Action' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operation": "CREATE = 0",
"virtualMachines": [
{
"GUID": "string",
"owners": [
"string"
],
"creator": "string",
"snapOption": [
{
"name": "string",
"desc": "string",
"id": "string"
}
]
}
]
}'