Virtual Machines

The /virtualMachines resource collection represents all VMs in the Nutanix AHV environment that can be protected by Veeam Backup for Nutanix AHV.

Get Virtual Machines Job Info

The HTTP GET request to the /virtualMachines/jobInfo endpoint retrieves a list of all VMs in the Nutanix AHV environment and number of backup and snapshot jobs protecting each VM.

SecurityBearer
Request
query Parameters
offset
integer <int32> >= 0
Default: 0

Excludes from a response the first N items of a resource collection.

limit
integer <int32> >= -1
Default: 100

Specifies the maximum number of items of a resource collection to return in a response.

write-only
Array of objects or null (FilterParameter)

Specifies the criteria for items to be returned in a response. For more information, see the Veeam Backup for Nutanix AHV REST API Reference Overview, section Filter Parameters.

write-only
Array of objects or null (SortParameter)

Specifies the order of items in the response. For more information, see the Veeam Backup for Nutanix AHV REST API Reference Overview, section Sort Parameters.

Responses
200

OK

400

Bad Request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending a request does not have adequate privileges to access one or more objects specified in the request

500

Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.

get/api/v7/virtualMachines/jobInfo
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "results": [
    ]
}

Get VM Jobs

The HTTP GET request to the /virtualMachines/{clusterId}/{vmId}/jobs endpoint retrieves a list of all backup and snapshot jobs of a VM with the specified ID.

SecurityBearer
Request
path Parameters
clusterId
required
string

Specifies the system ID assigned to a cluster in the Nutanix AHV environment.

vmId
required
string

Specifies the system ID assigned to a VM in the Nutanix AHV environment.

query Parameters
offset
integer <int32> >= 0
Default: 0

Excludes from a response the first N items of a resource collection.

limit
integer <int32> >= -1
Default: 100

Specifies the maximum number of items of a resource collection to return in a response.

write-only
Array of objects or null (FilterParameter)

Specifies the criteria for items to be returned in a response. For more information, see the Veeam Backup for Nutanix AHV REST API Reference Overview, section Filter Parameters.

write-only
Array of objects or null (SortParameter)

Specifies the order of items in the response. For more information, see the Veeam Backup for Nutanix AHV REST API Reference Overview, section Sort Parameters.

Responses
200

OK

400

Bad Request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending a request does not have adequate privileges to access one or more objects specified in the request

500

Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.

get/api/v7/virtualMachines/{clusterId}/{vmId}/jobs
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "totalCount": 0,
  • "results": [
    ]
}

Protect VMs

The HTTP POST request to the /virtualMachines/addToJob endpoint allows you to include resources with the specified IDs into the backup scope.

SecurityBearer
Request
Request Body schema: application/json
required
required
Array of objects

Virtual machines to be included into the job.

jobId
required
string

System ID assigned to the job that will protect the resources. PD snapshot jobs are not supported.

Responses
204

No Content

400

Bad Request. The request body is malformed, incomplete or otherwise invalid.

401

Unauthorized. The authorization header has been expected but not found (or found but is expired).

403

Forbidden. The user sending a request does not have adequate privileges to access one or more objects specified in the request

500

Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.

post/api/v7/virtualMachines/addToJob
Request samples
application/json
{
  • "objects": [
    ],
  • "jobId": "string"
}
Response samples
application/problem+json
{
  • "type": "string",
  • "title": "string",
  • "status": 0,
  • "detail": "string",
  • "instance": "string",
  • "extensions": {
    }
}

Document updated 9/03/2025

Page content applies to build 12.7.1.12