Get Collection of Virtual Networks

You can get a list of all added virtual networks.

Request

To retrieve a representation of a collection of virtual networks, send the HTTP GET request to the /virtualNetworks endpoint.

HTTP Request

GET https://<hostname>/api/v2/cloudInfrastructure/virtualNetworks

Query Parameters

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

Query Parameter

Value

Description

SubscriptionId

string($uuid)

Returns only virtual networks available for the specified subscription.

RegionId

string

Returns only virtual networks that reside in the specified Azure region.

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 representation of the /virtualNetworks collection. The VirtualNetworkV2 schema is used for the collection representation.

Get Collection of Virtual NetworksExample

The following request returns a full list of added virtual networks.

Request:

GET https://51.11.247.127/api/v2/cloudInfrastructure/virtualNetworks

 

Request Header:

Authorization: Bearer <Access-Token>

 

Response:

200

 

Response Body:

{

 "offset": 0,

 "limit": 2,

 "totalCount": 186,

 "results": [

   {

     "id": "/subscriptions/1142bdc7-8797-42bc-aa23-9f1fc1411946/resourcegroups/tc-integrationtests-infrastructure/providers/microsoft.network/virtualnetworks/0bccde1d-7a37-487d-9178-c776a9624898",

     "name": "0bccde1d-7a37-487d-9178-c776a9624898",

     "regionName": "eastasia",

     "addressSpaces": [

       "10.4.15.0/24"

     ],

     "_links": {

       "subscription": {

         "href": "https://51.11.247.127/api/v2/cloudInfrastructure/subscriptions/1142bdc7-8797-42bc-aa23-9f1fc1411946"

       },

       "self": {

         "href": "https://51.11.247.127/api/v2/cloudInfrastructure/virtualNetworks/%2Fsubscriptions%2F1142bdc7-8797-42bc-aa23-9f1fc1411946%2Fresourcegroups%2Ftc-integrationtests-infrastructure%2Fproviders%2Fmicrosoft.network%2Fvirtualnetworks%2F0bccde1d-7a37-487d-9178-c776a9624898"

       }

     }

   },

   {

     "id": "/subscriptions/1142bdc7-8797-42bc-aa23-9f1fc1411946/resourcegroups/tc-integrationtests-infrastructure/providers/microsoft.network/virtualnetworks/2463c548-7a8c-4cf2-88f3-2b9703f34a42",

     "name": "2463c548-7a8c-4cf2-88f3-2b9703f34a42",

     "regionName": "eastasia",

     "addressSpaces": [

       "10.4.15.0/24"

     ],

     "_links": {

       "subscription": {

         "href": "https://51.11.247.127/api/v2/cloudInfrastructure/subscriptions/1142bdc7-8797-42bc-aa23-9f1fc1411946"

       },

       "self": {

         "href": "https://51.11.247.127/api/v2/cloudInfrastructure/virtualNetworks/%2Fsubscriptions%2F1142bdc7-8797-42bc-aa23-9f1fc1411946%2Fresourcegroups%2Ftc-integrationtests-infrastructure%2Fproviders%2Fmicrosoft.network%2Fvirtualnetworks%2F2463c548-7a8c-4cf2-88f3-2b9703f34a42"

       }

     }

   }

 ],

 "_links": {

   "self": {

     "href": "https://51.11.247.127/api/v2/cloudInfrastructure/virtualNetworks?offset=0&limit=2"

   },

   "next": {

     "href": "https://51.11.247.127/api/v2/cloudInfrastructure/virtualNetworks?offset=2&limit=2"

   }

 }

}

I want to report a typo

There is a misspelling right here:

 

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