cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
krubin
Level 7

Web API /operations/api/updates/search

Jump to solution

Hi,

I tried setting this Post up in Postman. I used a bearer token for authorization. My url was

https://flex<mysite>.flexnetoperations.com/flexnet/operations/api/updates/search

The body used was:

{
  "batchSize"0,
  "pageNumber"0,
  "searchCriteria": {
    "updateId": {
      "searchType""STARTS_WITH",
      "value""BMS"
    },
    "updateName": {
      "searchType""STARTS_WITH",
      "value""BMS"
    }
  }
}
 
I received 401-error-
<body>Full authentication is required to access this resource</body>
 
My understanding is that this would give me a list of my updates starting with BMS.
 
Please advise.
Thank you,
Ken
0 Kudos
(1) Solution
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi Ken,

Are  you working in your Production or UAT environment?  The URL in your screenshot is missing the "-uat" if you are working in UAT.  I tried a search on your Updates in UAT with names beginning with "Demo" and was successful:

Update_Search.jpg

Thanks,

Jim

View solution in original post

0 Kudos
(4) Replies
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi Ken,

The REST APIs to manage Updates in FlexNet Operations require Basic Authentication with your Producer Portal username and password. 

Thanks,

Jim 

0 Kudos

Hi Jim,

I tried this with my producer portal username and password both in Swagger, Postman and in my implementation code.

In Swagger, I am repeatedly asked for my credentials with the popup attached to this replay.

 

Both Postman and my code return 401 unauthorized.

The full response from my code is:

- response {StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
{
X-Frame-Options: SAMEORIGIN
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
Pragma: no-cache
X-Content-Type-Options: nosniff
Vary: User-Agent
Access-Control-Allow-Credentials: true
Access-Control-Allow-Methods: GET
Keep-Alive: timeout=10, max=57
Connection: Keep-Alive
Cache-Control: no-store, must-revalidate, no-cache, max-age=0
Date: Thu, 19 Nov 2020 15:18:59 GMT
Set-Cookie: JSESSIONID=46Q7SeYl_gqJwoqaWmRXOcYL.sc-fnoapp-01; path=/flexnet
Set-Cookie: NSC_10.100.1.39_GOPXFC_443=14b5a3d94e3ccba681f7b2ff48ee03d4bb9c24581b8369761478e63378ce464c06e23611;path=/;secure;httponly
Server: server
WWW-Authenticate: Basic realm="Spring Security Application"
Strict-Transport-Security: max-age=4294967294
Content-Length: 184
Content-Type: text/html; charset=UTF-8
Expires: 0
}} System.Net.Http.HttpResponseMessage

 

Please advise.

Thank you,

Ken

0 Kudos
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi Ken,

Are  you working in your Production or UAT environment?  The URL in your screenshot is missing the "-uat" if you are working in UAT.  I tried a search on your Updates in UAT with names beginning with "Demo" and was successful:

Update_Search.jpg

Thanks,

Jim

0 Kudos

Thanks Jim! You are awesome!

0 Kudos