REST API knowledge exchange
Post Reply
paulmcnally
Service Provider
Posts: 14
Liked: never
Joined: Feb 26, 2020 10:19 am
Full Name: Paul McNally
Contact:

Filter failover plans to a tenant UID

Post by paulmcnally »

Hi, I'm having trouble filtering failover plans to ones linked to a specific tenant,

I've tried the following:

GET /api/cloud/cloudFailoverPlans?format=Entity&filter=TenantUid=="urn:veeam:CloudTenant:4333f8f4-2d47-4856-b5f1-74af0dcab3cd"

GET /api/cloud/cloudFailoverPlans?format=Entity&filter=TenantUid==4333f8f4-2d47-4856-b5f1-74af0dcab3cd

but it looks like no filtering is applied and all failover plans are returned.

Can anyone help me apply the filtering? Thanks
Vitaliy S.
VP, Product Management
Posts: 27377
Liked: 2800 times
Joined: Mar 30, 2009 9:13 am
Full Name: Vitaliy Safarov
Contact:

Re: Filter failover plans to a tenant UID

Post by Vitaliy S. »

Hi Paul,

Does the same thing happen if you try to use filtering by a tenant name?

Thanks!
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Filter failover plans to a tenant UID

Post by veremin »

What happens, if you replace TenantUID with CloudTenantUID? Thanks!
paulmcnally
Service Provider
Posts: 14
Liked: never
Joined: Feb 26, 2020 10:19 am
Full Name: Paul McNally
Contact:

Re: Filter failover plans to a tenant UID

Post by paulmcnally »

Hi guys,

/api/cloud/CloudFailoverPlans?format=Entity&filter=TenantName=="SomeTenantName" didnt work either

neither did

api/cloud/CloudFailoverPlans?format=Entity&filter=CloudTenantUid==urn:veeam:CloudTenant:108531af-fa08-42ed-bd45-830afc49bd67

Just seems like no filtering is applied.
jhoughes
Veeam Vanguard
Posts: 282
Liked: 113 times
Joined: Apr 20, 2017 4:19 pm
Full Name: Joe Houghes
Location: Castle Rock, CO
Contact:

Re: Filter failover plans to a tenant UID

Post by jhoughes »

The correct name filter is 'CloudTenantName', not just 'TenantName'.

Can you try that?
Husband, Father, Solutions Architect, Geek | @DenverVMUG & @DenverPSUG leader | International Speaker | Veeam Vanguard | vExpert (PRO) | Cisco Champion
paulmcnally
Service Provider
Posts: 14
Liked: never
Joined: Feb 26, 2020 10:19 am
Full Name: Paul McNally
Contact:

Re: Filter failover plans to a tenant UID

Post by paulmcnally »

Hi, so I managed to get filtering working if I use the /query endpoint instead of /cloud/cloudFailoverPlans

Code: Select all

/api/query?type=CloudFailoverPlan&filter=Name=="Internal Test"&format=entities
However the filtering only works on the basic properties such as the "Name" property but not the extra properties that are returned using "format=entities".

This means I can't filter failover plans by TenantUid or TenantName so not very useful. When I try and filter on these properties all the results are returned.

Is there a way to make the filtering work on the format=entities properties such as TenantUid or TenantName that I'm missing? Thanks
veremin
Product Manager
Posts: 20413
Liked: 2302 times
Joined: Oct 26, 2012 3:28 pm
Full Name: Vladimir Eremin
Contact:

Re: Filter failover plans to a tenant UID

Post by veremin » 1 person likes this post

In the already referenced documentation we document properties that you can use for querying CloudFailoverPlan, those properties include CloudTenantUid and CloudTenantName.

If you construct proper query request and still do not get anything queried, kindly, reach our support team for further assistance.

Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest