- About Veeam Plug-in for Nutanix AHV REST API
- Overview
- Changelog
- Prism Centrals
- getGet Collection of Nutanix AHV Prism Centrals
- postAdd New Nutanix AHV Prism Central
- getGet Prism Central Data
- putModify Nutanix AHV Prism Central Settings
- delRemove Nutanix AHV Prism Central
- postRescan Prism Central
- getGet Collection of Virtual Machines
- getGet Collection of Protection Domains
- getGet Collection of Volume Groups
- getGet Collection of Prism Central Categories
- Clusters
- getGet Collection of Clusters
- postAdd New Cluster
- getGet Cluster Data
- delRemove Cluster
- postInfrastructure Rescan for Cluster
- getGet Cluster Connection Settings
- putModify Cluster Settings
- getGet Collection of Virtual Machines
- getGet Collection of Protection Domains
- getGet Collection of Networks
- getGet Collection of Storage Containers
- getGet Collection of Cluster Hosts
- getGet Collection of Volume Groups in Cluster
- Jobs
- Restore Points
- Sessions
- Workers
Get Collection of Workers
The HTTP GET request to the /workers
endpoint retrieves a list of all workers configured in Veeam Plug-in for Nutanix AHV.
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 Plug-in 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 Plug-in for Nutanix AHV REST API Reference Overview, section Sort Parameters. |
OK
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 400
- 401
- 500
{- "offset": 0,
- "limit": 0,
- "totalCount": 0,
- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "configuration": {
- "name": "string",
- "description": "string",
- "clusterId": "string",
- "storageContainerId": "string",
- "maxConcurrentTasks": 0,
- "cpuCount": 1,
- "memoryGb": 1,
- "networkSettings": {
- "networks": [
- {
- "description": "string",
- "networkId": "string",
- "obtainIpAutomatically": true,
- "ipAddress": "string",
- "subnetMask": "string",
- "defaultGateway": "string"
}
], - "obtainDnsAutomatically": true,
- "dnsServers": [
- "string"
]
}, - "affinitySettings": {
- "enabled": true,
- "hostId": "string"
}
}, - "enabled": true,
- "status": "Unknown",
- "lastTestSession": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "vmId": "string"
}
]
}
Add Worker Configuration
The HTTP POST request to the /workers
endpoint creates a new worker configuration.
query Parameters
startTestSession | boolean Default: false Defines whether the worker will be tested (that is a worker VM will be deployed) after its configuration is created. |
Request Body schema: application/jsonrequired
Worker Configuration
name required | string Name of the worker. The maximum length of the name is 40 characters. The a-z, A-Z, 0-9, - characters are only supported. |
required | object (WorkerNetworkSettings) Specifies worker network settings. |
clusterId required | string Specifies the ID of a cluster where the worker will be deployed. |
maxConcurrentTasks required | integer <int32> >= 0 Specifies the maximum number or backup and restore operations the worker can handle in parallel. |
cpuCount required | integer <int32> >= 1 Specifies the number of vCPU allocated to the worker VM. |
memoryGb required | integer <int32> >= 1 Specifies the amount of memory allocated to the worker VM (in gigabytes). |
description | string or null Specifies a description of the worker. |
storageContainerId | string or null Specifies the ID of a storage container where worker VM disks will be stored. |
object or null (WorkerAffinitySettings) Specifies worker affinity settings. |
Created
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "name": "string",
- "description": "string",
- "clusterId": "string",
- "storageContainerId": "string",
- "maxConcurrentTasks": 0,
- "cpuCount": 1,
- "memoryGb": 1,
- "networkSettings": {
- "networks": [
- {
- "description": "string",
- "networkId": "string",
- "obtainIpAutomatically": true,
- "ipAddress": "string",
- "subnetMask": "string",
- "defaultGateway": "string"
}
], - "obtainDnsAutomatically": true,
- "dnsServers": [
- "string"
]
}, - "affinitySettings": {
- "enabled": true,
- "hostId": "string"
}
}
- 201
- 400
- 401
- 500
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
Get Worker Configuration
The HTTP GET request to the /workers/{id}
endpoint retrieves information on a worker with the specified ID.
path Parameters
id required | string <uuid> System ID assigned to a worker in Veeam Plug-in for Nutanix AHV. |
OK
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Worker not found
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 400
- 401
- 404
- 500
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "configuration": {
- "name": "string",
- "description": "string",
- "clusterId": "string",
- "storageContainerId": "string",
- "maxConcurrentTasks": 0,
- "cpuCount": 1,
- "memoryGb": 1,
- "networkSettings": {
- "networks": [
- {
- "description": "string",
- "networkId": "string",
- "obtainIpAutomatically": true,
- "ipAddress": "string",
- "subnetMask": "string",
- "defaultGateway": "string"
}
], - "obtainDnsAutomatically": true,
- "dnsServers": [
- "string"
]
}, - "affinitySettings": {
- "enabled": true,
- "hostId": "string"
}
}, - "enabled": true,
- "status": "Unknown",
- "lastTestSession": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "vmId": "string"
}
Remove Worker
The HTTP DELETE request to the /workers/{id}
endpoint removes a worker with the specified ID.
path Parameters
id required | string <uuid> System ID assigned to a worker in Veeam Plug-in for Nutanix AHV. |
Accepted
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Not Found. The worker specified in the request could not be found in the resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 202
- 400
- 401
- 404
- 500
{- "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459"
}
Get Worker
The HTTP GET request to the /worker/{id}/configuration
endpoint retrieves the configuration of a worker with the specified ID.
path Parameters
id required | string <uuid> System ID assigned to a worker in Veeam Plug-in for Nutanix AHV. |
OK
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Not Found. The worker specified in the request could not be found in the resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 200
- 400
- 401
- 404
- 500
{- "name": "string",
- "description": "string",
- "clusterId": "string",
- "storageContainerId": "string",
- "maxConcurrentTasks": 0,
- "cpuCount": 1,
- "memoryGb": 1,
- "networkSettings": {
- "networks": [
- {
- "description": "string",
- "networkId": "string",
- "obtainIpAutomatically": true,
- "ipAddress": "string",
- "subnetMask": "string",
- "defaultGateway": "string"
}
], - "obtainDnsAutomatically": true,
- "dnsServers": [
- "string"
]
}, - "affinitySettings": {
- "enabled": true,
- "hostId": "string"
}
}
Modify Worker Configuration
The HTTP PUT request to the /workers/{id}/configuration
endpoint updates the configuration of a worker with the specified ID.
path Parameters
id required | string <uuid> System ID assigned to a worker in Veeam Plug-in for Nutanix AHV. |
query Parameters
failActiveWorkerSessions | boolean Default: false Defines whether active worker sessions will be terminated if the configuration update requires powering off or redeploying the worker VM. |
startTestSession | boolean Default: false Defines whether the worker will be tested after it has been configured. |
Request Body schema: application/jsonrequired
Worker Update Configuration parameters
name required | string Name of the worker. The maximum length of the name is 40 characters. The a-z, A-Z, 0-9, - characters are only supported. |
required | object (WorkerNetworkSettings) Specifies worker network settings. |
clusterId required | string Specifies the ID of a cluster where the worker will be deployed. |
maxConcurrentTasks required | integer <int32> >= 0 Specifies the maximum number or backup and restore operations the worker can handle in parallel. |
cpuCount required | integer <int32> >= 1 Specifies the number of vCPU allocated to the worker VM. |
memoryGb required | integer <int32> >= 1 Specifies the amount of memory allocated to the worker VM (in gigabytes). |
description | string or null Specifies a description of the worker. |
storageContainerId | string or null Specifies the ID of a storage container where worker VM disks will be stored. |
object or null (WorkerAffinitySettings) Specifies worker affinity settings. |
Accepted
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Not Found. The worker specified in the request could not be found in the resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- Payload
- curl
- Python
- JavaScript
- C#
- Go
{- "name": "string",
- "description": "string",
- "clusterId": "string",
- "storageContainerId": "string",
- "maxConcurrentTasks": 0,
- "cpuCount": 1,
- "memoryGb": 1,
- "networkSettings": {
- "networks": [
- {
- "description": "string",
- "networkId": "string",
- "obtainIpAutomatically": true,
- "ipAddress": "string",
- "subnetMask": "string",
- "defaultGateway": "string"
}
], - "obtainDnsAutomatically": true,
- "dnsServers": [
- "string"
]
}, - "affinitySettings": {
- "enabled": true,
- "hostId": "string"
}
}
- 202
- 400
- 401
- 404
- 500
{- "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459"
}
Test Worker
The HTTP POST request to the /worker/{id}/test
endpoint starts testing a worker with the specified ID.
path Parameters
id required | string <uuid> System ID assigned to a worker in Veeam Plug-in for Nutanix AHV. |
Accepted
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Not Found. The worker specified in the request could not be found in the resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 202
- 400
- 401
- 404
- 500
{- "sessionId": "f6567dd8-e069-418e-8893-7d22fcf12459"
}
Enable Worker
The HTTP POST request to the /workers/{id}/enable
endpoint enables a disabled worker with the specified ID.
path Parameters
id required | string <uuid> System ID assigned to a worker in Veeam Plug-in for Nutanix AHV. |
No Content
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Not Found. The worker specified in the request could not be found in the resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 400
- 401
- 404
- 500
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "extensions": {
- "property1": { },
- "property2": { }
}
}
Disable Worker
The HTTP POST request to the /workers/{id}/disable
endpoint disables a worker with the specified ID.
path Parameters
id required | string <uuid> System ID assigned to a worker in Veeam Plug-in for Nutanix AHV. |
No Content
Bad Request. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Not Found. The worker specified in the request could not be found in the resource collection.
Internal Server Error. The request has been received but could not be completed because of an internal error at the server side.
- curl
- Python
- JavaScript
- C#
- Go
- 400
- 401
- 404
- 500
{- "type": "string",
- "title": "string",
- "status": 0,
- "detail": "string",
- "instance": "string",
- "extensions": {
- "property1": { },
- "property2": { }
}
}