Modify Virtual Machine Details
Select
SaaS
Customer Managed
Modify the properties of an existing virtual machine
Path Parameters
- vmUUID string required
The vmUUID can be obtained from GET /virtualMachines UUID property
- application/json
Request Body
plan object
security object
requirePasskeyForRestore object
authKeyRestore object
Responses
- 200
- 401
- 404
Success
Unauthorized
Requested Details not found
PUT /v4/virtualmachines/:vmuuid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/VirtualMachines/:vmUUID' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"plan": {
"id": 0,
"name": "string"
},
"security": {
"associations": [
{
"user": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"useGroup": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"role": {
"id": 0,
"name": "string"
}
}
],
"permissions": [
{
"permissionId": 0,
"permissionName": "string",
"categoryId": 0,
"categoryName": "string",
"type": "ALL_CATEGORIES",
"exclude": true
}
],
"owners": [
{
"userId": 0,
"userName": "string",
"userGroupId": 0,
"userGroupName": "string"
}
]
},
"requirePasskeyForRestore": {
"currentPassKey": "string",
"newPassKey": "string",
"confirmPassKey": "string",
"operationType": "CREATE"
},
"authKeyRestore": {
"passKey": "string",
"authOpType": true,
"expirationTime": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/VirtualMachines/:vmUUID' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"plan": {
"id": 0,
"name": "string"
},
"security": {
"associations": [
{
"user": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"useGroup": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"role": {
"id": 0,
"name": "string"
}
}
],
"permissions": [
{
"permissionId": 0,
"permissionName": "string",
"categoryId": 0,
"categoryName": "string",
"type": "ALL_CATEGORIES",
"exclude": true
}
],
"owners": [
{
"userId": 0,
"userName": "string",
"userGroupId": 0,
"userGroupName": "string"
}
]
},
"requirePasskeyForRestore": {
"currentPassKey": "string",
"newPassKey": "string",
"confirmPassKey": "string",
"operationType": "CREATE"
},
"authKeyRestore": {
"passKey": "string",
"authOpType": true,
"expirationTime": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/VirtualMachines/:vmUUID' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"plan": {
"id": 0,
"name": "string"
},
"security": {
"associations": [
{
"user": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"useGroup": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"role": {
"id": 0,
"name": "string"
}
}
],
"permissions": [
{
"permissionId": 0,
"permissionName": "string",
"categoryId": 0,
"categoryName": "string",
"type": "ALL_CATEGORIES",
"exclude": true
}
],
"owners": [
{
"userId": 0,
"userName": "string",
"userGroupId": 0,
"userGroupName": "string"
}
]
},
"requirePasskeyForRestore": {
"currentPassKey": "string",
"newPassKey": "string",
"confirmPassKey": "string",
"operationType": "CREATE"
},
"authKeyRestore": {
"passKey": "string",
"authOpType": true,
"expirationTime": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/VirtualMachines/:vmUUID' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"plan": {
"id": 0,
"name": "string"
},
"security": {
"associations": [
{
"user": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"useGroup": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"role": {
"id": 0,
"name": "string"
}
}
],
"permissions": [
{
"permissionId": 0,
"permissionName": "string",
"categoryId": 0,
"categoryName": "string",
"type": "ALL_CATEGORIES",
"exclude": true
}
],
"owners": [
{
"userId": 0,
"userName": "string",
"userGroupId": 0,
"userGroupName": "string"
}
]
},
"requirePasskeyForRestore": {
"currentPassKey": "string",
"newPassKey": "string",
"confirmPassKey": "string",
"operationType": "CREATE"
},
"authKeyRestore": {
"passKey": "string",
"authOpType": true,
"expirationTime": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/VirtualMachines/:vmUUID' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"plan": {
"id": 0,
"name": "string"
},
"security": {
"associations": [
{
"user": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"useGroup": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"role": {
"id": 0,
"name": "string"
}
}
],
"permissions": [
{
"permissionId": 0,
"permissionName": "string",
"categoryId": 0,
"categoryName": "string",
"type": "ALL_CATEGORIES",
"exclude": true
}
],
"owners": [
{
"userId": 0,
"userName": "string",
"userGroupId": 0,
"userGroupName": "string"
}
]
},
"requirePasskeyForRestore": {
"currentPassKey": "string",
"newPassKey": "string",
"confirmPassKey": "string",
"operationType": "CREATE"
},
"authKeyRestore": {
"passKey": "string",
"authOpType": true,
"expirationTime": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/VirtualMachines/:vmUUID' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"plan": {
"id": 0,
"name": "string"
},
"security": {
"associations": [
{
"user": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"useGroup": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"role": {
"id": 0,
"name": "string"
}
}
],
"permissions": [
{
"permissionId": 0,
"permissionName": "string",
"categoryId": 0,
"categoryName": "string",
"type": "ALL_CATEGORIES",
"exclude": true
}
],
"owners": [
{
"userId": 0,
"userName": "string",
"userGroupId": 0,
"userGroupName": "string"
}
]
},
"requirePasskeyForRestore": {
"currentPassKey": "string",
"newPassKey": "string",
"confirmPassKey": "string",
"operationType": "CREATE"
},
"authKeyRestore": {
"passKey": "string",
"authOpType": true,
"expirationTime": 0
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/VirtualMachines/:vmUUID' \
-H 'Content-Type: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"plan": {
"id": 0,
"name": "string"
},
"security": {
"associations": [
{
"user": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"useGroup": {
"id": 0,
"name": "string",
"company": {
"id": 0,
"name": "string"
}
},
"role": {
"id": 0,
"name": "string"
}
}
],
"permissions": [
{
"permissionId": 0,
"permissionName": "string",
"categoryId": 0,
"categoryName": "string",
"type": "ALL_CATEGORIES",
"exclude": true
}
],
"owners": [
{
"userId": 0,
"userName": "string",
"userGroupId": 0,
"userGroupName": "string"
}
]
},
"requirePasskeyForRestore": {
"currentPassKey": "string",
"newPassKey": "string",
"confirmPassKey": "string",
"operationType": "CREATE"
},
"authKeyRestore": {
"passKey": "string",
"authOpType": true,
"expirationTime": 0
}
}'