REST API knowledge exchange
Post Reply
appleoddity
Novice
Posts: 5
Liked: 2 times
Joined: Mar 10, 2022 5:08 pm
Contact:

How to handle vmware multitag values

Post by appleoddity »

The Veeam API documentation suggests multiple places that it can handle managing VMware multitag combinations. i.e. A backup job that dynamically maps to VMs based on multiple tag combinations.

https://helpcenter.veeam.com/archive/ba ... /CreateJob
- This suggests that "includes" can have a "type" of "Multitag." But, it requires also providing an objectId in the request. I see this if I don't provide the ID:
unexpected response code '400': {"errorCode":"UnknownError","message":"ObjectId is required for VmwareObjectModel [Type: Multitag
│ ,HostName:hqvc01, Name:Retention:A & Retention:B & RPO:3 & Site:ABCD]\r\nParameter name: model","resourceId":null}
But, there really isn't anywhere to get this elusive ID for a multitag combination. There is some suggestion I can get this information from the Veeam API here:
https://helpcenter.veeam.com/archive/ba ... HostObject
or
https://helpcenter.veeam.com/archive/ba ... oryObjects

Both allow looking for a type of "Multitag." But both return zero results.

If I get a list of current jobs from the API, I see output like so:

Code: Select all

                "includes": [
                    {
                        "type": "Multitag",
                        "hostName": "hqvc01",
                        "name": "Retention:B & RPO:3 & Site:ABCD",
                        "objectId": "B6873A6E3CEED9432DD7E5D58058FC673A077C34C8FE8161F4F00227A3C4B7B0",
                        "urn": null,
                        "platform": "VMware",
                        "size": "114.9 GB"
                    }
But, this objectId cannot be reused.

Why does the documentation repeatedly make references to VMware "multitag" combinations, but make no way to actually find this elusive objectId that is required?

How do I create a dynamic backup job using a multi-tag combination?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest