Create a Company Replication Resource

In this article

    You can add a replication resource into Veeam Service Provider Console configuration.

    Request

    To create a replication resource, send the POST HTTPS request to the URL of the /tenants/{ID}/replicaResources resource.

    HTTP Request

    POST https://<hostname>:1281/v2/tenants/{ID}/replicaResources

    Request Headers

    The request header must contain the authorization token for the current logon session.

    Request Body

    In the request body, the client must send the following properties for the replication resource that must be added to Veeam Service Provider Console:

    • hardwarePlanId
    • isWanAccelerationEnabled
    • wanAcceleratorUid

    Response

    The server returns the following response to the client.

    Response Code

    A successfully completed operation returns response code 201 Created.

    Response Headers

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

    Header

    Description

    Content-length

    The length of the response body.

    Content-type

    The media type and syntax of the request body message: application/json; charset=utf-8

    Response Body

    In the response body, Veeam Service Provider Console returns a status and a message for an action.

    Example Create a Company Replication Resource

    The following example adds a new cloud repository into Veeam Service Provider Console configuration.

    Request:

    POST https://localhost:1281/v2/tenants/2/replicaResources

     

    Request Header:

    Content-Type: application/json

    Authorization: Bearer <Access-Token>

     

    Request Body:

    {

     "hardwarePlanId": "1332c8cc-c669-41a7-8d4d-a89a11c79083",

     "isWanAccelerationEnabled": true,

     "wanAcceleratorUid": "a2a38062-1263-4c61-84e6-7dac83e79bd5"

    }

     

    Response Code:

    201