#configure timezone

1 messages · Page 1 of 1 (latest)

wanton zephyr
#

I currently use na_ontap_command to configure timezone on new cluster and would like to move to na_ontap_rest_cli. I’m unable to figure out how to transition from na_ontap_command to na_ontap_rest_cli. Any ideas on how I can transition to na_ontap_rest_cli

oak ridge
#

The key issue is that the semantics are different. With na_ontap_command, you mostly send the equivalent CLI command. With REST, the API expects the command to be REST like, so you need to build 4 things:

  1. the API itself
  2. the method (GET, POST, PATCH, and DELETE)
  3. if needed a query to identify the resource
  4. if needed a body to identify what to create or modify

This is explained at https://library.netapp.com/ecmdocs/ECMLP2884821/html/index.html under Using the private CLI passthrough with the ONTAP REST API

elfin grotto
wanton zephyr
#

That’s awesome! Is 21.24.0 released? I updated my collections few days back and i remember it was update to 21.22.0

elfin grotto
#

Yes 3 months ago