#ONTAP NLF API issue

1 messages · Page 1 of 1 (latest)

trail zodiac
#

I am having an issue with both curl and powershell sending an NLF file for the license API. I've seen the example for the curl command, however, it doesn't work for me:

ken@ken-mac-0 licenses_NLF % curl -k -u admin:xxxxxx -d @NLF-4082368507-EE.txt -X POST "https://192.168.7.190/api/cluster/licensing/licenses/"
{
  "error": {
    "message": "Unexpected argument \"statusResp\".",
    "code": "262179",
    "target": "statusResp.statusCode"
  }
}% 

This is ONTAP 9.13 vsim
I get the same error for both MacOS and Linux.
The GET form on this works as expected.

This file works for both ansible and terraform.

I feel like I am missing something. Any ideas?

carmine kestrel
trail zodiac
#

That covers 1/2 the ground of what I had to do, and I hadn't tried the 'jq' processor. Without that I had to escape every double-quote and keep the string format.

#

I suspect that is what "tostring" formater is doing.