<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Accesing the SAS 9.4 M6 RTDM 6.5 SASDecisionServicesAdministration/rest/variables in Decisioning</title>
    <link>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/678839#M9</link>
    <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use a GET method to access the variables collection of the Decision Services Admin for RTDM. The RTDM Administrator's Guide 6.5 (page 472) just mentions that authentication is required as seen below excerpt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The /variables collection represents all of the variables in the system.&lt;BR /&gt;The /variables collection has a GET method. The GET method requires &lt;U&gt;&lt;STRONG&gt;authentication&lt;/STRONG&gt; &lt;/U&gt;and has a request URL of GET "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried researching and couldn't find any direct results on how to go about this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried searching online about the SAS Web Server Authentication but I don't know if this is the right reference guide for my problem or not since this one points to "/SASLogon/login" instead of "SASDecisionServicesAdministration/rest/variables"&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=bimtag&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n0k64m6cvfcvy1n181b3cwn659kx.htm&amp;amp;locale=en#n0js2lal8zxdt2n10dcjedix50aa"&gt;https://documentation.sas.com/?docsetId=bimtag&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n0k64m6cvfcvy1n181b3cwn659kx.htm&amp;amp;locale=en#n0js2lal8zxdt2n10dcjedix50aa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample screenshot of the Error I encounter below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="ERROR_authentication.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48571iFD14AED8D7A1412D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ERROR_authentication.png" alt="ERROR_authentication.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help to point to the right direction would be good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;JC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. I tried performing registration of client ID and secret for SAS Viya: Intelligent Decisioning. I got that to work mainly because of the available resources online to demonstrate how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 10:22:11 GMT</pubDate>
    <dc:creator>jcawesome</dc:creator>
    <dc:date>2020-08-24T10:22:11Z</dc:date>
    <item>
      <title>Accesing the SAS 9.4 M6 RTDM 6.5 SASDecisionServicesAdministration/rest/variables</title>
      <link>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/678839#M9</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use a GET method to access the variables collection of the Decision Services Admin for RTDM. The RTDM Administrator's Guide 6.5 (page 472) just mentions that authentication is required as seen below excerpt:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"The /variables collection represents all of the variables in the system.&lt;BR /&gt;The /variables collection has a GET method. The GET method requires &lt;U&gt;&lt;STRONG&gt;authentication&lt;/STRONG&gt; &lt;/U&gt;and has a request URL of GET "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried researching and couldn't find any direct results on how to go about this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried searching online about the SAS Web Server Authentication but I don't know if this is the right reference guide for my problem or not since this one points to "/SASLogon/login" instead of "SASDecisionServicesAdministration/rest/variables"&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=bimtag&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n0k64m6cvfcvy1n181b3cwn659kx.htm&amp;amp;locale=en#n0js2lal8zxdt2n10dcjedix50aa"&gt;https://documentation.sas.com/?docsetId=bimtag&amp;amp;docsetVersion=9.4&amp;amp;docsetTarget=n0k64m6cvfcvy1n181b3cwn659kx.htm&amp;amp;locale=en#n0js2lal8zxdt2n10dcjedix50aa&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a sample screenshot of the Error I encounter below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="ERROR_authentication.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48571iFD14AED8D7A1412D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ERROR_authentication.png" alt="ERROR_authentication.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help to point to the right direction would be good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;JC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. I tried performing registration of client ID and secret for SAS Viya: Intelligent Decisioning. I got that to work mainly because of the available resources online to demonstrate how to do it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 10:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/678839#M9</guid>
      <dc:creator>jcawesome</dc:creator>
      <dc:date>2020-08-24T10:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Accesing the SAS 9.4 M6 RTDM 6.5 SASDecisionServicesAdministration/rest/variables</title>
      <link>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/679361#M10</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I figured out the solution to this problem in this SAS Communities Post:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4M4-Proc-HTTP-Passing-Cookie-for-Web-Token-Authentication/td-p/427436" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4M4-Proc-HTTP-Passing-Cookie-for-Web-Token-Authentication/td-p/427436&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once authentication is established the rest of the REST APIs to the SAS Decision Services Administration should be straightforward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's another reference for those who wants to use SAS code instead of Postman:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings16/SAS6363-2016.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings16/SAS6363-2016.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;JC&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 06:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/679361#M10</guid>
      <dc:creator>jcawesome</dc:creator>
      <dc:date>2020-08-26T06:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Accesing the SAS 9.4 M6 RTDM 6.5 SASDecisionServicesAdministration/rest/variables</title>
      <link>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/679362#M11</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/126827"&gt;@jcawesome&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;You need to authenticate against the SAS Logon service - the same one that you enter a username and password into when accessing SAS Web App UIs, like CI Studio.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are some good articles out there on how to do this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/SAS-9-4M4-Proc-HTTP-Passing-Cookie-for-Web-Token-Authentication/td-p/427436" target="_self"&gt;This one&lt;/A&gt; focuses on using SAS PROC HTTP as the client rather than Postman, but the concepts are the same - and some good follow up conversation.&lt;/P&gt;
