<?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 Getting Action input list using REST/RESTCONF in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-action-input-list-using-rest-restconf/m-p/3950558#M4444</link>
    <description>&lt;P&gt;Hi I'm trying to get the inputs defined for a package action using REST API ¿Do you have any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can list actions (operations), this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://127.0.0.1:8080/api/running/webui-l2vc" target="_blank" rel="noopener"&gt;/api/running/webui-l2vc&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;{
    "webui-l2vc:webui-l2vc": {
        "operations": {
            "prechecks": "/api/running/webui-l2vc/_operations/prechecks",
            "configuration": "/api/running/webui-l2vc/_operations/configuration",
            "postchecks": "/api/running/webui-l2vc/_operations/postchecks",
            "delete": "/api/running/webui-l2vc/_operations/delete"
        }
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Oct 2019 15:27:33 GMT</pubDate>
    <dc:creator>DanielSan6998</dc:creator>
    <dc:date>2019-10-30T15:27:33Z</dc:date>
    <item>
      <title>Getting Action input list using REST/RESTCONF</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-action-input-list-using-rest-restconf/m-p/3950558#M4444</link>
      <description>&lt;P&gt;Hi I'm trying to get the inputs defined for a package action using REST API ¿Do you have any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can list actions (operations), this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://127.0.0.1:8080/api/running/webui-l2vc" target="_blank" rel="noopener"&gt;/api/running/webui-l2vc&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;{
    "webui-l2vc:webui-l2vc": {
        "operations": {
            "prechecks": "/api/running/webui-l2vc/_operations/prechecks",
            "configuration": "/api/running/webui-l2vc/_operations/configuration",
            "postchecks": "/api/running/webui-l2vc/_operations/postchecks",
            "delete": "/api/running/webui-l2vc/_operations/delete"
        }
    }
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Oct 2019 15:27:33 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-action-input-list-using-rest-restconf/m-p/3950558#M4444</guid>
      <dc:creator>DanielSan6998</dc:creator>
      <dc:date>2019-10-30T15:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Action input list using REST/RESTCONF</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-action-input-list-using-rest-restconf/m-p/3951295#M4452</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Hi I'm trying to get the inputs defined for a package action using REST API ¿Do you have any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can list actions (operations), this way:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://127.0.0.1:8080/api/running/webui-l2vc" target="_blank" rel="noopener"&gt;/api/running/webui-l2vc&lt;/A&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;Hi,&lt;/P&gt;
&lt;P&gt;First of all, you should REALLY migrate to RESTCONF, since the legacy REST interface has already been deprecated, and it will be removed in a future release.&lt;/P&gt;
&lt;P&gt;Now, as for your original question, it is not possible to get action inputs directly, either in REST or in RESTCONF. The way to do it in RESTCONF would be to get the source of the relevant yang model. See&amp;nbsp;&lt;A href="https://tools.ietf.org/html/rfc8040#section-3.7" target="_blank"&gt;https://tools.ietf.org/html/rfc8040#section-3.7&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So, in NSO, you would first do a GET on:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/restconf/data/ietf-yang-library:modules-state&lt;/PRE&gt;
&lt;P&gt;This would give you all the loaded modules (mounted in the top-level global mount-point).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find the module you are interested in. The output will have a 'schema' node, that contains the location of the module's schema. Do a GET on that location. For example, it could be something like:&lt;/P&gt;
&lt;PRE&gt;/restconf/tailf/modules/webui-l2vc&lt;/PRE&gt;
&lt;P&gt;This will give you the whole module, from which you can look up the action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/Ram&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2019 16:44:57 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/getting-action-input-list-using-rest-restconf/m-p/3951295#M4452</guid>
      <dc:creator>ramkraja</dc:creator>
      <dc:date>2019-10-31T16:44:57Z</dc:date>
    </item>
  </channel>
</rss>

