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

Question about assembling a list of multiple updates

Jump to solution

Hi,

I noticed that when a update ie. https://flexxxx-ns-uat.flexnetoperations.com/uai/2.0/updates is requested, the
message body requires the "From" package. Just wondering if I've missed any API call that can provide the full list of updates as opposed to just one at a time?

When the updates are just accessible one at a time through the Rest API, our device is required to get the list of "from" packages. It's not difficult to do, but curious if we must do this to build the list of updates in the device.?

 

Regards and thanks.

Ken

0 Kudos
(1) Solution
ejohnson1
Flexera Alumni

Hi @krubin ,

 

No, I don't believe you've missed anything. Requesting 1.0/updates or 2.0/signed-updates takes a single parameter and value for updateFromPkgId , which is the download package ID the device is updating from.

 

The Swagger APIs for endpoints / devices are documented as follows -> https://flexXXXX-ns.flexnetoperations.com/uai/documentation/swagger-ui.html#/Updates

updates.png

 

View solution in original post

(4) Replies
ejohnson1
Flexera Alumni

Hi @krubin ,

 

No, I don't believe you've missed anything. Requesting 1.0/updates or 2.0/signed-updates takes a single parameter and value for updateFromPkgId , which is the download package ID the device is updating from.

 

The Swagger APIs for endpoints / devices are documented as follows -> https://flexXXXX-ns.flexnetoperations.com/uai/documentation/swagger-ui.html#/Updates

updates.png

 

Thank you for the quick reply Eric! Very much appreciated!
0 Kudos

Hi Ken,

Jim and I chatted and discovered another way, which may be overkill, depending upon how many updates you're authoring.

Using the REST API Controllers - https://flexXXXX.flexnetoperations.com/flexnet/swagger-ui.html#/

there's an API to get all updates. 

Updates1.png

The FNO configuration requirements is then to create a 'Producer' type User (optional shared login) and assign only two permissions

1. Execute Web Services and

2. View and Manage Updates) 

Some reasons why this might not be a better alternative than the client UAI APIs are it will return every Update (or a good thing) anyone has authored in the tenant. And the authentication is username+password instead of JWT.

Thanks,

Eric

0 Kudos

Hi ,

I attempted the find updates API request two different ways and was unsuccessful.

1. I attempted "Try it out" from the Swagger docs.


The request :curl -X GET --header 'Accept: text/html' 'https://mysite.flexnetoperations.com/flexnet/operations/api/updates'
Response code: 401 Unauthorized

Response body:
<html><head><title>Error</title></head><body>The information you entered was not correct. Please try again or contact the FlexNet administrator.
[Incident# 9126-521108040]</body></html>

The app in Swagger continually asked me for my username and password and I entered the credentials used for the FN Operations portal. Eventually I

hit the 'X' on the box asking for credentials.

2. Using Postman

I received the same result using postman, however I was not asked for credentials. They were in header for basic auth.

I also attempted to modify the URL in postman with mysite-ns-uat substitued for mysite in https://mysite.flexnetoperations.com/flexnet/operations/api/updates

I was pretty sure that my account has the privs:

1. Execute Web Services and

2. View and Manage Updates

 

Please advise.

Thank you!

Ken

 

 

0 Kudos