Add Virtual Network
You can a virtual network to Veeam Backup for Microsoft Azure.
Request
To add a virtual network, send the HTTP POST request to the/virtualNetworks endpoint.
HTTP Request
POST https://<hostname>/api/v2/virtualNetworks |
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. |
Request Body
To add a new virtual network, send the following parameters in the request body.
Parameter | Type | Description |
---|---|---|
networkName | string | Name of the virtual network. |
region | string | Specifies a system ID assigned to an Azure region in the Veeam Backup for Microsoft Azure REST API. |
networkAddressSpace | string | IP address range of the created virtual network. |
subnetName | string | Specifies the subnet name. |
subnetAddressSpace | string | IP address range of the created subnetwork. |
Set the parameter values in the following format:
{ "networkName": "string", "region": "string", "networkAddressSpace": "string", "subnetName": "string", "subnetAddressSpace": "string" } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 202 (Accepted).
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 |
| 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 added virtual network. The VirtualNetworkV2 schema is used for the resource representation.
Example
The following request adds a new virtual network.
|