&lt;P&gt;In summary the sequence is:&lt;/P&gt;
&lt;P&gt;1. Get a "Ticket Granting Ticket" (TGT) from /SASLogon using a SAS metadata username and password.&lt;/P&gt;
&lt;P&gt;2. Get a "Service Ticket" (ST) for a location within SAS Decision Services using the TGT from Step 1&lt;/P&gt;
&lt;P&gt;3. Submit your SAS DS API request using the ST from Step 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are some screenshots from postman:&lt;/P&gt;
&lt;P&gt;First is my collection with a set of requests to do Steps 1 - 3.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DS API Requests.PNG" style="width: 422px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48643iF3131183E2AA9387/image-size/large?v=v2&amp;amp;px=999" role="button" title="DS API Requests.PNG" alt="DS API Requests.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Setup an Environment in postman to set some variables to parameterise (but strictly speaking this is optional)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Environment_2.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48644i53B636338CEBF3EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Environment_2.png" alt="Environment_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then use the "Get TGT" to authenticate with /SASLogon:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Get TGT.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48645i07D896A1FE6ED97F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Get TGT.PNG" alt="Get TGT.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This will return you a ticket.&lt;/P&gt;
&lt;P&gt;Then we need to set the location of the API we want to use and request the Service Ticket (ST) for it:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Set Location_1.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48646iAA0211E3F6C4E95C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Set Location_1.PNG" alt="Set Location_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Set Location_2.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48647iA4D387CF5B2E3523/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Set Location_2.PNG" alt="Set Location_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;and we get back a ST in the response&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Set Location_3.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48648iFEAB4C9B4D1CFD9F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Set Location_3.PNG" alt="Set Location_3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now we can hit the Decision Services API using the ST. If you want to request different RTDM objects (decision flows, activities etc) you can use the different location in the request above based upon the correct endpoint from the documentation.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="List_1.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48649i7BB162C5E844DB95/image-size/medium?v=v2&amp;amp;px=400" role="button" title="List_1.PNG" alt="List_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;remember to include a referrer:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="List_2.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48651iDA07CC0E2F53BD85/image-size/medium?v=v2&amp;amp;px=400" role="button" title="List_2.PNG" alt="List_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then in the response body you will see a list of RTDM Decision Variables:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="response.PNG" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/48654i14851D2C594CDCA1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="response.PNG" alt="response.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From here you can then use different requests to update variable values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Attached is the Postman collection and environment I used for this (rename then to json to import into Postman).&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;James&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 06:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/679362#M11</guid>
      <dc:creator>JamesAnderson</dc:creator>
      <dc:date>2020-08-26T06:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Accesing the SAS 9.4 M6 RTDM 6.5 SASDecisionServicesAdministration/rest/variables</title>
      <link>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/679382#M12</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/195823"&gt;@JamesAnderson&lt;/a&gt; . It's working now.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The screenshots and the step by step approach helped me find what I was looking for.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;JC&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 09:18:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Decisioning/Accesing-the-SAS-9-4-M6-RTDM-6-5/m-p/679382#M12</guid>
      <dc:creator>jcawesome</dc:creator>
      <dc:date>2020-08-26T09:18:44Z</dc:date>
    </item>
  </channel>
</rss>

