Hi,
The thing with the CLoud solution is that it is sending only 1 result...
1 single line with 2 arguments... the count of devices, and then the name of the first 1000 devices. So unless they develop something that allows a better result, it will be hard to get something relevant
Since Broadcom has acquired Symantec, all is just a mess. Sales rep are changing, portals are changing and we can't call the support. The proposed solution looked pretty interesting, but we are missing so many promised features that it becomes pretty difficult for us to handle the volume of computers.
I will try to contact our sales teamto see what we can do here.
Original Message:
Sent: 06-15-2020 04:54 PM
From: John Percy
Subject: Rest API limit to 1000 computers
Unfortunately I tried passing both pageIndex and pageSize as a query, both together and separately like this pageIndex=2&Pagesize=2000, but it made no difference to the response I received back. I also tried passing them with a space in-between the URL and the query which seems to be how you're doing it but that made no difference. I've tried passing every option I've ever used in a REST API to get the next page or a set number of results but nothing seems to change what's returned.
I've submitted 2 tickets for the cloud API not working and support have close both saying they don't support it and that I'd have to pay for consulting services. Why on earth would I pay for consulting services to use a feature that we're already paying for that doesn't work. Unless they're able to do some development work to fix it, what are they going to do? Even if they can do development work, I don't feel like we should be paying Broadcom to fix a product we're already paying for.
I've come to the conclusion that the the cloud API just doesn't work and that it's falsely advertised as being a feature. There seems to be plenty of people successfully using the API with the Manager but no one successfully using the cloud API. One of our requirements when we decided to switch to Symantec was a REST API and now we know they don't have one we'll be switching to another vendor as soon as our contact allows.
Original Message:
Sent: 06-11-2020 09:07 AM
From: Craig Baxter
Subject: Rest API limit to 1000 computers
I have an on-prem SEP Server installation (not cloud-based) and this is how I work around the API limits on number of computers retrieved:
$allComputers = @()for($i=1; $i -le 2; $i++){ Write-Host " Step $($i) of 2 - retrieving up to 10000 records" -NoNewline $allComputers += (Invoke-RestMethod -uri "$($sepServer)computers pageIndex=$($i)&pageSize=10000" -Headers $loginResult[1] -ContentType $ContType -Method GET).content Write-Host "...Complete"}Write-Host "Completed retrieving data"
I have less than 20,000 computers, and this loop retrieves 10,000 of them at a time (the maximum the API would let me get each run). Older versions of the SEP API would also confuse Invoke-RestMethod cmdlet in that the data would contain duplicate JSON field names per object. The later versions of the SEP API seem to have resolved that problem. For older versions of the SEP API, I would use Invoke-WebRequest instead and then have PowerShell search/replace the duplicate field names to recreate a "PowerShell compatible" JSON object.
Original Message:
Sent: 06-06-2020 03:28 PM
From: Unknown User
Subject: Rest API limit to 1000 computers
HI all,
We are currently trying to get list all our computers connected to SEP through the Resp API at URL https://api.sep.securitycloud.symantec.com/
We're invoking through command (I just replaced the device group ID ;-)
$GCCGroupPath = "v1/device-groups/<DeviceGroupId>/devices"
$GCCDeviceGroupURI = $URL + $GCCGroupPath
$headers = @{
'Accept' = 'application/json'
'Authorization' = 'Bearer ' + $AccessToken
'Content-Type' = 'application/json'
'limit' = "500"
'offset' = '2'
}
$RestMessage = Invoke-RestMethod -Method 'GET' -Uri $GCCDeviceGroupURI -Headers $headers
The command returns the right total of computers, but the list of devices is limited to 1000 devices
total devices
----- -------
12119 {@{id=--KGCEYOTbKFA5jQzEpImQ; name=C1014933}, @{id=--pWbIqnRS-SJAVA1hbjwg; nam...
As anyone faced this and found a trick to work around it ?
Thanks
MIchael