Create a Managed Client

In this article

    You can assign a company to a reseller with a specified ID.

    Request

    To create a managed client, send the POST HTTPS request to the URL of the /resellers/{ID}/managedClient resource.

    HTTP Request

    POST https://<hostname>:1281/v2/resellers/{ID}/managedClient

    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 properties for a company that must be assigned to a specific reseller. See the Properties section for the list of properties and their possible values.

    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 Managed Client

    The following example assigns a company to a reseller with ID 2.

    Request:

    POST https://localhost:1281/v2/resellers/2/managedClients

     

    Request Header:

    Content-Type: application/json

    Authorization: Bearer <Access-Token>

     

    Request Body:

     {

       "tenantId": 3,

       "tenantName": "Gamma",

       "workstationAgentsCount": 10,

       "serverAgentsCount": 10,

       "cloudBackupResourceUsage": 20000,

       "cloudBackupResourceQuota": 20000,

       "hasCloudBackupResources": true,

       "hasCloudReplicationResources": true,

       "hasCloudVcdResources": false,

       "cloudConnectAgentUid": "d68b878a-0633-4dfa-a94d-82d35dda936d",

       "_links": [

         {

           "rel": "describes",

           "method": "",

           "href": "https://vac:1281/v2/tenants/3"

         }

       ]

     }

     

    Response Code:

    201 Created