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"
#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 | |
---|---|
https://$host/catalog-service/api/consumer/catalogItems | |
Specifies the host name and fully qualified domain name or IP address of the vRealize Automation identity server. | |
Specifies a valid HTTP bearer token with necessary credentials. |