eric f Posted July 21, 2018 Posted July 21, 2018 Hey everyone, I'm building a system for our shop and trying to make use of the REST API. I have things set up and working mostly. However, the problem I'm having is when I request asset information, the first time I'll get a full reply as follows with all the asset info, disk info, and IP addresses, but when I refresh the page, without changing anything, most of that info is missing. See the two examples below. Does anybody have any suggestions on what could be wrong? stdClass Object ( [data] => stdClass Object ( [identifier] => xxxxxxxx-202b-446d-8e87-xxxxxxxxxxxx [name] => DC4 [group] => Group Name [description] => Windows Server 2016 Standard [tags] => Array ( ) [type] => windows [client_version] => 5.4.8 [last_updated] => [last_seen_online] => 2018-07-21T21:47:08Z [last_reboot] => [external_url] => https://myurl.com/details [cpu_usage] => 1 [memory_usage] => 56 [memory_total] => 4294414336 [firewall_enabled] => 1 [antivirus_enabled] => not_installed [antivirus_up_to_date] => not_installed [uac_enabled] => 1 [event_logs] => stdClass Object ( [error] => 22349 [warning] => 39190 [information] => 152570 ) [updates] => stdClass Object ( [critical] => 0 [important] => 3 [moderate] => 0 [low] => 0 [unspecified] => 1 ) [asset_info] => Array ( [0] => stdClass Object ( [category_name] => System [category_data] => stdClass Object ( [Name] => DC4 [Manufacturer] => QEMU [Model] => Standard PC (i440FX + PIIX, 1996) [Type] => x64-based PC [CPU] => Common KVM processor [Number of Processors] => 2 [Number of Logical Processors] => 4 [DNS Host Name] => dc4 [Domain] => ad.domain.ca [Owner Name] => Windows User [Roles] => LM_Workstation, LM_Server, Backup_Domain_Controller, Timesource, NT, DFS [Status] => OK ) ) [1] => stdClass Object ( [category_name] => BIOS [category_data] => stdClass Object ( [Name] => Intel IGD BDSM enabled at 0x%08x, size %lldMB, dev 00:02.0 [Manufacturer] => SeaBIOS [SMBIOS Version] => rel-1.10.2-0-g5f4c7b1-prebuilt.qemu-project.org [SMBIOS Major Version] => 2 [SMBIOS Minor Version] => 8 [Version] => BOCHS - 1 [Release Date] => Monday, March 31, 2014 5:00 PM [Status] => OK [Description] => Intel IGD BDSM enabled at 0x%08x, size %lldMB, dev 00:02.0 ) ) [2] => stdClass Object ( [category_name] => Operating System [category_data] => stdClass Object ( [Name] => Windows Server 2016 Standard [Version] => 10.0.14393.0 [Build Type] => Multiprocessor Free [Registered User] => Windows User [Product Key] => Product Key [Serial Number] => Serail Number [Service Pack Major Version] => 0 [Service Pack Minor Version] => 0 [System Device] => \Device\HarddiskVolume2 [System Directory] => C:\Windows\system32 [Windows Directory] => C:\Windows [Install Date] => Monday, January 8, 2018 3:48 AM [Local Date and Time] => Saturday, July 21, 2018 1:32 PM [Last Boot Up Time] => Wednesday, July 4, 2018 2:53 PM [Last Logged On User] => Domain\administrator ) ) ) [public_ip_address] => my IP [ip_addresses] => Array ( [0] => stdClass Object ( [name] => Ethernet [mac] => EE7B1B81F723 [ips] => Array ( [0] => stdClass Object ( [ip] => internal IP [v6] => [download] => 12108 [upload] => 5449 ) ) ) ) [disks] => Array ( [0] => stdClass Object ( [name] => C: [system] => 1 [free_percentage] => 40 [total_value] => 33040380 ) ) [installed_software] => Array ( ) ) [meta] => stdClass Object ( [response_code] => 200 [error_message] => ) ) Â stdClass Object ( [data] => stdClass Object ( [identifier] => xxxxxxxx-202b-446d-8e87-xxxxxxxxxxxx [name] => DC4 [group] => Group Name [description] => Windows Server 2016 Standard [tags] => Array ( ) [type] => windows [client_version] => 5.4.8 [last_updated] => [last_seen_online] => 2018-07-21T21:55:03Z [last_reboot] => [external_url] => https://myurl.com/app/main/systems/systemId/details [cpu_usage] => 0 [memory_usage] => 0 [memory_total] => 0 [firewall_enabled] => [antivirus_enabled] => not_installed [antivirus_up_to_date] => not_installed [uac_enabled] => [event_logs] => [updates] => [asset_info] => Array ( ) [public_ip_address] => My Public IP [ip_addresses] => Array ( ) [disks] => Array ( ) [installed_software] => Array ( ) ) [meta] => stdClass Object ( [response_code] => 200 [error_message] => ) ) Â
Staff Chris Posted July 23, 2018 Staff Posted July 23, 2018 Hi Eric, That is correct, we allow only 60 requests per hour.
francoism Posted February 1, 2020 Posted February 1, 2020 Why cant I see asset info when running /systems/id REST API, output is just basic information?
Staff Chris Posted February 3, 2020 Staff Posted February 3, 2020 Hi @francoism, Please tel us what information are you looking for? Also, have you checked /assets/id REST API. Paul 1
francoism Posted February 8, 2020 Posted February 8, 2020 Awesome, this link does not contain that info btw,https://www.pulseway.com/restapi/
Alejandro Posted May 27, 2020 Posted May 27, 2020 On 7/23/2018 at 9:54 AM, Chris said: Hi Eric, That is correct, we allow only 60 requests per hour. Only 60? just between my hard drives and my private ips I have to make those queries
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now