Salta al contenuto principale

Backed up resources returns no items for reporting

Thread solved

I'm a software developer and our company uses Acronis for backing up our clients.
I am tasked to create PowerBI reports for our Acronis backups.

So far, I've authenticated with the API, and made some single requests, such as getting a list of children tenants (/api/2/tenants/.../children). This has gone fairly smoothly.

I'm having issues getting requests for our backups, vaults, and backed_up_resources. I am required to create a report that lists out every backup we have, and when it was created. I am getting an empty list returned.

Below is an example of what I am getting returned from my requests. Does anyone have any suggestions?

/api/vault_manager/v1/backed_up_resources

{

    "items": [],

    "paging": {

        "cursors": {}

    },

    "_links": [

        {

            "rel": "ListBackedUpResources",

            "href": "/api/vault_manager/v1/backed_up_resources"

        }

    ]

}

 

1 Users found this helpful
frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Messaggi: 2
Commenti: 1727

Hello Matthew.

Welcome to the forum.

Please apply the following code in order to fetch all the tasks: https://developer.acronis.com/doc/tasks/v2/guide/tasks/fetching-tasks

That's the way to get the reports for all the activities.

If the issue persists I suggest you raising a ticket with our support so we can help you with the issue: https://kb.acronis.com/content/8153 .

Thanks in advance!

Thank you! That gave me a list of tasks.

I have a follow up question;

 

Is there a way I can request the most recent backup for each resource?

frestogaslorastaswastavewroviwroclolacorashibushurutraciwrubrishabenichikucrijorejenufrilomuwrigaslowrikejawrachosleratiswurelaseriprouobrunoviswosuthitribrepakotritopislivadrauibretisetewrapenuwrapi
Messaggi: 2
Commenti: 1727

Welcome!

For that doesn't exist a specific code. What you can do is to filter by a date as in this example: https://developer.acronis.com/doc/tasks/v2/guide/tasks/fetching-tasks-c…

Thanks in advance!