- About Veeam Backup & Replication REST API
- Overview
- How To
- Changelog
- Login
- Service
- Services
- Credentials
- getGet All Credentials
- postAdd Credentials Record
- getGet Credentials Record
- putEdit Credentials Record
- delRemove Credentials Record
- postChange Password
- postChange Linux Private Key
- postChange Linux Root Password
- getGet All Cloud Credentials
- postAdd Cloud Credentials Record
- postGet Verification Code
- postRegister Azure AD Application
- getGet Cloud Credentials Record
- putEdit Cloud Credentials Record
- delRemove Cloud Credentials Record
- postChange Secret Key
- postChange Certificate
- getGet All Helper Appliances
- postAdd or Edit Helper Appliance
- getGet Helper Appliance
- delRemove Helper Appliance
- Encryption
- Connection
- Cloud Browser
- Inventory Browser
- Traffic Rules
- General Options
- Configuration Backup
- Managed Servers
- Repositories
- getGet All Repositories
- postAdd Repository
- getGet All Repository States
- getGet Repository
- putEdit Repository
- delRemove Repository
- getGet All Scale-Out Backup Repositories
- postAdd Scale-Out Backup Repository
- getGet Scale-Out Backup Repository
- putEdit Scale-Out Backup Repository
- delRemove Scale-Out Backup Repository
- postEnable Sealed Mode
- postDisable Sealed Mode
- postEnable Maintenance Mode
- postDisable Maintenance Mode
- Proxies
- Jobs
- Backups
- Backup Objects
- Object Restore Points
- Restore
- Sessions
- Agents
- Automation
- postImport Jobs
- postExport Jobs
- postImport Credentials
- postExport Credentials
- postImport Cloud Credentials
- postExport Cloud Credentials
- postImport Proxies
- postExport Proxies
- postImport Servers
- postExport Servers
- postImport Repositories
- postExport Repositories
- postImport Encryption Passwords
- postExport Encryption Passwords
- getGet All Automation Sessions
- getGet Automation Session
- getGet Automation Session Logs
- postStop Automation Session
The Proxies section defines paths and operations for managing backup proxies.
In the current version, the REST API supports VMware backup proxies only.
Get All Proxies
The HTTP GET request to the /api/v1/backupInfrastructure/proxies
path allows you to get an array of all backup proxies that are added to the backup infrastructure.
query Parameters
skip | integer <int32> Number of proxies to skip. |
limit | integer <int32> Maximum number of proxies to return. |
orderColumn | string (EProxiesFiltersOrderColumn) Sorts proxies by one of the proxy parameters. |
orderAsc | boolean Sorts proxies in the ascending order by the |
nameFilter | string Filters proxies by the |
typeFilter | string (EProxyType) Filters proxies by proxy type. |
hostIdFilter | string <uuid> Filters proxies by ID of the backup server. |
header Parameters
x-api-version required | string Default: 1.1-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
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
- 401
- 403
- 500
{- "data": [
- {
- "server": {
- "transportMode": "virtualAppliance",
- "hostId": "535b5414-788d-4720-a53a-ecc830d2589b",
- "failoverToNetwork": true,
- "hostToProxyEncryption": false,
- "connectedDatastores": {
- "autoSelect": true,
- "datastores": [ ]
}, - "maxTaskCount": 2
}, - "type": "ViProxy",
- "id": "0be53088-d516-4734-a956-a8093a568876",
- "name": "172.17.53.67",
- "description": "Created by TECH\\sheila.d.cory"
}, - {
- "server": {
- "transportMode": "auto",
- "hostId": "6745a759-2205-4cd2-b172-8ec8f7e60ef8",
- "failoverToNetwork": true,
- "hostToProxyEncryption": false,
- "connectedDatastores": {
- "autoSelect": true,
- "datastores": [ ]
}, - "maxTaskCount": 2
}, - "type": "ViProxy",
- "id": "18b661c1-d9dc-4233-90a0-7e7b10dc2d09",
- "name": "VMware Backup Proxy",
- "description": "Created by Veeam Backup & Replication"
}
], - "pagination": {
- "total": 2,
- "count": 2,
- "skip": 0,
- "limit": 200
}
}
Add Proxy
The HTTP POST request to the /api/v1/backupInfrastructure/proxies
path allows you to add a proxy to the backup infrastructure.
header Parameters
x-api-version required | string Default: 1.1-rev0 Version and revision of the client REST API. Must be in the following format: |
Request Body schema: application/jsonrequired
description required | string Description of the backup proxy. |
type required | string (EProxyType) Type of the backup proxy. |
required | object (ProxyServerSettingsModel) Server settings for the backup proxy. |
Infrastructure session has been created to add the proxy. To check the progress, track the session state
.
Bad request. This error is related to POST/PUT requests. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
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
{- "type": "ViProxy",
- "name": "proxy01.tech.local",
- "description": "Created by TECH\\sheila.d.cory",
- "server": {
- "transportMode": "auto",
- "hostId": "080b9a63-56f3-49e2-9b06-56fc252de34c",
- "failoverToNetwork": true,
- "hostToProxyEncryption": false,
- "connectedDatastores": {
- "autoSelect": false,
- "datastores": [
- {
- "datastore": {
- "type": "Datastore",
- "hostName": "vcenter01.tech.local",
- "name": "esx04-ds1",
- "objectId": "datastore-78098"
}, - "vmCount": 98
}, - {
- "datastore": {
- "type": "Datastore",
- "hostName": "vcenter01.tech.local",
- "name": "esx04-ds2",
- "objectId": "datastore-94394"
}, - "vmCount": 93
}
]
}, - "maxTaskCount": 2
}
}
- 201
- 400
- 401
- 403
- 500
{- "sessionType": "Infrastructure",
- "state": "Working",
- "id": "59f85a1e-2016-4d08-aea5-2676a03d548c",
- "name": "Infrastructure Item Saving",
- "activityId": "59f85a1e-2016-4d08-aea5-2676a03d548c",
- "creationTime": "2022-01-28T19:48:43.117+01:00",
- "endTime": null,
- "progressPercent": 0,
- "result": null,
- "resourceId": null,
- "resourceReference": null,
- "parentSessionId": null,
- "usn": 0
}
Get Proxy
The HTTP GET request to the /api/v1/backupInfrastructure/proxies/{id}
path allows you to get a backup proxy that has the specified id
.
path Parameters
id required | string <uuid> ID of the backup proxy. |
header Parameters
x-api-version required | string Default: 1.1-rev0 Version and revision of the client REST API. Must be in the following format: |
OK
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
Not found. No object was found with the path parameter specified in the request.
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
- 401
- 403
- 404
- 500
{- "server": {
- "transportMode": "auto",
- "hostId": "6745a759-2205-4cd2-b172-8ec8f7e60ef8",
- "failoverToNetwork": true,
- "hostToProxyEncryption": false,
- "connectedDatastores": {
- "autoSelect": true,
- "datastores": [ ]
}, - "maxTaskCount": 2
}, - "type": "ViProxy",
- "id": "18b661c1-d9dc-4233-90a0-7e7b10dc2d09",
- "name": "VMware Backup Proxy",
- "description": "Created by Veeam Backup & Replication"
}
Edit Proxy
The HTTP PUT request to the /api/v1/backupInfrastructure/proxies/{id}
path allows you to edit a backup proxy that has the specified id
.
path Parameters
id required | string <uuid> ID of the backup proxy. |
header Parameters
x-api-version required | string Default: 1.1-rev0 Version and revision of the client REST API. Must be in the following format: |
Request Body schema: application/jsonrequired
id required | string <uuid> ID of the backup proxy. |
description required | string Description of the backup proxy. |
name required | string Name of the backup proxy. |
type required | string (EProxyType) Type of the backup proxy. |
required | object (ProxyServerSettingsModel) Server settings for the backup proxy. |
Infrastructure session has been created to edit the proxy. To check the progress, track the session state
.
Bad request. This error is related to POST/PUT requests. The request body is malformed, incomplete or otherwise invalid.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
Not found. No object was found with the path parameter specified in the request.
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
{- "server": {
- "transportMode": "network",
- "hostId": "6745a759-2205-4cd2-b172-8ec8f7e60ef8",
- "failoverToNetwork": false,
- "hostToProxyEncryption": false,
- "connectedDatastores": {
- "autoSelect": true,
- "datastores": [ ]
}, - "maxTaskCount": 2
}, - "trafficRules": {
- "rules": [
- {
- "timePeriod": "Anytime",
- "name": "Internet",
- "encryption": true,
- "throttling": false
}
]
}, - "type": "ViProxy",
- "id": "18b661c1-d9dc-4233-90a0-7e7b10dc2d09",
- "name": "VMware Backup Proxy",
- "description": "Created by Veeam Backup & Replication"
}
- 201
- 400
- 401
- 403
- 404
- 500
{- "sessionType": "Infrastructure",
- "state": "Working",
- "id": "e81a72de-9b0a-4f4a-a451-0d0ece4c54b2",
- "name": "Infrastructure Item Saving",
- "activityId": "e81a72de-9b0a-4f4a-a451-0d0ece4c54b2",
- "creationTime": "2022-01-28T20:18:47.563+01:00",
- "endTime": null,
- "progressPercent": 0,
- "result": null,
- "resourceId": null,
- "resourceReference": null,
- "parentSessionId": null,
- "usn": 0
}
Remove Proxy
The HTTP DELETE request to the /api/v1/backupInfrastructure/proxies/{id}
path allows you to remove a backup proxy that has the specified id
from the backup infrastructure.
path Parameters
id required | string <uuid> ID of the backup proxy. |
header Parameters
x-api-version required | string Default: 1.1-rev0 Version and revision of the client REST API. Must be in the following format: |
Removed.
Unauthorized. The authorization header has been expected but not found (or found but is expired).
Forbidden. The user sending the request does not have adequate privileges to access one or more objects specified in the request.
Not found. No object was found with the path parameter specified in the request.
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
- 204
- 401
- 403
- 404
- 500
{ }