<?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 {'additional_info': {'_schema': ['Invalid input type.']}} on MetroclusterDiagnostics() in Software Development Kit (SDK) and API Discussions</title>
    <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/additional-info-schema-Invalid-input-type-on-MetroclusterDiagnostics/m-p/453550#M3287</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get&amp;nbsp;&lt;SPAN&gt;Metrocluster diagnostics information via&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;netapp_ontap python library as shown below but the p&lt;/SPAN&gt;&lt;SPAN&gt;ython code returns&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;'additional_info'&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;SPAN&gt;'_schema'&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;SPAN&gt;'Invalid input type.'&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;]}}&lt;/EM&gt; error but API (https://&amp;lt;cluster ip&amp;gt;/docs/api/#/cluster/metrocluster_diagnostics_get) shows the output without any issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone had the same issue and the resolution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;Python code:&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        try:
            config.CONNECTION = HostConnection(cluster_ip, username=cluster_username, password=cluster_password, verify=False)
            resource = MetroclusterDiagnostics()
            resource.get(fields="cluster.details")
            print(resource)
        except Exception as e:
            logging.error(e)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Python code Error :&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR Caused by ValidationError({'cluster': {'details': {0: {'checks': {0: {'additional_info': {'_schema': ['Invalid input type.']}}, 1: {'additional_info': {'_schema': ['Invalid input type.']}}}}, 1: {'checks': {0: {'additional_info': {'_schema': ['Invalid input type.']}}, 1: {'additional_info': {'_schema': ['Invalid input type.']}}}}}}})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;API output (https://&amp;lt;cluster ip&amp;gt;/docs/api/#/cluster/metrocluster_diagnostics_get) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "cluster": {
    "details": [
      {
        "cluster": {
          "uuid": "xxxxxxxxxx",
          "name": "netapp2-1-util-np"
        },
        "timestamp": "2024-06-28T09:47:00+00:00",
        "checks": [
          {
            "name": "negotiated_switchover_ready",
            "result": "not_applicable",
            "additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
          },
          {
            "name": "switchback_ready",
            "result": "not_applicable",
            "additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
          },
          {
            "name": "job_schedules",
            "result": "ok"
          },
          {
            "name": "licenses",
            "result": "ok"
          },
          {
            "name": "periodic_check_enabled",
            "result": "ok"
          },
          {
            "name": "onboard_key_management",
            "result": "ok"
          },
          {
            "name": "external_key_management",
            "result": "ok"
          }
        ]
      },
      {
        "cluster": {
          "uuid": "xxxxxxx",
          "name": "netapp1-1-util-np"
        },
        "timestamp": "2024-06-28T09:47:00+00:00",
        "checks": [
          {
            "name": "negotiated_switchover_ready",
            "result": "not_applicable",
            "additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
          },
          {
            "name": "switchback_ready",
            "result": "not_applicable",
            "additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
          },
          {
            "name": "job_schedules",
            "result": "ok"
          },
          {
            "name": "licenses",
            "result": "ok"
          },
          {
            "name": "periodic_check_enabled",
            "result": "ok"
          },
          {
            "name": "onboard_key_management",
            "result": "ok"
          },
          {
            "name": "external_key_management",
            "result": "ok"
          }
        ]
      }
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Moon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 10:19:56 GMT</pubDate>
    <dc:creator>Moon</dc:creator>
    <dc:date>2024-06-28T10:19:56Z</dc:date>
    <item>
      <title>{'additional_info': {'_schema': ['Invalid input type.']}} on MetroclusterDiagnostics()</title>
      <link>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/additional-info-schema-Invalid-input-type-on-MetroclusterDiagnostics/m-p/453550#M3287</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get&amp;nbsp;&lt;SPAN&gt;Metrocluster diagnostics information via&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;netapp_ontap python library as shown below but the p&lt;/SPAN&gt;&lt;SPAN&gt;ython code returns&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;'additional_info'&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;SPAN&gt;'_schema'&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;SPAN&gt;'Invalid input type.'&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN&gt;&lt;EM&gt;]}}&lt;/EM&gt; error but API (https://&amp;lt;cluster ip&amp;gt;/docs/api/#/cluster/metrocluster_diagnostics_get) shows the output without any issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone had the same issue and the resolution?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;Python code:&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        try:
            config.CONNECTION = HostConnection(cluster_ip, username=cluster_username, password=cluster_password, verify=False)
            resource = MetroclusterDiagnostics()
            resource.get(fields="cluster.details")
            print(resource)
        except Exception as e:
            logging.error(e)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Python code Error :&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR Caused by ValidationError({'cluster': {'details': {0: {'checks': {0: {'additional_info': {'_schema': ['Invalid input type.']}}, 1: {'additional_info': {'_schema': ['Invalid input type.']}}}}, 1: {'checks': {0: {'additional_info': {'_schema': ['Invalid input type.']}}, 1: {'additional_info': {'_schema': ['Invalid input type.']}}}}}}})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;API output (https://&amp;lt;cluster ip&amp;gt;/docs/api/#/cluster/metrocluster_diagnostics_get) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "cluster": {
    "details": [
      {
        "cluster": {
          "uuid": "xxxxxxxxxx",
          "name": "netapp2-1-util-np"
        },
        "timestamp": "2024-06-28T09:47:00+00:00",
        "checks": [
          {
            "name": "negotiated_switchover_ready",
            "result": "not_applicable",
            "additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
          },
          {
            "name": "switchback_ready",
            "result": "not_applicable",
            "additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
          },
          {
            "name": "job_schedules",
            "result": "ok"
          },
          {
            "name": "licenses",
            "result": "ok"
          },
          {
            "name": "periodic_check_enabled",
            "result": "ok"
          },
          {
            "name": "onboard_key_management",
            "result": "ok"
          },
          {
            "name": "external_key_management",
            "result": "ok"
          }
        ]
      },
      {
        "cluster": {
          "uuid": "xxxxxxx",
          "name": "netapp1-1-util-np"
        },
        "timestamp": "2024-06-28T09:47:00+00:00",
        "checks": [
          {
            "name": "negotiated_switchover_ready",
            "result": "not_applicable",
            "additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
          },
          {
            "name": "switchback_ready",
            "result": "not_applicable",
            "additional_info": "Disaster recovery readiness checks are not performed as part of periodic metrocluster check. To run these checks, use the \"metrocluster check run\" command."
          },
          {
            "name": "job_schedules",
            "result": "ok"
          },
          {
            "name": "licenses",
            "result": "ok"
          },
          {
            "name": "periodic_check_enabled",
            "result": "ok"
          },
          {
            "name": "onboard_key_management",
            "result": "ok"
          },
          {
            "name": "external_key_management",
            "result": "ok"
          }
        ]
      }
    ]
  }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Moon&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 10:19:56 GMT</pubDate>
      <guid>https://community.netapp.com/t5/Software-Development-Kit-SDK-and-API-Discussions/additional-info-schema-Invalid-input-type-on-MetroclusterDiagnostics/m-p/453550#M3287</guid>
      <dc:creator>Moon</dc:creator>
      <dc:date>2024-06-28T10:19:56Z</dc:date>
    </item>
  </channel>
</rss>

