Open madpipeline opened 2 months ago
I get a "loading screen" html web page if I try to do the same request using curl:
curl -vvv -XGET -H "Authorization: GenieKey $opsGenieAPIKey" "https://mycompany.app.opsgenie.com/v2/alerts?searchIdentifier=$queueName"
according to the API docs for that endpoint none of the fields are mandatory, so providing just one should be valid.
It seems that I was confused by the variable OpsGenieAPIURL
in the Golang docs, and I've assumed that since I'm not using "the global" OpsGenie instance and I'm using a customer specific tenant, I should be using the tenant specific domain.
After some testing I found that I should be using always api.opsgenie.com
or api.eu.opsgenie.com
if I'm using the EU instance.
Both work in my case, so I'm unclear on the difference between the EU and non EU instance.
I'd propose that this should be clarified in the golang SDK documentation on de description of the OpsGenieAPIURL
variable.
There is a related Atlassian support ticket for this issue: https://support.atlassian.com/requests/OGSP-132626/
Receiving error:
when trying doing:
The documentation does not list which of the fields of
ListAlertRequest
are mandatory, and there is no example code on how to use theList()
function properly.