Hello I am trying to get Metrocluster diagnostics information via netapp_ontap python library as shown below but the python code returns {'additional_info': {'_schema': ['Invalid input type.']}} error but API (https://<cluster ip>/docs/api/#/cluster/metrocluster_diagnostics_get) shows the output without any issue. Has anyone had the same issue and the resolution? Python code: 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) Python code Error : 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.']}}}}}}}) API output (https://<cluster ip>/docs/api/#/cluster/metrocluster_diagnostics_get) : {
"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"
}
]
}
]
}
} Regards Moon
... View more
When obtaining the usage capacity of end-user servers, we connect to the NetApp server via HTTPS and use the "quota-report-iter" of the OntapClusterAPI. We aim to specify both "uid" and "gid" as the "quota-user-type" input information for retrieval. How can we specify the input in order to achieve this? The language is Perl, and other input information is specified as follows. quota-report-iter->child_add_string("max-records",100000); quota-report-iter->child_add_string("tag",next_tag );
... View more
Hi everyone, I need to automatically at 1am make the .snapshot directory available for a backup and hid the .snapshot directory at 3am after the backup. It just 2 simple commands that is required but it can't be made on the ontap so I'm a bit lost of how can I do it. Anyone kind enough to give me a light please? Thank you in advance.
... View more
Hello. We plan to use the "cluster-remove-node API" to remove ONTAP nodes. As far as I checked the options of "cluster-remove-node API", it seems that the process to execute "eligibility=false" when the node to be removed is the master node is not included. It is difficult to check the contents of the API source code, but does the API actually include processing for "eligibility=false"?
... View more
I am working on a script to update SVM’s credentials via API calls. While exploring the options I have come across swagger documentation for creating/modifying storage (SVMs). While creating/adding storage system is successful, I am trying to update the credential using PUT method (according to documentation. But I am getting the following error that {'Message': "The requested resource does not support http method 'PUT'."}
... View more