Getting 403 when trying to use REST API. I have created a Basic Auth in Manage API Poller credentials and passing the test username and password.
Looking for help to resolve this issue.
sduraisa@sre-bastion-01:~$ curl -kv -u test:test 10.100.2.198:17778/.../Query
* Trying 10.100.2.198:17778...
* TCP_NODELAY set
* Connected to 10.100.2.198 (10.100.2.198) port 17778 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=SolarWinds-Orion
* start date: Apr 17 02:42:01 2021 GMT
* expire date: Dec 31 23:59:59 2039 GMT
* issuer: CN=SolarWinds-Orion
* SSL certificate verify result: self signed certificate (18), continuing anyway.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Server auth using Basic with user 'test'
* Using Stream ID: 1 (easy handle 0x55b163256310)
> GET /SolarWinds/InformationService/v3/Json/Query?query=SELECT+Vendor,IPAddress+FROM+Orion.Nodes+WHERE+Vendor=Cisco HTTP/2
> Host: 10.100.2.198:17778
> authorization: Basic dGVzdDp0ZXN0
> user-agent: curl/7.68.0
> accept: */*
>
* Connection state changed (MAX_CONCURRENT_STREAMS == 100)!
< HTTP/2 403
< content-length: 0
< server: Microsoft-HTTPAPI/2.0
< date: Tue, 21 Feb 2023 08:10:22 GMT
<
* Connection #0 to host 10.100.2.198 left intact