<?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: Newbie to Python and NASDK in Python Discussions</title>
    <link>https://community.netapp.com/t5/Python-Discussions/Newbie-to-Python-and-NASDK/m-p/135906#M20</link>
    <description>&lt;P&gt;Here is the way i tried this that basically gave me the 3 ciphers but not the name of them, just says none.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attribs = xo.child_get("attributes")&lt;/P&gt;&lt;P&gt;result=attribs.children_get()&lt;/P&gt;&lt;P&gt;for res in result:&lt;/P&gt;&lt;P&gt;i = res.child_get_string("interface")&lt;/P&gt;&lt;P&gt;f = res.child_get_string("is-fips-enabled")&lt;/P&gt;&lt;P&gt;c = res.child_get_string("supported-ciphers")&lt;/P&gt;&lt;P&gt;# p1 = res.child_get("supported-protocols").child_get_string("security-supported-protocols")&lt;/P&gt;&lt;P&gt;print (i)&lt;/P&gt;&lt;P&gt;print (f)&lt;/P&gt;&lt;P&gt;print (c)&lt;/P&gt;&lt;P&gt;# print (p1)&lt;/P&gt;&lt;P&gt;pt = res.child_get("supported-protocols")&lt;/P&gt;&lt;P&gt;ptres = pt.children_get()&lt;/P&gt;&lt;P&gt;for p in iter(ptres):&lt;/P&gt;&lt;P&gt;p1 = p.child_get_string("security-supported-protocols")&lt;/P&gt;&lt;P&gt;print (p1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT_____________________&lt;/P&gt;&lt;P&gt;Received:&lt;/P&gt;&lt;P&gt;&amp;lt;results status="passed"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;attributes&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;security-config-info&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cluster-security-config-ready&amp;gt;true&amp;lt;/cluster-security-config-ready&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;interface&amp;gt;ssl&amp;lt;/interface&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;is-fips-enabled&amp;gt;false&amp;lt;/is-fips-enabled&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;supported-ciphers&amp;gt;ALL:!RC4:!LOW:!aNULL:!EXP:!eNULL&amp;lt;/supported-ciphers&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1.2&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1.1&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/security-config-info&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;/attributes&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;ssl&lt;BR /&gt;false&lt;BR /&gt;ALL:!RC4:!LOW:!aNULL:!EXP:!eNULL&lt;BR /&gt;None&lt;BR /&gt;None&lt;BR /&gt;None&lt;/P&gt;</description>
    <pubDate>Thu, 09 Nov 2017 14:47:48 GMT</pubDate>
    <dc:creator>jet</dc:creator>
    <dc:date>2017-11-09T14:47:48Z</dc:date>
    <item>
      <title>Newbie to Python and NASDK</title>
      <link>https://community.netapp.com/t5/Python-Discussions/Newbie-to-Python-and-NASDK/m-p/135905#M19</link>
      <description>&lt;P&gt;I am new to using Python and the NASDK and was trying to determine how to return some data from the security-config-get api.&amp;nbsp; Here is some sample code I used to gather the data and the output that I can get from it. As you can see I can get the&amp;nbsp;some of the data out, but&amp;nbsp;I only get one of the supported ciphers.&amp;nbsp;&amp;nbsp;I have tried several ways to use a&amp;nbsp;'for in' loop.&amp;nbsp;&amp;nbsp;It does show me that there are 3 ciphers but the i have not been able&amp;nbsp;to figure out how to get the 3 actual names into a variable to use for verification.&amp;nbsp; I am sure whatever the answer to this is would/could be used in similar situations&amp;nbsp;with other API calls.&amp;nbsp; Thanks&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;api = NaElement("security-config-get")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xi = NaElement("desired-attributes")&lt;/P&gt;&lt;P&gt;api.child_add(xi)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xi1 = NaElement("security-config-info")&lt;/P&gt;&lt;P&gt;xi.child_add(xi1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xi1.child_add_string("cluster-security-config-ready","&amp;lt;cluster-security-config-ready&amp;gt;")&lt;/P&gt;&lt;P&gt;xi1.child_add_string("interface","&amp;lt;interface&amp;gt;")&lt;/P&gt;&lt;P&gt;xi1.child_add_string("is-fips-enabled","&amp;lt;is-fips-enabled&amp;gt;")&lt;/P&gt;&lt;P&gt;xi1.child_add_string("supported-ciphers","&amp;lt;supported-ciphers&amp;gt;")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xi2 = NaElement("supported-protocols")&lt;/P&gt;&lt;P&gt;xi1.child_add(xi2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xi2.child_add_string("security-supported-protocols","&amp;lt;security-supported-protocols&amp;gt;")&lt;/P&gt;&lt;P&gt;api.child_add_string("interface","ssl")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;xo = s.invoke_elem(api)&lt;/P&gt;&lt;P&gt;if (xo.results_status() == "failed") :&lt;/P&gt;&lt;P&gt;print ("Error:\n")&lt;/P&gt;&lt;P&gt;print (xo.sprintf())&lt;/P&gt;&lt;P&gt;sys.exit (1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;print ("Received:\n")&lt;/P&gt;&lt;P&gt;print (xo.sprintf())&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attribs = xo.child_get("attributes")&lt;/P&gt;&lt;P&gt;result=attribs.children_get()&lt;/P&gt;&lt;P&gt;for res in result:&lt;/P&gt;&lt;P&gt;i = res.child_get_string("interface")&lt;/P&gt;&lt;P&gt;f = res.child_get_string("is-fips-enabled")&lt;/P&gt;&lt;P&gt;c = res.child_get_string("supported-ciphers")&lt;/P&gt;&lt;P&gt;p1 = res.child_get("supported-protocols").child_get_string("security-supported-protocols")&lt;/P&gt;&lt;P&gt;print (i)&lt;/P&gt;&lt;P&gt;print (f)&lt;/P&gt;&lt;P&gt;print (c)&lt;/P&gt;&lt;P&gt;print (p1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT___________________&lt;/P&gt;&lt;P&gt;Received:&lt;/P&gt;&lt;P&gt;&amp;lt;results status="passed"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;attributes&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;security-config-info&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cluster-security-config-ready&amp;gt;true&amp;lt;/cluster-security-config-ready&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;interface&amp;gt;ssl&amp;lt;/interface&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;is-fips-enabled&amp;gt;false&amp;lt;/is-fips-enabled&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;supported-ciphers&amp;gt;ALL:!RC4:!LOW:!aNULL:!EXP:!eNULL&amp;lt;/supported-ciphers&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1.2&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1.1&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/security-config-info&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;/attributes&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;ssl&lt;BR /&gt;false&lt;BR /&gt;ALL:!RC4:!LOW:!aNULL:!EXP:!eNULL&lt;BR /&gt;tlsv1.2&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 14:23:04 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/Newbie-to-Python-and-NASDK/m-p/135905#M19</guid>
      <dc:creator>jet</dc:creator>
      <dc:date>2025-06-04T14:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie to Python and NASDK</title>
      <link>https://community.netapp.com/t5/Python-Discussions/Newbie-to-Python-and-NASDK/m-p/135906#M20</link>
      <description>&lt;P&gt;Here is the way i tried this that basically gave me the 3 ciphers but not the name of them, just says none.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;attribs = xo.child_get("attributes")&lt;/P&gt;&lt;P&gt;result=attribs.children_get()&lt;/P&gt;&lt;P&gt;for res in result:&lt;/P&gt;&lt;P&gt;i = res.child_get_string("interface")&lt;/P&gt;&lt;P&gt;f = res.child_get_string("is-fips-enabled")&lt;/P&gt;&lt;P&gt;c = res.child_get_string("supported-ciphers")&lt;/P&gt;&lt;P&gt;# p1 = res.child_get("supported-protocols").child_get_string("security-supported-protocols")&lt;/P&gt;&lt;P&gt;print (i)&lt;/P&gt;&lt;P&gt;print (f)&lt;/P&gt;&lt;P&gt;print (c)&lt;/P&gt;&lt;P&gt;# print (p1)&lt;/P&gt;&lt;P&gt;pt = res.child_get("supported-protocols")&lt;/P&gt;&lt;P&gt;ptres = pt.children_get()&lt;/P&gt;&lt;P&gt;for p in iter(ptres):&lt;/P&gt;&lt;P&gt;p1 = p.child_get_string("security-supported-protocols")&lt;/P&gt;&lt;P&gt;print (p1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OUTPUT_____________________&lt;/P&gt;&lt;P&gt;Received:&lt;/P&gt;&lt;P&gt;&amp;lt;results status="passed"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;attributes&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;security-config-info&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;cluster-security-config-ready&amp;gt;true&amp;lt;/cluster-security-config-ready&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;interface&amp;gt;ssl&amp;lt;/interface&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;is-fips-enabled&amp;gt;false&amp;lt;/is-fips-enabled&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;supported-ciphers&amp;gt;ALL:!RC4:!LOW:!aNULL:!EXP:!eNULL&amp;lt;/supported-ciphers&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1.2&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1.1&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security-supported-protocols&amp;gt;tlsv1&amp;lt;/security-supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/supported-protocols&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;lt;/security-config-info&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;lt;/attributes&amp;gt;&lt;BR /&gt;&amp;lt;/results&amp;gt;&lt;/P&gt;&lt;P&gt;ssl&lt;BR /&gt;false&lt;BR /&gt;ALL:!RC4:!LOW:!aNULL:!EXP:!eNULL&lt;BR /&gt;None&lt;BR /&gt;None&lt;BR /&gt;None&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 14:47:48 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Python-Discussions/Newbie-to-Python-and-NASDK/m-p/135906#M20</guid>
      <dc:creator>jet</dc:creator>
      <dc:date>2017-11-09T14:47:48Z</dc:date>
    </item>
  </channel>
</rss>

