Inventory Browser

The Inventory Browser section defines paths and operations for retrieving virtualization servers and their virtual infrastructure objects (data centers, clusters, hosts, resource pools, vApps, VMs and so on).

NOTE
In this version, you can browse VMware vSphere and VMware Cloud Director objects only.

Get All VMware vSphere ServersDeprecated

The HTTP GET request to the /api/v1/inventory/vmware/hosts path allows you to get an array of all VMware vSphere servers added to the backup infrastructure.

Available to: Veeam Backup Administrator.

SecurityBearer
Request
query Parameters
skip
integer <int32>

Number of VMware vSphere servers to skip.

limit
integer <int32>

Maximum number of VMware vSphere servers to return.

orderColumn
string (EViRootFiltersOrderColumn)

Sorts VMware vSphere servers by one of the VMware vSphere server parameters.

Enum: "Name" "Type"
orderAsc
boolean

Sorts VMware vSphere servers in the ascending order by the orderColumn parameter.

nameFilter
string

Filters VMware vSphere servers by the nameFilter pattern. The pattern can match any VMware vSphere server parameter. To substitute one or more characters, use the asterisk (*) character at the beginning and/or at the end.

header Parameters
x-api-version
required
string
Default: 1.1-rev1

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Responses
200

OK

401

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

403

Forbidden. The user sending the 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/v1/inventory/vmware/hosts
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Get VMware vSphere Server ObjectsDeprecated

The HTTP GET request to the /api/v1/inventory/vmware/hosts/{name} path allows you to get an array of virtual infrastructure objects of the VMware vSphere server that has the specified name.

Available to: Veeam Backup Administrator.

SecurityBearer
Request
path Parameters
name
required
string

Name of the VMware vSphere server.

query Parameters
skip
integer <int32>

Number of objects to skip.

limit
integer <int32>

Maximum number of objects to return.

orderColumn
string (EvCentersInventoryFiltersOrderColumn)

Sorts objects by one of the object parameters.

Enum: "Name" "ObjectId" "Type"
orderAsc
boolean

Sorts objects in the ascending order by the orderColumn parameter.

objectIdFilter
string

Filters objects by object ID.

hierarchyTypeFilter
string (EHierarchyType)

Filters objects by hierarchy type.

Enum: "HostsAndClusters" "DatastoresAndVms" "HostsAndDatastores" "VmsAndTemplates" "VmsAndTags" "Network"
nameFilter
string

Filters objects by the nameFilter pattern. The pattern can match any object parameter. To substitute one or more characters, use the asterisk (*) character at the beginning, at the end or both.

typeFilter
string (EVmwareInventoryType)

Filters objects by virtual infrastructure type.

Enum: "Unknown" "VirtualMachine" "vCenterServer" "Datacenter" "Cluster" "Host" "ResourcePool" "Folder" "Datastore" "DatastoreCluster" "StoragePolicy" "Template" "ComputeResource" "VirtualApp" "Tag" "Category" "Multitag" "Network" "DVSNetwork"
parentContainerNameFilter
string

Filters objects by name of the parent container.

header Parameters
x-api-version
required
string
Default: 1.1-rev1

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Responses
200

OK

401

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

403

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

404

Not found. No object was found with the path parameter 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/v1/inventory/vmware/hosts/{name}
Request samples
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    }
}

Get All Servers

The HTTP POST request to the /api/v1/inventory path allows you to get an array of all servers and hosts added to the backup infrastructure.

TIP
To filter servers by type, use the following possible values: VCenterServer, Folder, Host, CloudDirectorServer. For details, see request samples.

Available to: Veeam Backup Administrator.

SecurityBearer
Request
header Parameters
x-api-version
required
string
Default: 1.1-rev1

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
object (PaginationFilter)

Pagination settings.

object (FilterExpressionModel)

Filter settings.

object (SortExpressionModel)

Sorting settings.

hierarchyType
string

Hierarchy type. Possible values:

  • For VMware VSphere: HostsAndClusters, DatastoresAndVms, HostsAndDatastores, VmsAndTemplates, VmsAndTags, Network
  • For VMware Cloud Director: VAppsAndVms, Network, StoragePolicies, Datastores

Responses
200

OK

401

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

403

Forbidden. The user sending the 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/v1/inventory
Request samples
application/json
{
  • "filter": {
    },
  • "sorting": {
    }
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    },
  • "hierarchyType": null
}

Get Inventory Objects

The HTTP POST request to the /api/v1/inventory/{hostname} path allows you to get an array of inventory objects of a virtualization server (or host) that has the specified hostname.

Available to: Veeam Backup Administrator.

SecurityBearer
Request
path Parameters
hostname
required
string

Name of the server.

query Parameters
resetCache
boolean

If true, the cache will be reset for this request. Resetting the cache slows down request processing but it allows you to get up-to-date data.

header Parameters
x-api-version
required
string
Default: 1.1-rev1

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Request Body schema: application/json
object (PaginationFilter)

Pagination settings.

object (FilterExpressionModel)

Filter settings.

object (SortExpressionModel)

Sorting settings.

hierarchyType
string

Hierarchy type. Possible values:

  • For VMware VSphere: HostsAndClusters, DatastoresAndVms, HostsAndDatastores, VmsAndTemplates, VmsAndTags, Network
  • For VMware Cloud Director: VAppsAndVms, Network, StoragePolicies, Datastores

Responses
200

OK

401

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

403

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

404

Not found. No object was found with the path parameter 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/v1/inventory/{hostname}
Request samples
application/json
{
  • "filter": {
    },
  • "sorting": {
    }
}
Response samples
application/json
{
  • "data": [
    ],
  • "pagination": {
    },
  • "hierarchyType": "string"
}

Rescan Inventory Objects

The HTTP POST request to the /api/v1/inventory/{hostname}/rescan path allows you to rescan inventory objects of a virtualization server (or host) that has the specified hostname.

Available to: Veeam Backup Administrator.

SecurityBearer
Request
path Parameters
hostname
required
string

Name of the server.

header Parameters
x-api-version
required
string
Default: 1.1-rev1

Version and revision of the client REST API. Must be in the following format: <version>-<revision>.

Responses
201

A HierarchyRescan task has been started. To check the progress, track the task state.

401

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

403

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

404

Not found. No object was found with the path parameter 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/v1/inventory/{hostname}/rescan
Request samples
Response samples
application/json
{
  • "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  • "type": "Common",
  • "name": "string",
  • "state": "Starting",
  • "progressPercent": 0,
  • "creationTime": "2019-08-24T14:15:22Z",
  • "endTime": "2019-08-24T14:15:22Z",
  • "result": "None",
  • "additionalInfo": {
    }
}