Get Company Locations

In this article

    You can get a representation of a collection of all locations for a company with the specified ID.

    Request

    To get all company locations in Veeam Service Provider Console, send the GET HTTPS request to the URL of the /tenants/{ID}/locations collection.

    HTTP Request

    GET https://<hostname>:1281/v2/tenants/{ID}/locations

    Request Headers

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

    Response

    The server returns the following response to the client.

    Response Code

    A successfully completed operation returns 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

    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 representation of the /tenants/{ID}/locations collection.

    Example Get Company Locations

    The following request returns all locations in Veeam Service Provider Console for a company with ID 2.

    Request:

    GET https://localhost:1281/v2/tenants/2/locations

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Response Code:

    200 Success

     

    Response Body:

    [

     {

       "id": 2,

       "name": "Sydney",

       "quota": 50,

       "quotaUnits": "GB",

       "type": "System",

       "repositoryCapacity": 99,

       "repositoryCapacityUnits": "GB",

       "repositoryFreespace": 82,

       "repositoryFreespaceUnits": "GB",

       "repositoryUsedspace": 17,

       "repositoryUsedspaceUnits": "GB",

       "_links": {

         "self": {

           "href": "https://vac.tech.local:1281/v2/tenants/2/locations/2"

         },

         "backupServers": [

           {

             "href": "https://vac.tech.local:1281/v2/backupServers/2"

           }

         ],

         "jobs": [

           {

             "href": "https://vac.tech.local:1281/v2/jobs/2"

           },

           {

             "href": "https://vac.tech.local:1281/v2/jobs/1"

           },

           {

             "href": "https://vac.tech.local:1281/v2/jobs/3"

           }

         ]

       }

     },

     {

       "id": 5,

       "name": "Boston",

       "quota": 100,

       "quotaUnits": "GB",

       "type": "Custom",

       "repositoryCapacity": 500,

       "repositoryCapacityUnits": "GB",

       "repositoryFreespace": 100,

       "repositoryFreespaceUnits": "GB",

       "repositoryUsedspace": 400,

       "repositoryUsedspaceUnits": "GB",

       "_links": {

         "self": {

           "href": "https://vac.tech.local:1281/v2/tenants/2/locations/5"

         },

         "backupServers": [],

         "jobs": []

       }

     }

    ]

    I want to report a typo

    There is a misspelling right here:

     

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