Get Azure VMs Consuming License Units

You can get a list of Azure VMs consuming license units.

Request

To retrieve information on the protected Azure VMs, send the HTTP GET request to the /license/resources endpoint.

HTTP Request

GET https://<hostname>/api/v2/license/resources

Query Parameters

To control the amount and order of data in the response, you can use Offset, Limit, SearchPattern and the following query parameters:

Request Headers

The request contains the following headers.

Header

Required

Value

Description

Authorization

Required

Bearer <Access-Token>

Authenticates a client who sends the request to the server. Must contain the access token for the current logon session in the Bearer <Access-Token> format.

Response

The server returns the following response to the client.

Response Codes

A successfully completed operation returns a response code 200 (OK).

Response Headers

The response to this request contains the following headers. The response may also include additional standard HTTP headers.

Header

Value

Description

Content-length

integer

Identifies the length of the response body message, in bytes.

Content-type

  • application/json
  • application/problem+json

Identifies the media type of the response body message.

Response Body

In the response body, Veeam Backup for Microsoft Azure returns a list of protected Azure VMs. The LicenseInfoV2 schema is used for the resource representation.

Get Azure VMs Consuming License UnitsExample

The following request returns all Azure VMs currently consuming license units.

Request:

GET https://51.11.247.127/api/v2/license/resources

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200

 

Response Body:

{

 "offset": 0,

 "limit": 200,

 "totalCount": 4,

 "results": [

   {

     "id": "13684c0c-ad74-4d6c-bb40-ae5525dd5556",

     "name": "000000000000000y",

     "resourceType": "Virtual Machine",

     "licensedState": "Licensed",

     "lastBackupTime": "2020-11-23T21:00:17.380377Z",

     "cost": 1

   },

   {

     "id": "80d63cb7-c9a1-4645-a8f4-2729f4406b62",

     "name": "backup-test",

     "resourceType": "Virtual Machine",

     "licensedState": "Licensed",

     "lastBackupTime": "2020-11-23T21:00:15.630377Z",

     "cost": 1

   },

   {

     "id": "0ae46448-9e7a-48f4-8e33-b63089c5e242",

     "name": "brt",

     "resourceType": "Virtual Machine",

     "licensedState": "Licensed",

     "lastBackupTime": "2020-11-23T21:00:17.411613Z",

     "cost": 1

   },

   {

     "id": "7fd349c8-a759-4b6e-aa37-629a470769c1",

     "name": "test",

     "resourceType": "Virtual Machine",

     "licensedState": "Licensed",

     "lastBackupTime": "2020-11-23T21:00:17.255376Z",

     "cost": 1

   }

 ],

 "_links": {

   "self": {

     "href": "https://51.11.247.127/api/v2/license/resources?offset=0&limit=200"

   }

 }

}

I want to report a typo

There is a misspelling right here:

 

I want to let the Veeam Documentation Team know about that.