Maintain control of your Microsoft 365 data
Post Reply
Cragdoo
Veeam Vanguard
Posts: 629
Liked: 251 times
Joined: Sep 27, 2011 12:17 pm
Full Name: Craig Dalrymple
Location: Scotland
Contact:

REST-API - add units

Post by Cragdoo »

The results from a GET /v2/BackupRepositories are as follows

Code: Select all

 {
    "id": "38db9700-19e7-452a-9a36-23a6d2008c5c",
    "name": "CD-LAB-O365",
    "description": "Created by CRAGDOO\\cragadmin at 10:48",
    "path": "D:\\Backup\\O365",
    "capacity": 268299137024,
    "freeSpace": 267269685248,
    "retentionPeriodType": "Yearly",
    "yearlyRetentionPeriod": "Years3",
    "retentionFrequencyType": "Daily",
    "dailyTime": "00:00:00",
    "dailyType": "Everyday",
    "proxyId": "fee6214d-2ec6-4ebf-93c1-d5be06c17548",
    "_links": {
      "self": {
        "href": "https://10.1.0.49:4443/v2/backuprepositories/38db9700-19e7-452a-9a36-23a6d2008c5c"
      },
      "proxy": {
        "href": "https://10.1.0.49:4443/v2/proxies/fee6214d-2ec6-4ebf-93c1-d5be06c17548"
      }
    }
  }
  
  
  

can you add values to the "capacity" and "freeSpace" values

like

Code: Select all

"path": "D:\\Backup\\O365",
    "capacityMB": 268299137024,
    "freeSpaceMB": 267269685248,
makes it easier to know the unit of the returned value.

Thanks in advance
Polina
Veeam Software
Posts: 3194
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: REST-API - add units

Post by Polina »

Hi Craig,

By default, all the capacity/sizing values are provided in bytes. This way they can easily be converted to any required unit of data you need to get.

Thanks!
Mike Resseler
Product Manager
Posts: 8191
Liked: 1322 times
Joined: Feb 08, 2013 3:08 pm
Full Name: Mike Resseler
Location: Belgium
Contact:

Re: REST-API - add units

Post by Mike Resseler »

Craig,
I'm agreeing with Polina on this one. By default all of our units are in bytes and are considered a standard when working with this. Also, changing this now would break quite a lot of integration from partners and customers
Cragdoo
Veeam Vanguard
Posts: 629
Liked: 251 times
Joined: Sep 27, 2011 12:17 pm
Full Name: Craig Dalrymple
Location: Scotland
Contact:

Re: REST-API - add units

Post by Cragdoo »

understood, but my point is how would people know all the units are in bytes by default? People can make an assumption, but at least I would have thought the documentation should make reference to this, as it stands it doesn't.

https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=20
Polina
Veeam Software
Posts: 3194
Liked: 774 times
Joined: Oct 21, 2011 11:22 am
Full Name: Polina Vasileva
Contact:

Re: REST-API - add units

Post by Polina » 1 person likes this post

Good suggestion, Craig!
The guide will be updated with this info.

Thanks!
Post Reply

Who is online

Users browsing this forum: sschlott and 17 guests