REST API
REST API development
49 topics in this forum
-
Hi, I'm using the Publish API to create a system, which shows up on the dashboard. I then send a notification using curl: https://api.pulseway.com/v1/publish -H Content-Type:application/json -u <user;key> -X POST -d '{"instance_id":"v7black","title":"Test error","message":"Running out of disk space","priority":"critical"}' which gets a valid response: {"response_code":200,"error_message":null} But I can't see any notification on the dashboard/mobile The name/description/group I used in publish seems to have been lost I put the publish again, and the group/description is back... however once the 'refresh interval' expires it greys out but there is no notific…
- 9 replies
- 7.1k views
- 1 follower
-
Hello, The restApi needs the instance_id parameter. Where could I find this information ? Is it the tag in the system details URL, between /systems/ and /details? Best regards, Guy
- 8 replies
- 6.6k views
-
It appears the V3 API is out now. I see in the permissions when creating a token 'Get Device Custom Fields' as a permission, but there is no endpoint listed in the documentation. Additionally, attempting to use the new /api/v3/devices endpoint fails, it will however take the /api/v3/systems endpoint. This appears to return same information as v2 API does. Error returned is as follows: '/api/v3/devices' MessageDetail: No type was found that matches the controller named 'v3' My questions are: 1. is the /devices endpoint a new endpoint that's not available yet? 2. what is the endpoint to get a device's custom field? 3. is there at time line f…
-
- 8 replies
- 3.4k views
- 2 followers
-
-
Hello. I need help. Can I add https://psa.pulseway.com/MSP/TicketsListing.aspx here to Tickets ? Using https://api.pulseway.com/ ?
-
- 7 replies
- 2.5k views
- 1 follower
-
-
Our admins use Pulseway to monitor several of our systems. We also use 3rd party cloud based systems that will send us notifications via API. When we receive notifications from our 3rd party systems, our admins would like for me to forward them to Pulseway. I've read quite a bit of the documentation and perhaps it's because I'm unfamiliar with Pulseway nomenclature, but I'm unsure if this can be done. This thread had several questions in it that I have, but a lot of the content is still unclear for me. And at one point it was stated that what they were trying to accomplish wasn't possible, and that Pulseway was considering allowing to add notifications for other…
-
- 6 replies
- 4.1k views
- 1 follower
-
-
Hi, I need assistance with getting this c# code to authenticate and list all devices. I tried it with the username/password combo AND the token id/secret combo (token permissions are fully open) I get the same error on both as seen here { "Data": null, "Meta": { "TotalCount": 0, "ResponseCode": 403, "ErrorMessage": "A delegate registered to create instances of 'MM.Monitor.Application.ApiTokens.Services.Interfaces.IApiTokensDataService' returned null." } } Here's the Class in C# using Newtonsoft.Json; using RestSharp.Authenticators; using RestSharp; using System; namespace Pulseway_Helper { internal class GetDevices { …
-
- 6 replies
- 1.7k views
- 1 follower
-
-
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 Nam…
- 5 replies
- 5k views
-
I have what was a working PowerShell script to get a list of all my systems in Pulseway. It is no longer working. I am getting a 200 response, just no data. I even tried to replicate it in Node JS since there is official documentation for it, but I get the same response - 200 but no data. $username = 'administrator' $password = '*************' #Adding credentials to header $header = @{Authorization = 'Basic ' + [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes("$($username):$($password)")) } #Call API to return first 100 systems - calls are limited to 100 results $first100 = Invoke-RestMethod -uri https://xxxxxxxxxxxx.pulseway.com/api/v2/systems -Metho…
-
- 4 replies
- 3.5k views
-
-
Playing around with the API in postman but the asset_info is always blank along with the disks. I am calling the assets endpoint with an ID but I see the same missing info if I don't provide an IP. The reason I am looking into the API is to see about making an integration with Home Assistant. Before I get too far I guess I should ask what the api limitations are. I don't see documentation on how many polls per minute/hour/day though I did see mention of 1/minute in another thread. Are there any other considerations that I need to be aware of to see if this api is a good candidate for inclusion in a home automation system? Thanks!
-
- 4 replies
- 3.9k views
-
-
Chasing up what the following are calls to Specifically ; Pulseway_instance_id Pulseway_Instance_Name Pulseway_Instance Group Pulseway_instance_Decription Figured out ; Pulseway_instance_id Not sure of Pulseway_Instance_Name would be ie (https://companyname.pulseway.com/) ? Pulseway_Instance Group Would be the Group its in obviously (any Syntax required ? or straight label copy paste ?) and with Username and password 2FA not required or seperate Pulseway account needed with 2FA disabled ?
-
- 4 replies
- 2.8k views
-
-
Hey, We use the REST API. In addition, we are writing a lot of the report of 'Can not perform database operation'. Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( [response_code] => 503 [error_message] => Cannot perform database operation ) ) Array ( [data] => [meta] => Array ( […
-
- 3 replies
- 3.9k views
- 1 follower
-
-
Hey all! Testing out Pulseway's REST API endpoints. I can query for systems, etc but executing a task just gets a happy little 403... Posting to: https://api.pulseway.com/v2/automation/tasks/[redacted]/executions returns this: { "meta": { "response_code": 403, "error_message": "Operation refused as the account has 2FA enabled." }, "data": { "id": 0 } } What recourse do I have here? Is the REST API simply unavailable for task execution in cloud accounts while 2FA is enabled? Suppose I could disable it and just live with a super-long password, but... perhaps there is a way Thanks!
- 3 replies
- 2.4k views
- 1 follower
-
This may not be an Rest API thing, but in reading the documentation, it sounds like it MAY be. I have a distributed, multi-system, multi-service application, of which I want to monitor the status via running an RPC status binary I have which outputs XML containing a system, service, and status. Some assumptions I'd like confirmed System Publish can be used to publish custom status More than one system could publish into the same instance (assuming they don't run at the same time) Rest API is a good way to do this (there isn't a better way) If this is a bad choice or the wrong place to ask, please point me in the correct direction. At th…
-
- 3 replies
- 3.8k views
- 1 follower
-
-
Hello, When authenticating to the REST API, am I able to use the API Key/API Token found on the User Account Details page? I've been attempting to do so using Postman, by changing the Authorization type to API Key and then pasting the API Key into the Value field. Unsure that the Key field must contain, but having tried things like "apikey", "api_key" etc.. I always receive a 401 Unauthorized. I'm clearly getting something wrong - so appreciate any direction. Just a FYI, the documentation for the Notifications says a default priority is normal but I've found it to default to low when no priority field is populated.
-
- 3 replies
- 4.8k views
- 1 follower
-
-
I'm using the API to get a list of IP addresses in order to whitelist those IP's in the Linux iptables firewall rules. This process works fine on an unrestricted server. The server I'm working with is very restricted, so it isn't able to communicate with the api. For example, our pulseway address is http://company.pulseway.com which translates to 12.34.56.78 I added the following into iptables.save: #Pulseway -A INPUT -i eth0 -s 12.34.56.78 -j ACCEPT -A OUTPUT -o eth0 -d 12.34.56.78 -j ACCEPT I test outbound communications by running the following: telnet 12.34.56.78 443 and it connects so I'm assuming it's the inbound communication. My a…
-
- 3 replies
- 4.4k views
- 1 follower
-
-
Hi, I am testing to send notifications but I keep receiving a 403 error? I tried several things username : API-Key / username MFA with - or without But 403 keeps comming back. Someone any idea?
-
- 3 replies
- 3.2k views
- 1 follower
-
-
Hi, I'm looking for a way to retrive the Ids for the PSA currencies using the API. I want to use the currencyId when posting a new account to set it's currency. But i can't find any documentation on how to get the ids. I found the documentation on how to get countries. I guess there must be a simliar thing for currencies: GET https://server_name/api/system/countries
-
- 2 replies
- 1.7k views
-
-
Hello all! I keep getting 401 Unauthorized when trying to get all systems using either basic auth or API key. I have 2FA disabled... Any hint? Thank you!
- 2 replies
- 2.5k views
-
We recently rolled out both Pulseway and the PSA replacing out Spiceworks help desk. Since the client portal is not as simple for user to create tickets within our mobile application, I am looking to use the PSA API but stuck. I am testing with the basic GET request to retrieve tickets and stuck on what server_name should be. Also for the authorization Bearer access_token, am I using the same token from the Pulseway webapp? Using this HTTP Request: GET https://server_name/api/servicedesk/tickets
- 2 replies
- 2.5k views
- 1 follower
-
Hoping someone can help with this as I can't find a clear answer... I have a simple query to call from the servicedesk/tickets endpoint, but I'm unable to get the filter working with a DateTime column. In the code block below, Filter 1 (on the TickerNumber) & Filter 2 (on the SLA Status) both work fine and give the expected results, but Filter 3 (on Actual Resolution) returns a (400): Bad Request error. It does this whether I create the datetime programmatically as in Filter3, or hard-code it as in Filter4. let Token = "TOKEN GOES HERE", BaseURL = "https://psa.pulseway.com/api/", Path = "servicedesk/tickets", Day = Date.Day…
- 2 replies
- 2.1k views
-
Hi, do you have a timetable for the REST API? As it stands I am interested in doing a 'proof-of-concept' but can imagine several things I'd like to see before it became useful as a central monitoring point. Off the top of my head... 1)Notifications that prompt for a reply eg 'Loss of power for 5 minutes and and UPS down to 20 minutes. Power off non-essential subsystems? (Y/N)') - that can be replied to over a mobile . The difference between this and 'send a command' would be application-specific rather than system-specific, for instance in the middle of a backup you might get a notification like 'Expected volume MONDAY but volume TUESDAY is loaded. 'C'ancel back…
-
- 2 replies
- 4.4k views
-
-
Hello, Trying to test the API using Postman, but I'm always getting the "ResponseCode": 403 with "ErrorMessage": "This token is invalid. Contact your administrator.". Any clue what might be the issue? I'm 100% sure the authentication, urls and parameters are ok. Thanks, NL
-
- 2 replies
- 1.6k views
- 1 follower
-
-
Hi guys, We have IT support ticketing system in vb.net. I like to integrate critical notifications, health and disk usage information. I made the ticketing system myself but I don't have much knowledge of the Rest API integration in vb.net apps. I got my token and sample codes from pulsway web site but I could not make it work. Is there any other sample code for retrieving data and updating text objects in vb.net? thanks. Kind Regards, Erkin
-
- 2 replies
- 6.9k views
-
-
Hey, The message counter of normal_notifications does not work. We had two normal notifications at a server but the counter is 0. Array ( [data] => Array ( [description] => Windows Server 2008 R2 Standard [uptime] => 0 days, 13 hours, 43 minutes [is_online] => 1 [computer_type] => windows [in_maintenance] => [external_ip_address] => ************ [critical_notifications] => 0 [elevated_notifications] => 0 [normal_notifications] => 0 [low_notifications] => 2 [client_version] => 5.3 [identifier] => *************************** [name] => ******** [group] => 3 Applicaties ) [meta] => Array ( [response_code] => …
- 2 replies
- 3.4k views
- 1 follower
-
Hello, Since February 29th 14:06 an application written en C# and using Rest API get blocked on a "Forbidden" error. It occurs in an application we've not modified. Our last successfull notification via Rest API occured on 12:11. Have you change something in the access to Rest API ? Thanks in advance for your help. Best regards, Guy
-
- 2 replies
- 4.3k views
-