BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Unknown2SAS
Calcite | Level 5

 Hi,

Gone through SAS Viya REST API and client api samples provided, but dint came across any example for getting the list published models using REST or client API.  Is this supported? Can some expert redirect me to right documentation and/or example for the same.

Went through https://developer.sas.com/guides/rest.html#0be904a7-027b-4d35-b6e6-b31b65d491b5 and java samples on git.

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
joeFurbee
Community Manager

Hi Again,

The list published models API request is actually defined in the Model Publish API doc

 

Here is the general structure of the rest call:

 

 

curl -X GET https://www.example.com/modelPublish/models \
  -H 'Authorization: Bearer <access-token-goes-here>' \ 
  -H 'Accept: application/vnd.sas.collection+json'

 

 


Join us for SAS Community Trivia
SAS Bowl XXXVIII, SAS Programming: Getting Started
Wednesday, February 14, 2024, at 10 a.m. ET | #SASBowl

View solution in original post

3 REPLIES 3
joeFurbee
Community Manager

Hi @Unknown2SAS

I'm moving this thread to the Developers Community. All Coding on SAS Viya Community have been relocated there and this community will be sunset.

 

Also, I'll look into getting you the proper REST call to get a list of published models. I'll use the Model Management REST API documentation located here.


Join us for SAS Community Trivia
SAS Bowl XXXVIII, SAS Programming: Getting Started
Wednesday, February 14, 2024, at 10 a.m. ET | #SASBowl

joeFurbee
Community Manager

Hi Again,

The list published models API request is actually defined in the Model Publish API doc

 

Here is the general structure of the rest call:

 

 

curl -X GET https://www.example.com/modelPublish/models \
  -H 'Authorization: Bearer <access-token-goes-here>' \ 
  -H 'Accept: application/vnd.sas.collection+json'

 

 


Join us for SAS Community Trivia
SAS Bowl XXXVIII, SAS Programming: Getting Started
Wednesday, February 14, 2024, at 10 a.m. ET | #SASBowl

Unknown2SAS
Calcite | Level 5
Thanks joeFurbee. This helped!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1343 views
  • 0 likes
  • 2 in conversation