REST API knowledge exchange
Post Reply
longfei
Service Provider
Posts: 3
Liked: never
Joined: Jan 30, 2024 1:46 am
Full Name: wenlongfei
Contact:

Valid range value for "platform"

Post by longfei »

Hello. Sorry to bother you. When I created the backup job, I saw that the value of "platform" appeared twice in the request parameter. I want to know the valid range of values. Does the valid range refer to all the platforms currently supported by Veaam B&R?
Mildur
Product Manager
Posts: 9848
Liked: 2610 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Valid range value for "platform"

Post by Mildur »

Hello Wen

Welcome to our forum.

I assume, you have used PowerShell? Or RestAPI?
Could you please share a screenshot or example where you saw <platform>?

Best,
Fabian
Product Management Analyst @ Veeam Software
longfei
Service Provider
Posts: 3
Liked: never
Joined: Jan 30, 2024 1:46 am
Full Name: wenlongfei
Contact:

Re: Valid range value for "platform"

Post by longfei »

Hello Fabian

Sorry, it is not convenient for me to transfer pictures. I can paste the error information to you.

When I created a backup job at VBR,I see that the request parameters have these:

{"'type"."Backup","name":"Donie Create","description":"Created by admin at 2024/01/1110:46","isHighPriority":false,"virtualMachines": {"includes":[{"type":"VirtualMachine","hostName":"10.10.41.100","name":"DC-JJH-DEV-PC002","objectld":"vm-1095","umn":"vc 10.10.41.100;foldergroup-d1;datacenterdatacenter-3,foldergroup-h5;computeresourcedomain-s9;hostsystem:host-8;virtualmachine:vm-1095","platform":"VMware","size""108.1 GB","leaf".true}],"excludes":{"enable".false,"vms".[,"disks":[{"vmObject".{"'type"."VirtuallMachine","hostName":"10.10.41.100","name":"IDC-JJH-DEV-PC002","objectld":"vm-1095","um":"vc:10.1041.100;foldergroup-d1,datacenterdatacenter-3,foldergroup-h5;computeresource:domain-s9;hostsystem:host-8,virtualmachine:vm-1095" "platform""VMware","size":"108.1 GB","leaf":true},"disksToProcess":"AllDisks""removeFromVMConfiguration" true,"disks" [|}],"templates":{"isEnabled":true,"excludeFromincremental".false}},"storage" {"backupRepositoryld":"b502dc10-4400-4da5-a254-9ac433b7c762""backupProxies":{"autoSelectEnabled":true,"proxylds":"},"retentionPolicy":{"type":"RestorePoints","quantity" 7},"gfsPolicy":{"isEnabled" :false,"weekly":{"isEnabled".true,"desiredTime":"monday","keepForNumberOfWeeks".1},

The message returned by my interface is "that the specified parameter is out of the range of valid values. Parameter name: 'platform'."
So I want to know what the actual range is.

Best regards,
Wen
oleg.feoktistov
Veeam Software
Posts: 2011
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Valid range value for "platform"

Post by oleg.feoktistov »

Hi @longfei,

Moved this topic to REST API subforum as the spec you shared is definitely from our VBR REST API. Quick question - do you send this precise spec to create a backup job? I'm asking because I see syntax errors in this JSON, so I wonder if it's the language interpreter on client's side or incorrect syntax. As for the platform value, it's correct. We support only two platform types for backup jobs currently: Vmware and CloudDirector. Here is the guide for the reference.

If it's indeed the precise spec you send, double check syntax errors. The ones I found:

"umn": => "urn"
"vmObject".{"'type"."VirtuallMachine" => "vmObject": {"'type": "VirtualMachine"

Best regards,
Oleg
longfei
Service Provider
Posts: 3
Liked: never
Joined: Jan 30, 2024 1:46 am
Full Name: wenlongfei
Contact:

Re: Valid range value for "platform"

Post by longfei »

Hi Oleg,

Sorry it took so long to reply,The grammar error you said still has the same problem after I corrected it,It is worth mentioning that I did not have this problem when using the REST API version of VBR12.0, but it will occur when using the REST API version of VBR12.1.

Best regards,
Longfei
oleg.feoktistov
Veeam Software
Posts: 2011
Liked: 670 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Valid range value for "platform"

Post by oleg.feoktistov »

Hi Longfei,


I'd double check the request spec for other syntax issues because there aren't many available values for platform property - VMware and CloudDirector. You can have a look at the values in the response model here.

Best regards,
Oleg
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests