<?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 Re: Where can I find a CAS data table URI in VIYA? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Where-can-I-find-a-CAS-data-table-URI-in-VIYA/m-p/680016#M908</link>
    <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68234"&gt;@Ullsokk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'll provide some general information about table APIs, but the more information you can provide on your task/use case, the more details I can provide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First there is the &lt;A href="https://developer.sas.com/apis/rest/DataManagement/#data-tables" target="_self"&gt;Data Tables API&lt;/A&gt; as defined on &lt;A href="https://developer.sas.com/home.html" target="_self"&gt;developer.sas.com&lt;/A&gt;. Using curl, the most basic GET endpoint for this API takes the form:&lt;/P&gt;
&lt;PRE class="highlight shell tab-shell"&gt;&lt;CODE&gt;curl -X GET https://www.example.com/dataTables/dataSources/&lt;SPAN class="o"&gt;{&lt;/SPAN&gt;dataSourceId&lt;SPAN class="o"&gt;}&lt;/SPAN&gt;/tables/&lt;SPAN class="o"&gt;{&lt;/SPAN&gt;tableId&lt;SPAN class="o"&gt;}&lt;/SPAN&gt; &lt;SPAN class="se"&gt;\&lt;/SPAN&gt;
  -H &lt;SPAN class="s1"&gt;'Authorization: Bearer &amp;lt;access-token-goes-here&amp;gt;'&lt;/SPAN&gt; &lt;SPAN class="se"&gt;\ &lt;/SPAN&gt;
  -H &lt;SPAN class="s1"&gt;'Accept: application/vnd.sas.data.table+json'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is an example url:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="c3u83-0-0"&gt;&lt;A href="https://mysasserver.sas.com" target="_blank"&gt;https://mysasserver.sas.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;/dataTables/dataSources/cas~fs~cas-shared-default~fs~public/tables/CAMPAIGN_POST_TEST&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;There are many other endpoints within this API for tables. Additional&amp;nbsp;&lt;A href="https://github.com/sassoftware/devsascom-rest-api-samples/blob/master/DataManagement/dataTables.md" target="_self"&gt;examples are on GitHub&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;You also may consider the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=caspg&amp;amp;docsetTarget=cas-table-TblOfActions.htm&amp;amp;locale=en" target="_self"&gt;tables CAS action set&lt;/A&gt;. This API provides a host of other table endpoints.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;An example of loading a table to memory API call is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;A href="https://mysasserver.sas.com" target="_blank"&gt;https://mysasserver.sas.com&lt;/A&gt;&lt;/SPAN&gt;/cas-shared-default-http/cas/sessions/&lt;SPAN class="resolvedVariable"&gt;{{sessionid}}&lt;/SPAN&gt;/actions/table.loadTable&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-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&lt;SPAN&gt;I hope these at least get you started on using the APIs.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 28 Aug 2020 13:20:20 GMT</pubDate>
    <dc:creator>joeFurbee</dc:creator>
    <dc:date>2020-08-28T13:20:20Z</dc:date>
    <item>
      <title>Where can I find a CAS data table URI in VIYA?</title>
      <link>https://communities.sas.com/t5/Developers/Where-can-I-find-a-CAS-data-table-URI-in-VIYA/m-p/679997#M907</link>
      <description>&lt;P&gt;I have seen screenshots of details showing a CAS table URI, but I can't find out where in VIYA I can find those details. Have also tried getting the URI thourgh code, which works for tables on our 9.4 environment, but not on the CAS libs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Need the URI for testing out the API functions&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 12:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Where-can-I-find-a-CAS-data-table-URI-in-VIYA/m-p/679997#M907</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2020-08-28T12:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find a CAS data table URI in VIYA?</title>
      <link>https://communities.sas.com/t5/Developers/Where-can-I-find-a-CAS-data-table-URI-in-VIYA/m-p/680016#M908</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/68234"&gt;@Ullsokk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'll provide some general information about table APIs, but the more information you can provide on your task/use case, the more details I can provide.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First there is the &lt;A href="https://developer.sas.com/apis/rest/DataManagement/#data-tables" target="_self"&gt;Data Tables API&lt;/A&gt; as defined on &lt;A href="https://developer.sas.com/home.html" target="_self"&gt;developer.sas.com&lt;/A&gt;. Using curl, the most basic GET endpoint for this API takes the form:&lt;/P&gt;
&lt;PRE class="highlight shell tab-shell"&gt;&lt;CODE&gt;curl -X GET https://www.example.com/dataTables/dataSources/&lt;SPAN class="o"&gt;{&lt;/SPAN&gt;dataSourceId&lt;SPAN class="o"&gt;}&lt;/SPAN&gt;/tables/&lt;SPAN class="o"&gt;{&lt;/SPAN&gt;tableId&lt;SPAN class="o"&gt;}&lt;/SPAN&gt; &lt;SPAN class="se"&gt;\&lt;/SPAN&gt;
  -H &lt;SPAN class="s1"&gt;'Authorization: Bearer &amp;lt;access-token-goes-here&amp;gt;'&lt;/SPAN&gt; &lt;SPAN class="se"&gt;\ &lt;/SPAN&gt;
  -H &lt;SPAN class="s1"&gt;'Accept: application/vnd.sas.data.table+json'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is an example url:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;SPAN data-offset-key="c3u83-0-0"&gt;&lt;A href="https://mysasserver.sas.com" target="_blank"&gt;https://mysasserver.sas.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;/dataTables/dataSources/cas~fs~cas-shared-default~fs~public/tables/CAMPAIGN_POST_TEST&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;There are many other endpoints within this API for tables. Additional&amp;nbsp;&lt;A href="https://github.com/sassoftware/devsascom-rest-api-samples/blob/master/DataManagement/dataTables.md" target="_self"&gt;examples are on GitHub&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;You also may consider the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=caspg&amp;amp;docsetTarget=cas-table-TblOfActions.htm&amp;amp;locale=en" target="_self"&gt;tables CAS action set&lt;/A&gt;. This API provides a host of other table endpoints.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;An example of loading a table to memory API call is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;&lt;SPAN class="resolvedVariable"&gt;&lt;A href="https://mysasserver.sas.com" target="_blank"&gt;https://mysasserver.sas.com&lt;/A&gt;&lt;/SPAN&gt;/cas-shared-default-http/cas/sessions/&lt;SPAN class="resolvedVariable"&gt;{{sessionid}}&lt;/SPAN&gt;/actions/table.loadTable&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-offset-key="c3u83-1-0"&gt;with body contents:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;"caslib"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"CASUSER(sasdemo)"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"importOptions"&lt;/SPAN&gt;&lt;SPAN&gt;:{&lt;/SPAN&gt;&lt;SPAN&gt;"fileType"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"AUTO"&lt;/SPAN&gt;&lt;SPAN&gt;},&lt;/SPAN&gt;&lt;SPAN&gt;"path"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"DATA_ON_THE_FLY.sashdat"&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"casout"&lt;/SPAN&gt;&lt;SPAN&gt;:{&lt;/SPAN&gt;&lt;SPAN&gt;"caslib"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"PUBLIC"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"flight_data"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"promote"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;true&lt;/SPAN&gt;&lt;SPAN&gt;}}&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;I hope these at least get you started on using the APIs.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Aug 2020 13:20:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Where-can-I-find-a-CAS-data-table-URI-in-VIYA/m-p/680016#M908</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2020-08-28T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Where can I find a CAS data table URI in VIYA?</title>
      <link>https://communities.sas.com/t5/Developers/Where-can-I-find-a-CAS-data-table-URI-in-VIYA/m-p/680028#M909</link>
      <description>I have the API up and running, but was struggling to find the table URIs. Turns out they can be found in the Explore Lineage pane i Viya, by searching for the table name and looking at details.</description>
      <pubDate>Fri, 28 Aug 2020 13:50:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Where-can-I-find-a-CAS-data-table-URI-in-VIYA/m-p/680028#M909</guid>
      <dc:creator>Ullsokk</dc:creator>
      <dc:date>2020-08-28T13:50:25Z</dc:date>
    </item>
  </channel>
</rss>

