-
- Influencer
- Posts: 14
- Liked: 1 time
- Joined: Apr 29, 2013 1:10 pm
- Contact:
How can I view storage consumption per organization
Per this posts subject. I need to know how much storage each organization consumes. The Storage Consumption report just shows a number for all organizations combined.
-
- Veteran
- Posts: 1943
- Liked: 247 times
- Joined: Dec 01, 2016 3:49 pm
- Full Name: Dmitry Grinev
- Location: St.Petersburg
- Contact:
Re: How can I view storage consumption per organization
Hi Shagma,
I've passed your question to the responsible team, will share the information later. Thanks!
I've passed your question to the responsible team, will share the information later. Thanks!
-
- Veeam Software
- Posts: 149
- Liked: 47 times
- Joined: May 25, 2016 3:29 am
- Full Name: Ben Young
- Contact:
Re: How can I view storage consumption per organization
Hi Shagma, this is actually a duplicate from another Service provider forum which you may not have access too but you can use the API to get this information out
This will get you all organisations
https://<Backup-Office365>:4443/v3/Organizations
Then you can enumerate each of them and hit up the following to get the used repositories endpoint
https://<Backup-Office365>:4443/v3/Organizations/{id}/UsedRepositories
This will return you a payload containing UsedSpaceBytes which you can see the usage
All the docs are here (how to connect and other endpoints)
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=30
This will get you all organisations
https://<Backup-Office365>:4443/v3/Organizations
Then you can enumerate each of them and hit up the following to get the used repositories endpoint
https://<Backup-Office365>:4443/v3/Organizations/{id}/UsedRepositories
This will return you a payload containing UsedSpaceBytes which you can see the usage
All the docs are here (how to connect and other endpoints)
https://helpcenter.veeam.com/docs/vbo36 ... tml?ver=30
-
- Product Manager
- Posts: 8191
- Liked: 1322 times
- Joined: Feb 08, 2013 3:08 pm
- Full Name: Mike Resseler
- Location: Belgium
- Contact:
Re: How can I view storage consumption per organization
BenYoung, thanks for the update!
@shagma? Are you a registered VSCP? Also, if you create the report in CSV you can get the raw data out of there per tenant (per repository)
@shagma? Are you a registered VSCP? Also, if you create the report in CSV you can get the raw data out of there per tenant (per repository)
-
- Influencer
- Posts: 14
- Liked: 1 time
- Joined: Apr 29, 2013 1:10 pm
- Contact:
Re: How can I view storage consumption per organization
I'm trying to download the Organizations file, but it won't let med download. I get an error message:
<Error>
<Message>Authorization has been denied for this request.</Message>
</Error>
Why does our VSCP status matter in this regard?. Our ID is PRA-015937
<Error>
<Message>Authorization has been denied for this request.</Message>
</Error>
Why does our VSCP status matter in this regard?. Our ID is PRA-015937
-
- Product Manager
- Posts: 8191
- Liked: 1322 times
- Joined: Feb 08, 2013 3:08 pm
- Full Name: Mike Resseler
- Location: Belgium
- Contact:
Re: How can I view storage consumption per organization
If you are a VSCP then you can apply for the dedicated service provider forums.
To apply for the VCSP forum, go into the User Control Panel of this forum, select User Groups in the tabs, select "Veeam Cloud Service Provider” and finally the “Join selected” option. As soon as your email address is verified to be part of the Service Provider domain, your application will be approved.
For your error. It seems that your authorization ticket isn't following your requests. Did you got the authorization first and then followed by your queries?
To apply for the VCSP forum, go into the User Control Panel of this forum, select User Groups in the tabs, select "Veeam Cloud Service Provider” and finally the “Join selected” option. As soon as your email address is verified to be part of the Service Provider domain, your application will be approved.
For your error. It seems that your authorization ticket isn't following your requests. Did you got the authorization first and then followed by your queries?
-
- Product Manager
- Posts: 5797
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: How can I view storage consumption per organization
You need to authenticate first via /v3/token. Afterwards use that token against the api calls and it will result in the outcome.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Veeam Software
- Posts: 149
- Liked: 47 times
- Joined: May 25, 2016 3:29 am
- Full Name: Ben Young
- Contact:
Re: How can I view storage consumption per organization
Hey Shagma,
If you POST to /v3/token as mentioned you will get a bearer token back, example below;
POST https://youroffice365server:4443/v3/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
username=administrator&password=SuperSecure123&grant_type=password
This will return
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 1267
Content-Type: application/json;charset=UTF-8
Expires: -1
Server: Microsoft-HTTPAPI/2.0
Access-Control-Allow-Origin: *
Date: Tue, 21 May 2019 03:37:45 GMT
{"access_token":"AQAAANCMnd8BFdERjHoAwE..... have removed the rest of it, it's really long...","token_type":"bearer","expires_in":3599,"refresh_token":"refresh token here........ (its reallly long so have remove it)",".issued":"Tue, 21 May 2019 03:37:45 GMT",".expires":"Tue, 21 May 2019 04:37:45 GMT"}
You can then use that access token value for subsequent requests like the below in the authorization header, just remember to put "Bearer" before your value
GET https://youroffice365server:4443/v3/proxies HTTP/1.1
Authorization: Bearer AQAAANCMnd8BFdERjHoAwE....and the rest of it
returns you... (but you can hit up or organisations endpoints to get the consumption)
HTTP/1.1 200 OK
Content-Length: 1967
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Tue, 21 May 2019 03:37:45 GMT
[
{
"isDefault": false,
"useInternetProxy": true,
"internetProxyType": "FromManagementServer",
"id": "c1bfe7b2-c1dd-42a2-999d-1f7ac1a46bff",
"hostName": "OFFICE3652",
"description": "Created by OFFICE365MGMT\\Administrator at 8:09 PM",
"port": 9193,
"threadsNumber": 64,
"enableNetworkthrottling": false,
"status": "Online",
...... etc.
hope that helps
If you POST to /v3/token as mentioned you will get a bearer token back, example below;
POST https://youroffice365server:4443/v3/token HTTP/1.1
Content-Type: application/x-www-form-urlencoded
username=administrator&password=SuperSecure123&grant_type=password
This will return
HTTP/1.1 200 OK
Cache-Control: no-cache
Pragma: no-cache
Content-Length: 1267
Content-Type: application/json;charset=UTF-8
Expires: -1
Server: Microsoft-HTTPAPI/2.0
Access-Control-Allow-Origin: *
Date: Tue, 21 May 2019 03:37:45 GMT
{"access_token":"AQAAANCMnd8BFdERjHoAwE..... have removed the rest of it, it's really long...","token_type":"bearer","expires_in":3599,"refresh_token":"refresh token here........ (its reallly long so have remove it)",".issued":"Tue, 21 May 2019 03:37:45 GMT",".expires":"Tue, 21 May 2019 04:37:45 GMT"}
You can then use that access token value for subsequent requests like the below in the authorization header, just remember to put "Bearer" before your value
GET https://youroffice365server:4443/v3/proxies HTTP/1.1
Authorization: Bearer AQAAANCMnd8BFdERjHoAwE....and the rest of it
returns you... (but you can hit up or organisations endpoints to get the consumption)
HTTP/1.1 200 OK
Content-Length: 1967
Content-Type: application/json; charset=utf-8
Server: Microsoft-HTTPAPI/2.0
Date: Tue, 21 May 2019 03:37:45 GMT
[
{
"isDefault": false,
"useInternetProxy": true,
"internetProxyType": "FromManagementServer",
"id": "c1bfe7b2-c1dd-42a2-999d-1f7ac1a46bff",
"hostName": "OFFICE3652",
"description": "Created by OFFICE365MGMT\\Administrator at 8:09 PM",
"port": 9193,
"threadsNumber": 64,
"enableNetworkthrottling": false,
"status": "Online",
...... etc.
hope that helps
-
- Product Manager
- Posts: 5797
- Liked: 1215 times
- Joined: Jul 15, 2013 11:09 am
- Full Name: Niels Engelen
- Contact:
Re: How can I view storage consumption per organization
I wrote a series of RESTful api blog posts a while ago which may help in how it works: http://foonet.be/2019/04/01/veeam-backu ... -settings/.
It is the last post in the series but at the bottom u can find all of them.
It is the last post in the series but at the bottom u can find all of them.
Personal blog: https://foonet.be
GitHub: https://github.com/nielsengelen
GitHub: https://github.com/nielsengelen
-
- Veeam Software
- Posts: 149
- Liked: 47 times
- Joined: May 25, 2016 3:29 am
- Full Name: Ben Young
- Contact:
Re: How can I view storage consumption per organization
Nice writeup that would have been handy a few weeks ago if i had know about it
-
- Product Manager
- Posts: 8191
- Liked: 1322 times
- Joined: Feb 08, 2013 3:08 pm
- Full Name: Mike Resseler
- Location: Belgium
- Contact:
Re: How can I view storage consumption per organization
@BenYoung... Niels is a guy you want to keep an eye on when you work with REST for VBO. You should checkout his portal that he built on github
-
- Service Provider
- Posts: 19
- Liked: 2 times
- Joined: May 27, 2021 3:48 am
- Full Name: Dean Anderson
- Contact:
Re: How can I view storage consumption per organization
You need to backup each organization to its own backup repository.
-
- Product Manager
- Posts: 8191
- Liked: 1322 times
- Joined: Feb 08, 2013 3:08 pm
- Full Name: Mike Resseler
- Location: Belgium
- Contact:
Re: How can I view storage consumption per organization
@DeanCTS Correct. That is also the way to go as a service provider to keep data separated from different tenants
Who is online
Users browsing this forum: No registered users and 9 guests