cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
772
Views
5
Helpful
2
Replies

Unity REST API GET users - how to select fields instead of getting all

Mark Dugas
Level 1
Level 1

I'm doing a REST GET on Unity 11.5 with:

 

GET https://{ip address}/vmrest/users

 

This gives me all 8000 users and every field for each user.  I have shortened the number of users returned with:

 

GET https://{ip address}/vmrest/users?rowsPerPage=100&pageNumber=1

 

Next I'd like to reduce the fields to just the 8 that I need.  I'm testing with SoapUI with the following:

 

GET https://{ip address}/vmrest/users?fields=OjbectId,Alias&rowsPerPage=100&pageNumber=1

 

however, I get the same result - still all the fields.

 

Is there a way to do this on Unity?  Thanks so much.

 

Mark

 

1 Accepted Solution

Accepted Solutions

dstaudt
Cisco Employee
Cisco Employee

As far as I know, the REST API does not support restricting results by specific fields.

It should be possible to do more specific things by accessing the Unity database and doing SQL stuff, which is semi-supported...lots of resources (some out of date) here: www.ciscounitytools.com

View solution in original post

2 Replies 2

dstaudt
Cisco Employee
Cisco Employee

As far as I know, the REST API does not support restricting results by specific fields.

It should be possible to do more specific things by accessing the Unity database and doing SQL stuff, which is semi-supported...lots of resources (some out of date) here: www.ciscounitytools.com

JasunKAR
Level 1
Level 1

What fields were you looking to display on exactly?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: