Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

vRA API REST call get more then 20 items

$
0
0

I can't figure out how to get the API call for entitledCatalogItems to return more then 20 items

(powershell)

$vRAURI = "https://vcac"

$login=""|Select username, password, tenant

$login.username = "login"

$login.password = "passwd"

$login.tenant = "tenant"

 

# http://pubs.vmware.com/vra-62/index.jsp#com.vmware.vra.programming.doc/GUID-87BD5DAE-53D3-4463-9FBC-870A7B566AC1.html

#auth

if(!$ApiToken) { $ApiToken = Invoke-RestMethod -Method Post -uri "$($vRAURI)/identity/api/tokens" -Body (ConvertTo-Json $login) -ContentType "application/json"}

#List Shared and Private Catalog Items

$entitledCatalogItems = Invoke-RestMethod -Method Get -uri "$($vRAURI)/catalog-service/api/consumer/entitledCatalogItems" -Headers @{"Authorization"="Bearer $($ApiToken.id)"}  -ContentType "application/json"

 

$entitledCatalogItems.metadata

size          : 20

totalElements : 22

totalPages    : 2

number        : 1

offset        : 0

 

From the API doc from the URL above, it's not showing any parameters to pass to query the next page

Input

Description

URL

https://$host/catalog-service/api/consumer/catalogItems

$host

Specifies the host name and fully qualified domain name or IP address of the vRealize Automation identity server.

$token

Specifies a valid HTTP bearer token with necessary credentials.


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>