Veeam Availability Orchestrator 3.0
REST API Reference
Related documents

Get VMs Added to VM Group in Plan

You can get a list of all VMs added to a VM group with the specified ID included in a specific plan.

Request

To retrieve a representation of a collection of VMs added to a specific VM group, send the HTTP GET request to the /Groups/{groupId}/Vms endpoint.

Tip

VAO entity can be edited by another user while you are working with the VAO REST API. To define whether to include changes of the current editing session to the response, specify the includeEditingChanges parameter after the endpoint of the request URL: ?includeEditingChanges=true/false.

HTTP Request

GET https://<hostname>:<port>/api/v3/Plans/{planId}/Groups/{groupId}/Vms

Request Headers

The request contains the following headers.

Header

Required/Optional

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.

Accept

Optional

  • application/xml
  • text/json
  • application/json

Specifies a media type of representation that is required in the response message. If the requested type is not supported, the server will return the response in the application/json media type.

Response

The server returns the following response to the client.

Response Code

A successfully completed operation returns 200 response code.

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/xml
  • text/json
  • application/json

Identifies the media type of the response body message.

Response Body

In the response body, VAO returns a representation of the /Vms collection for the specified VM group. The FailoverVmModel schema is used for the collection representation.

Get VMs Added to VM Group in PlanExample

The following request returns a list of VMs added in a VM group with the ID b0ed96ba-be18-4d3a-a658-613c8550e966 in a plan with the ID cd47d232-44f6-4c1c-84e2-8033049a5cfa.

Request:

GET https://uwin2012r2.n.local:9898/api/v3/Plans/cd47d232-44f6-4c1c-84e2-8033049a5cfa/Groups/b0ed96ba-be18-4d3a-a658-613c8550e966/Vms

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200

 

Response Body:

{

 "total": 5,

 "data": [

   {

     "planId": "cd47d232-44f6-4c1c-84e2-8033049a5cfa",

     "id": "4a3ec517-6923-4288-ab56-0620dda5663e",

     "name": "win12-10-1",

     "number": 0,

     "isCritical": false,

     "voId": 486,

     "sourceMissing": false

   },

   {

     "planId": "cd47d232-44f6-4c1c-84e2-8033049a5cfa",

     "id": "6dda5b80-d3c9-43fd-9f1d-0b6537ce40cf",

     "name": "win12-10-2",

     "number": 1,

     "isCritical": false,

     "voId": 487,

     "sourceMissing": false

   },

   {

     "planId": "cd47d232-44f6-4c1c-84e2-8033049a5cfa",

     "id": "98054c01-f0a1-4653-abf1-fd197ceba9e4",

     "name": "win12-10-3",

     "number": 2,

     "isCritical": false,

     "voId": 488,

     "sourceMissing": false

   },

   {

     "planId": "cd47d232-44f6-4c1c-84e2-8033049a5cfa",

     "id": "e14e6292-5063-47c1-b41c-3ca1e3abcc6e",

     "name": "win12-10-4",

     "number": 3,

     "isCritical": false,

     "voId": 489,

     "sourceMissing": false

   },

   {

     "planId": "cd47d232-44f6-4c1c-84e2-8033049a5cfa",

     "id": "ff54d6b7-0c1b-4428-bd9d-ac7a2fc04f40",

     "name": "win12-10-5",

     "number": 4,

     "isCritical": false,

     "voId": 490,

     "sourceMissing": false

   }

 ]

}

}

This Document Help Center
User GuideGroup Management GuideREST API ReferenceVeeam Backup & Replication DocumentationVeeam ONE Documentation
I want to report a typo

There is a misspelling right here:

 

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