- This topic has 11 replies, 3 voices, and was last updated June 19, 2019 by Justin N.
Recovery Data Size/Recovery Storage:
-
Alex WApril 2, 2019 02:31:21 PM
Hi There,
Just wondering, is there a way to pull the “Recovery Data Size” back using API or Powershell at all?
I’m aware of the method to grab from https://zvm_ip:port/v1/vpgs etc, but this pulls back UsedStorageInMB – What I want is to pull back the Recovery Data Size that is also shown when you look at the web management page. (Also shown as “Recovery Storage” when you edit settings?
I can’t seem to find any info about that value anywhere in the documentation?
Many Thanks in Advance
Justin NApril 2, 2019 02:37:29 PMHi Alex – Have you taken a look at the Resource Report or Volumes API? Aside from the VPGs API, these also have details on recovery/journal data sizes. — Justin
Alex WApril 2, 2019 03:03:57 PMHi Justin,
Thanks for coming back, However neither of these pull back that info either.. Resource Report contains:
Recovery Journal Used Storage (GB)
Recovery Journal Provisioned Storage (GB)
Recovery Volumes Used Storage (GB)
Source Volumes Used Storage (GB)
Source Volumes Provisioned Storage(GB)Volumes API gives:
ProvisionedInBytes The provisioned size of the volume, in bytes.
UsedInBytes The used size of the volume, in bytes.Neither of these is “Recovery Data Size” as shown in the web management console if you select a VPG.
Kind Regards
AlexJustin NApril 2, 2019 03:17:48 PMHi Alex – The aggregate of the recovery volumes (either for a VPG or for the entire site) would be the recovery data size I think, no? — Justin
Alex WApril 2, 2019 03:35:27 PMSorry Justin maybe I am misunderstanding,
I checked & for instance I have 3 VMs in a Site, the volumes are as follows:
(Site1)
VM1 = Provisioned 76.1Gb – Recovery Data Size = 138Gb
VM2 = Provisioned 900Gb – Recovery Data Size = 1.08Tb
VM3 = Provisioned 108Gb – Recovery Data Size = 218GbI’m just not sure where the browser is getting this info from.. my next port of call was potentially going to be to interrogate the SQL Database & see if I can pull that value out.
Kind Regards
AlexJustin NApril 2, 2019 03:43:02 PMHey Alex – Is the recovery data size you’re looking into the column here listed on the ‘protected VMs’ sub tab? If so, then for a single VM, this is the total of recovery volumes and the journal for that VM. Aggregate of all VMs in the VPG or all VPGs with that site as a recovery site would be those totals. — Justin
Alex WApril 2, 2019 03:50:21 PMHi Justin,
Ahh yes I see it, that’s great thanks, I’ll work out a way of combining.
Thanks for the prompt assistance!Kind Regards
AlexJustin NApril 2, 2019 04:22:59 PMNo problem, glad to help!
Justin NApril 2, 2019 06:27:24 PMHey Alex – just wanted to add, but if you do have feedback or requests for the API please do let our team know! You can find our product teams portal at MyZerto –> Support & Downloads –> Feature request. — Justin
Alex WApril 3, 2019 07:53:40 AMOk that’s great, many thanks again! 🙂
Kind Regards
AlexSevan HJune 19, 2019 09:41:12 AMHello,
Sorry to re-open this thread, but I have another use case here:
I have multiple datastores that are representing multiple CoS that we sell at multiple prices.
Hence some of our customers are protecting VMs to multiple datastores.
We need to extract the recovery data size per datastore to charge our customers accordingly.
From the ressource report that we extract through the GUI, there is only the total recovery data size but if I’m not mistaking I can’t get it per DS (therefore I don’t know what price I should apply).
Is there a way to get this info from the API? Otherwise how could I do this?
Thanks,
Sevan
Justin NJune 19, 2019 01:40:03 PMHi Sevan – Our datastores API may also be useful. Here is a link to the json response format of that API: http://s3.amazonaws.com/zertodownload_docs/Latest/Zerto%20Virtual%20Replication%20Zerto%20Virtual%20Manager%20%28ZVM%29%20-%20vSphere%20Online%20Help/index.html#page/RestfulAPIs%2FStatusAPIs.5.020.html%23 — Justin